diff options
-rw-r--r-- | media-video/gpac/gpac-1.0.1.ebuild | 15 | ||||
-rw-r--r-- | media-video/gpac/gpac-9999.ebuild | 16 |
2 files changed, 27 insertions, 4 deletions
diff --git a/media-video/gpac/gpac-1.0.1.ebuild b/media-video/gpac/gpac-1.0.1.ebuild index 806f4a7262b8..8d9beec5a396 100644 --- a/media-video/gpac/gpac-1.0.1.ebuild +++ b/media-video/gpac/gpac-1.0.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -98,7 +98,6 @@ src_configure() { tc-export CC CXX AR RANLIB local myeconfargs=( - --extra-cflags="${CFLAGS} $(usex cpu_flags_x86_sse2 '-msse2' '-mno-sse2')" --cc="$(tc-getCC)" --libdir="$(get_libdir)" --verbose @@ -134,6 +133,18 @@ src_configure() { $(my_use vorbis) $(my_use xvid) ) + + if use amd64 || use x86 ; then + # Don't pass -mno-sse2 on non amd64/x86 + myeconfargs+=( + --extra-cflags="${CFLAGS} $(usex cpu_flags_x86_sse2 '-msse2' '-mno-sse2')" + ) + else + myeconfargs+=( + --extra-cflags="${CFLAGS}" + ) + fi + econf "${myeconfargs[@]}" } diff --git a/media-video/gpac/gpac-9999.ebuild b/media-video/gpac/gpac-9999.ebuild index e5828cfed456..abfcbc0e5d9d 100644 --- a/media-video/gpac/gpac-9999.ebuild +++ b/media-video/gpac/gpac-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -25,6 +25,7 @@ IUSE="a52 aac alsa cpu_flags_x86_sse2 debug dvb ffmpeg ipv6 jack jpeg jpeg2k lib BDEPEND="virtual/pkgconfig" RDEPEND=" media-libs/libogg + sys-libs/zlib a52? ( media-libs/a52dec ) aac? ( media-libs/faad2 ) alsa? ( media-libs/alsa-lib ) @@ -97,7 +98,6 @@ src_configure() { tc-export CC CXX AR RANLIB local myeconfargs=( - --extra-cflags="${CFLAGS} $(usex cpu_flags_x86_sse2 '-msse2' '-mno-sse2')" --cc="$(tc-getCC)" --libdir="$(get_libdir)" --verbose @@ -133,6 +133,18 @@ src_configure() { $(my_use vorbis) $(my_use xvid) ) + + if use amd64 || use x86 ; then + # Don't pass -mno-sse2 on non amd64/x86 + myeconfargs+=( + --extra-cflags="${CFLAGS} $(usex cpu_flags_x86_sse2 '-msse2' '-mno-sse2')" + ) + else + myeconfargs+=( + --extra-cflags="${CFLAGS}" + ) + fi + econf "${myeconfargs[@]}" } |