--- /usr/portage/media-video/transcode/transcode-0.6.14.ebuild 2005-01-23 22:37:05.000000000 +0000 +++ transcode-0.6.14.ebuild 2005-01-29 20:44:51.332763376 +0000 @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-0.6.14.ebuild,v 1.9 2005/01/23 22:23:03 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-0.6.14.ebuild,v 1.7 2005/01/22 03:18:15 eradicator Exp $ inherit libtool flag-o-matic eutils @@ -31,7 +31,7 @@ lzo? ( >=dev-libs/lzo-1.08 ) fame? ( >=media-libs/libfame-0.9.1 ) imagemagick? ( >=media-gfx/imagemagick-5.5.6.0 ) - media-libs/netpbm + >=media-libs/netpbm-10.20 media-libs/libexif X? ( virtual/x11 ) avi? ( >=media-video/avifile-0.7.41.20041001 ) @@ -66,11 +66,16 @@ [ -f ${ROOT}/usr/include/postproc/postprocess.h ] && \ myconf="${myconf} --with-libpostproc-builddir=${ROOT}/usr/$(get_libdir)" + #This is a kludge until 3dnow and sse2 work for other amd64 packages too + # see also the !amd64 use in the econf section + use amd64 \ + && myconf="${myconf} --enable-3dnow --enable-sse2" + append-flags -DDCT_YUV_PRECISION=1 econf \ --with-mod-path=/usr/$(get_libdir)/transcode \ $(use_enable X x) \ - $(use_enable 3dnow) \ + $(useq !amd64 && use_enable 3dnow) \ $(use_enable a52) \ $(use_enable altivec) \ $(use_enable avi avifile) \ @@ -92,7 +97,7 @@ $(use_enable quicktime libquicktime) \ $(use_enable sdl) \ $(use_enable sse) \ - $(use_enable sse2) \ + $(useq !amd64 && use_enable sse2) \ $(use_enable theora) \ $(use_enable v4l) \ $(use_enable static) \ @@ -113,4 +118,5 @@ install || die dodoc AUTHORS COPYING ChangeLog README TODO + }