public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexis Ballier (aballier)" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in media-video/ffmpeg: ffmpeg-9999.ebuild ChangeLog
Date: Wed, 18 Feb 2015 14:28:33 +0000 (UTC)	[thread overview]
Message-ID: <20150218142833.7463512078@oystercatcher.gentoo.org> (raw)

aballier    15/02/18 14:28:33

  Modified:             ffmpeg-9999.ebuild ChangeLog
  Log:
  rework a bit cpu features handling to pass only relevant options to configure
  
  Signed-off-by: aballier@gentoo.org
  (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

Revision  Changes    Path
1.184                media-video/ffmpeg/ffmpeg-9999.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild?rev=1.184&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild?rev=1.184&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild?r1=1.183&r2=1.184

Index: ffmpeg-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -r1.183 -r1.184
--- ffmpeg-9999.ebuild	18 Feb 2015 11:54:07 -0000	1.183
+++ ffmpeg-9999.ebuild	18 Feb 2015 14:28:33 -0000	1.184
@@ -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.183 2015/02/18 11:54:07 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-9999.ebuild,v 1.184 2015/02/18 14:28:33 aballier Exp $
 
 EAPI="5"
 
@@ -100,10 +100,13 @@
 	${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
 "
 
-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 )
+# Strings for CPU features in the useflag[:configure_option] form
+# if :configure_option isn't set, it will use 'useflag' as configure option
+ARM_CPU_FEATURES=( armv5te armv6 armv6t2 neon armvfp:vfp )
+MIPS_CPU_FEATURES=( mips32r2 mipsdspr1 mipsdspr2 mipsfpu )
+PPC_CPU_FEATURES=( altivec )
+X86_CPU_FEATURES_RAW=( 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_FEATURES=( ${X86_CPU_FEATURES_RAW[@]/#/cpu_flags_x86_} )
 X86_CPU_REQUIRED_USE="
 	cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
 	cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
@@ -121,21 +124,28 @@
 	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
-CPU_FEATURES="
-	${ARM_CPU_FEATURES}
-	${MIPS_CPU_FEATURES}
-	${PPC_CPU_FEATURES}
-	${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}
+IUSE="${IUSE}
+	${ARM_CPU_FEATURES[@]%:*}
+	${MIPS_CPU_FEATURES[@]%:*}
+	${PPC_CPU_FEATURES[@]%:*}
+	${X86_CPU_FEATURES[@]%:*}
 "
+
 CPU_REQUIRED_USE="
 	${X86_CPU_REQUIRED_USE}
 "
 
-for i in ${CPU_FEATURES}; do
-	IUSE="${IUSE} ${i%:*}"
-done
+# "$(tc-arch):XXX" form where XXX_CPU_FEATURES are the cpu features that apply to
+# $(tc-arch).
+CPU_FEATURES_MAP="
+	arm:ARM
+	arm64:ARM
+	mips:MIPS
+	ppc:PPC
+	ppc64:PPC
+	x86:X86
+	amd64:X86
+"
 
 FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"
 
@@ -335,8 +345,13 @@
 	fi
 
 	# CPU features
-	for i in ${CPU_FEATURES}; do
-		use ${i%:*} || myconf+=( --disable-${i#*:} )
+	for i in ${CPU_FEATURES_MAP} ; do
+		if [ "$(tc-arch)" = "${i%:*}" ] ; then
+			local var="${i#*:}_CPU_FEATURES[@]"
+			for j in ${!var} ; do
+				use ${j%:*} || myconf+=( --disable-${j#*:} )
+			done
+		fi
 	done
 
 	if use pic ; then



1.835                media-video/ffmpeg/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.835&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?rev=1.835&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/ffmpeg/ChangeLog?r1=1.834&r2=1.835

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v
retrieving revision 1.834
retrieving revision 1.835
diff -u -r1.834 -r1.835
--- ChangeLog	18 Feb 2015 11:54:07 -0000	1.834
+++ ChangeLog	18 Feb 2015 14:28:33 -0000	1.835
@@ -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.834 2015/02/18 11:54:07 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ChangeLog,v 1.835 2015/02/18 14:28:33 aballier Exp $
+
+  18 Feb 2015; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999.ebuild:
+  rework a bit cpu features handling to pass only relevant options to configure
 
   18 Feb 2015; Alexis Ballier <aballier@gentoo.org> ffmpeg-9999.ebuild:
   drop old & useless comment





             reply	other threads:[~2015-02-18 14:28 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18 14:28 Alexis Ballier (aballier) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-19  9:24 [gentoo-commits] gentoo-x86 commit in media-video/ffmpeg: ffmpeg-9999.ebuild ChangeLog Alexis Ballier (aballier)
2015-03-06 14:14 Alexis Ballier (aballier)
2015-03-05 13:50 Alexis Ballier (aballier)
2015-02-18 14:36 Alexis Ballier (aballier)
2015-02-18 11:54 Alexis Ballier (aballier)
2015-02-18 11:52 Alexis Ballier (aballier)
2015-02-18 10:47 Alexis Ballier (aballier)
2015-02-18 10:44 Alexis Ballier (aballier)
2015-02-18  9:58 Alexis Ballier (aballier)
2014-10-31 10:53 Alexis Ballier (aballier)
2014-08-29 19:05 Alexis Ballier (aballier)
2014-08-29 19:00 Alexis Ballier (aballier)
2014-07-27  9:08 Alexis Ballier (aballier)
2014-07-27  8:56 Alexis Ballier (aballier)
2014-07-27  8:52 Alexis Ballier (aballier)
2014-07-27  8:06 Alexis Ballier (aballier)
2014-07-05 13:40 Alexis Ballier (aballier)
2014-06-03  6:20 Alexis Ballier (aballier)
2014-03-15  9:17 Alexis Ballier (aballier)
2014-03-11 19:01 Alexis Ballier (aballier)
2014-02-17 18:13 Alexis Ballier (aballier)
2014-02-12 13:15 Alexis Ballier (aballier)
2013-10-11  5:42 Alexis Ballier (aballier)
2013-10-11  5:31 Alexis Ballier (aballier)
2013-10-11  5:27 Alexis Ballier (aballier)
2013-07-02 12:10 Alexis Ballier (aballier)
2013-06-14 17:15 Alexis Ballier (aballier)
2013-05-24 14:25 Alexis Ballier (aballier)
2013-05-23  0:23 Alexis Ballier (aballier)
2013-03-09 12:07 Alexis Ballier (aballier)
2013-03-09 12:01 Alexis Ballier (aballier)
2013-03-09 11:46 Alexis Ballier (aballier)
2013-03-04 12:09 Alexis Ballier (aballier)
2013-03-04 11:59 Alexis Ballier (aballier)
2013-03-04 11:48 Alexis Ballier (aballier)
2013-03-04 11:40 Alexis Ballier (aballier)
2013-02-18 18:55 Alexis Ballier (aballier)
2013-02-13 17:42 Alexis Ballier (aballier)
2013-01-27 23:51 Alexis Ballier (aballier)
2013-01-13 19:23 Alexis Ballier (aballier)
2012-12-08 12:06 Alexis Ballier (aballier)
2012-09-29 15:17 Alexis Ballier (aballier)
2012-09-29  2:08 Alexis Ballier (aballier)
2012-09-21 11:49 Alexis Ballier (aballier)
2012-08-17 13:05 Alexis Ballier (aballier)
2012-07-23 13:04 Alexis Ballier (aballier)
2012-05-12  0:24 Alexis Ballier (aballier)
2012-04-24 13:17 Alexis Ballier (aballier)
2012-04-24 13:14 Alexis Ballier (aballier)
2012-04-11 13:44 Alexis Ballier (aballier)
2012-03-20  9:42 Alexis Ballier (aballier)
2012-03-13 23:17 Alexis Ballier (aballier)
2012-01-28 12:19 Alexis Ballier (aballier)
2011-12-15 11:46 Alexis Ballier (aballier)
2011-12-15 11:43 Alexis Ballier (aballier)
2011-12-15 11:25 Alexis Ballier (aballier)
2011-12-15 11:21 Alexis Ballier (aballier)
2011-12-15 11:15 Alexis Ballier (aballier)
2011-12-06 13:13 Alexis Ballier (aballier)
2011-12-03 15:41 Alexis Ballier (aballier)
2011-11-09 13:01 Alexis Ballier (aballier)
2011-11-07 13:23 Alexis Ballier (aballier)
2011-11-02 14:08 Alexis Ballier (aballier)
2011-10-21 12:52 Alexis Ballier (aballier)
2011-10-05 14:17 Alexis Ballier (aballier)
2011-07-06 21:49 Alexis Ballier (aballier)
2011-06-29 15:07 Alexis Ballier (aballier)
2011-06-29 15:01 Alexis Ballier (aballier)
2011-06-29 14:50 Alexis Ballier (aballier)
2011-06-27 14:25 Alexis Ballier (aballier)
2011-06-23 12:42 Alexis Ballier (aballier)
2011-06-22 18:44 Alexis Ballier (aballier)
2011-04-13 12:40 Alexis Ballier (aballier)
2011-04-12 13:44 Alexis Ballier (aballier)
2011-04-12 13:26 Alexis Ballier (aballier)
2011-04-01 23:16 Alexis Ballier (aballier)
2011-03-30 11:57 Alexis Ballier (aballier)
2011-03-21 11:37 Alexis Ballier (aballier)
2011-01-29 20:03 Alexis Ballier (aballier)
2011-01-21 15:04 Luca Barbato (lu_zero)
2010-10-30 15:42 Alexis Ballier (aballier)
2010-10-01  1:46 Alexis Ballier (aballier)
2010-08-02  5:12 Alexis Ballier (aballier)
2009-04-04 14:35 Alexis Ballier (aballier)
2009-02-10 19:54 Alexis Ballier (aballier)
2009-01-27  7:50 Alexis Ballier (aballier)
2009-01-27  7:41 Alexis Ballier (aballier)
2009-01-20 19:44 Alexis Ballier (aballier)
2008-12-23 12:13 Alexis Ballier (aballier)
2008-12-20 19:16 Luca Barbato (lu_zero)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150218142833.7463512078@oystercatcher.gentoo.org \
    --to=aballier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox