summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-01-15 05:51:38 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-01-15 05:51:38 +0000
commit18c9442c96e4e63ba5c86f6872f04c9c1c25f444 (patch)
tree5babe9426f1075f24da735c728d4b49518f548ef /media-video
parentAdd a jpeg-6b ebuild for SONAME ABI compat. (diff)
downloadgentoo-2-18c9442c96e4e63ba5c86f6872f04c9c1c25f444.tar.gz
gentoo-2-18c9442c96e4e63ba5c86f6872f04c9c1c25f444.tar.bz2
gentoo-2-18c9442c96e4e63ba5c86f6872f04c9c1c25f444.zip
Import some code from vlc ebuilds to fix asm dependencies useflags. sse2 -> sse, sse -> mmx, 3dnow -> mmx, bug #300712
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/transcode/ChangeLog6
-rw-r--r--media-video/transcode/transcode-1.1.5.ebuild31
2 files changed, 34 insertions, 3 deletions
diff --git a/media-video/transcode/ChangeLog b/media-video/transcode/ChangeLog
index 1a37d960105d..98ce6606e18d 100644
--- a/media-video/transcode/ChangeLog
+++ b/media-video/transcode/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-video/transcode
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.267 2010/01/09 15:38:14 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/ChangeLog,v 1.268 2010/01/15 05:51:38 aballier Exp $
+
+ 15 Jan 2010; Alexis Ballier <aballier@gentoo.org> transcode-1.1.5.ebuild:
+ Import some code from vlc ebuilds to fix asm dependencies useflags. sse2
+ -> sse, sse -> mmx, 3dnow -> mmx, bug #300712
09 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
transcode-1.1.5.ebuild:
diff --git a/media-video/transcode/transcode-1.1.5.ebuild b/media-video/transcode/transcode-1.1.5.ebuild
index 1894839c30e9..7ba394c68914 100644
--- a/media-video/transcode/transcode-1.1.5.ebuild
+++ b/media-video/transcode/transcode-1.1.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-1.1.5.ebuild,v 1.6 2010/01/09 15:38:14 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-1.1.5.ebuild,v 1.7 2010/01/15 05:51:38 aballier Exp $
EAPI="2"
@@ -49,6 +49,28 @@ DEPEND="${RDEPEND}
dev-util/pkgconfig
v4l2? ( >=sys-kernel/linux-headers-2.6.11 )"
+# Notify the user that some useflag have been forced on
+tc_use_force() {
+ use $1 && use !$2 && ewarn "USE=$1 requires $2, $2 will be enabled."
+}
+
+# Use when $2 depends strictly on $3
+# if use $1 then enable $2 and $3, otherwise disable $2
+tc_use_enable_force() {
+ if use $1 ; then
+ echo "--enable-$2 --enable-$3"
+ else
+ echo "--disable-$2"
+ fi
+}
+
+pkg_setup() {
+ tc_use_force sse mmx
+ tc_use_force 3dnow mmx
+ tc_use_force sse2 mmx
+ tc_use_force sse2 sse
+}
+
src_prepare() {
sed -i -e "s:\$(datadir)/doc/transcode:\$(datadir)/doc/${PF}:" \
"${S}"/Makefile.am "${S}"/docs/Makefile.am "${S}"/docs/html/Makefile.am \
@@ -97,7 +119,12 @@ src_configure() {
$(use_with X x) \
--enable-deprecated \
--enable-experimental \
- --with-mod-path=/usr/$(get_libdir)/transcode"
+ --with-mod-path=/usr/$(get_libdir)/transcode \
+ $(tc_use_enable_force sse sse mmx) \
+ $(tc_use_enable_force 3dnow 3dnow mmx) \
+ $(tc_use_enable_force sse2 sse2 mmx) \
+ $(tc_use_enable_force sse2 sse2 sse) \
+ "
econf ${myconf} || die "econf failed"
}