summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-02-18 09:58:05 +0000
committerAlexis Ballier <aballier@gentoo.org>2015-02-18 09:58:05 +0000
commit647713db3a8ad2dd3f0c9e37350bf43ab6684cd0 (patch)
tree6954608d0147dc5eea0f489c238c123876fc48ac /media-video
parenttidy (diff)
downloadgentoo-2-647713db3a8ad2dd3f0c9e37350bf43ab6684cd0.tar.gz
gentoo-2-647713db3a8ad2dd3f0c9e37350bf43ab6684cd0.tar.bz2
gentoo-2-647713db3a8ad2dd3f0c9e37350bf43ab6684cd0.zip
add required use for x86 cpu flags
Signed-off-by: aballier@gentoo.org (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/ffmpeg/ChangeLog5
-rw-r--r--media-video/ffmpeg/ffmpeg-9999.ebuild24
2 files changed, 26 insertions, 3 deletions
diff --git a/media-video/ffmpeg/ChangeLog b/media-video/ffmpeg/ChangeLog
index 492cf42be240..0daf60a53d8a 100644
--- a/media-video/ffmpeg/ChangeLog
+++ b/media-video/ffmpeg/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-video/ffmpeg
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.828 2015/02/14 20:58:53 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.829 2015/02/18 09:58:05 aballier Exp $
+
+ 18 Feb 2015; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999.ebuild:
+ add required use for x86 cpu flags
*ffmpeg-2.5.4 (14 Feb 2015)
diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild
index 14466db89d96..9ed73a24d048 100644
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild,v 1.177 2015/01/30 16:40:48 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild,v 1.178 2015/02/18 09:58:05 aballier Exp $
EAPI="5"
@@ -53,6 +53,22 @@ ARM_CPU_FEATURES="armv5te armv6 armv6t2 neon armvfp:vfp"
MIPS_CPU_FEATURES="mips32r2 mipsdspr1 mipsdspr2 mipsfpu"
PPC_CPU_FEATURES="altivec"
X86_CPU_FEATURES=( 3dnow:amd3dnow 3dnowext:amd3dnowext avx:avx avx2:avx2 fma3:fma3 fma4:fma4 mmx:mmx mmxext:mmxext sse:sse sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4 sse4_2:sse42 xop:xop )
+X86_CPU_REQUIRED_USE="
+ cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
+ cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
+ cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
+ cpu_flags_x86_xop? ( cpu_flags_x86_avx )
+ cpu_flags_x86_avx? ( cpu_flags_x86_sse4_2 )
+ cpu_flags_x86_sse4_2? ( cpu_flags_x86_sse4_1 )
+ cpu_flags_x86_sse4_1? ( cpu_flags_x86_ssse3 )
+ cpu_flags_x86_ssse3? ( cpu_flags_x86_sse3 )
+ cpu_flags_x86_sse3? ( cpu_flags_x86_sse2 )
+ cpu_flags_x86_sse2? ( cpu_flags_x86_sse )
+ cpu_flags_x86_sse? ( cpu_flags_x86_mmxext )
+ cpu_flags_x86_mmxext? ( cpu_flags_x86_mmx )
+ cpu_flags_x86_3dnowext? ( cpu_flags_x86_3dnow )
+ cpu_flags_x86_3dnow? ( cpu_flags_x86_mmx )
+"
# String for CPU features in the useflag[:configure_option] form
# if :configure_option isn't set, it will use 'useflag' as configure option
@@ -62,6 +78,9 @@ CPU_FEATURES="
${PPC_CPU_FEATURES}
${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}
"
+CPU_REQUIRED_USE="
+ ${X86_CPU_REQUIRED_USE}
+"
for i in ${CPU_FEATURES}; do
IUSE="${IUSE} ${i%:*}"
@@ -181,7 +200,8 @@ RDEPEND="${RDEPEND}
REQUIRED_USE="bindist? ( encode? ( !faac !aacplus ) !openssl )
libv4l? ( v4l )
fftools_cws2fws? ( zlib )
- test? ( encode )"
+ test? ( encode )
+ ${CPU_REQUIRED_USE}"
S=${WORKDIR}/${P/_/-}