--- mplayer-1.0_pre4-r4.old 2004-06-30 12:00:06.000000000 +0900 +++ mplayer-1.0_pre4-r4.ebuild 2004-07-01 06:01:02.556772712 +0900 @@ -4,7 +4,7 @@ inherit eutils flag-o-matic kmod -IUSE="dga oss xmms jpeg 3dfx sse matrox sdl X svga ggi oggvorbis 3dnow aalib gnome xv opengl truetype dvd gtk gif esd fbcon encode alsa directfb arts dvb samba lirc matroska debug joystick theora ipv6 v4l v4l2 live bidi mad xvid divx4linux png xinerama libcaca mpeg nas nls" +IUSE="dga oss xmms jpeg 3dfx sse matrox sdl X svga ggi oggvorbis 3dnow aalib gnome xv opengl truetype dvd gtk gif esd fbcon encode alsa directfb arts dvb samba lirc matroska debug joystick theora ipv6 v4l v4l2 live bidi mad xvid divx4linux png xinerama libcaca mpeg nas nls realplayer" # NOTE to myself: Test this thing with and without dvd/gtk+ support, # as it seems the mplayer guys dont really care to @@ -17,6 +17,7 @@ MY_PV="${PV/_/}" S="${WORKDIR}/MPlayer-${MY_PV}" SRC_URI="mirror://mplayer/releases/MPlayer-${MY_PV}.tar.bz2 + http://ftp3.mplayerhq.hu/MPlayer/releases/codecs/rp9codecs-20040626.tar.bz2 mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) @@ -104,6 +105,8 @@ use gtk && unpack Blue-${BLUV}.tar.bz2 + use realplayer && unpack rp9codecs-20040626.tar.bz2 + cd ${S} # Fix head/tail call for new coreutils @@ -112,6 +115,8 @@ #bug #49669, horrid syntax errors in help/help_mp-ro.h epatch ${FILESDIR}/${P}-help_mp-ro.h.patch + epatch ${FILESDIR}/real_demux.patch + # GCC 3.4 fixes epatch ${FILESDIR}/${P}-alsa-gcc34.patch epatch ${FILESDIR}/${P}-altivec-gcc34.patch @@ -217,17 +222,19 @@ use debug \ && myconf="${myconf} --enable-debug" - if [ -d /opt/RealPlayer9/Real/Codecs ] - then - einfo "Setting REALLIBDIR to /opt/RealPlayer9/Real/Codecs..." - REALLIBDIR="/opt/RealPlayer9/Real/Codecs" - elif [ -d /opt/RealPlayer8/Codecs ] - then - einfo "Setting REALLIBDIR to /opt/RealPlayer8/Codecs..." - REALLIBDIR="/opt/RealPlayer8/Codecs" - else - REALLIBDIR="/usr/lib/real" - fi + #if [ -d /opt/RealPlayer9/Real/Codecs ] + #then + # einfo "Setting REALLIBDIR to /opt/RealPlayer9/Real/Codecs..." + # REALLIBDIR="/opt/RealPlayer9/Real/Codecs" + #elif [ -d /opt/RealPlayer8/Codecs ] + #then + # einfo "Setting REALLIBDIR to /opt/RealPlayer8/Codecs..." + # REALLIBDIR="/opt/RealPlayer8/Codecs" + #else + # REALLIBDIR="/usr/lib/real" + #fi + + use realplayer && REALLIBDIR=${WORKDIR}/rp9codecs-20040626 if [ -e /dev/.devfsd ] then @@ -342,6 +349,13 @@ install || die "Failed to install MPlayer!" einfo "Make install completed" + dodoc AUTHORS ChangeLog README + + if use realplayer; then + cd ${WORKDIR}/rp9codecs-20040626 + dolib.so atrc.so.6.0 cook.so.6.0 ddnt.so.6.0 dnet.so.6.0 drv2.so.6.0 drv3.so.6.0 drv4.so.6.0 dspr.so.6.0 sipr.so.6.0 tokf.so.6.0 tokr.so.6.0 + fi + if use matrox; then cd ${S}/drivers insinto /lib/modules/${KV}/kernel/drivers/char @@ -355,7 +369,6 @@ # install || die "Failed to install libpostproc.so!" # cd ${S} - dodoc AUTHORS ChangeLog README # Install the documentation; DOCS is all mixed up not just html find ${S}/DOCS -type d | xargs -- chmod 0755 cp -r ${S}/DOCS ${D}/usr/share/doc/${PF}/ || die