Index: mplayer-1.0_pre4-r4.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_pre4-r4.ebuild,v retrieving revision 1.14 diff -u -b -B -w -p -r1.14 mplayer-1.0_pre4-r4.ebuild --- mplayer-1.0_pre4-r4.ebuild 25 Jun 2004 00:46:20 -0000 1.14 +++ mplayer-1.0_pre4-r4.ebuild 29 Jun 2004 01:25:05 -0000 @@ -19,6 +19,7 @@ S="${WORKDIR}/MPlayer-${MY_PV}" SRC_URI="mirror://mplayer/releases/MPlayer-${MY_PV}.tar.bz2 mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 + http://dev.gentoo.org/~ferringb/imdct-disable-sse-for-fpic.patch svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" # Only install Skin if GUI should be build (gtk as USE flag) @@ -116,6 +117,11 @@ src_unpack() { # GCC 3.4 fixes epatch ${FILESDIR}/${P}-alsa-gcc34.patch epatch ${FILESDIR}/${P}-altivec-gcc34.patch + + # + epatch ${FILESDIR}/${PN}-1.0_pre4-fpic-fun.patch + epatch ${DISTDIR}/imdct-disable-sse-for-fpic.patch + # fixes for mga driver with kernel 2.6 if use matrox; then get_kernel_info @@ -156,8 +162,6 @@ src_unpack() { src_compile() { - filter-flags -fPIC - use matrox && check_KV local myconf= @@ -234,8 +238,7 @@ src_compile() { myconf="${myconf} --enable-linux-devfs" fi - has_pic && CC="${CC} `test_flag -fno-pic` `test_flag -nopie`" - + # export OPTFLAGS="-DPIC -fPIC" # Crashes on start when compiled with most optimizations. # The code have CPU detection code now, with CPU specific # optimizations, so extra should not be needed and is not