summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-01-18 15:02:52 +0000
committerSam James <sam@gentoo.org>2021-01-18 15:02:52 +0000
commitf25a7ab45c1a7345d741c183bb96de0967b67db1 (patch)
tree7888f7d7e426544ff8a833b16aaa2283a0a08f18 /media-video/gpac
parentmedia-gfx/exif: Stabilize 0.6.22 sparc, #763354 (diff)
downloadgentoo-f25a7ab45c1a7345d741c183bb96de0967b67db1.tar.gz
gentoo-f25a7ab45c1a7345d741c183bb96de0967b67db1.tar.bz2
gentoo-f25a7ab45c1a7345d741c183bb96de0967b67db1.zip
media-video/gpac: fix build on non amd64/x86
-mno-sse2 isn't valid on non amd64/x86. Bug: https://bugs.gentoo.org/749972 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video/gpac')
-rw-r--r--media-video/gpac/gpac-1.0.1.ebuild15
-rw-r--r--media-video/gpac/gpac-9999.ebuild16
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[@]}"
}