--- MPlayer-orig/MPlayer.SlackBuild 2009-12-29 03:11:44.000000000 +0200 +++ MPlayer/MPlayer.SlackBuild 2009-12-29 03:13:25.000000000 +0200 @@ -31,13 +31,21 @@ # URL: http://www.mplayerhq.hu/ # ----------------------------------------------------------------------------- +#------------------------------------------------------------------------------ +# Corrected by Dimitris Jemos +# URL: http://www.slackel.gr/ +# The original script can't compile the svn mplayer code with the option USE_PATENTS="YES" +# If no downloadable tarball exists this script download mplayer sources from SVN/CVS +# and creates a tarball of them. +#------------------------------------------------------------------------------ + PRGNAM=MPlayer -VERSION=${VERSION:-r29390} +VERSION=${VERSION:-r30118} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} -TAG=${TAG:-} +TAG=${TAG:-dj} -DOCS="AUTHORS Changelog Copyright LICENSE README DOCS/HTML-single DOCS/tech" +DOCS="AUTHORS Changelog Copyright LICENSE README DOCS/HTML DOCS/tech" # Dimitris Jemos changed DOCS/HTML-single to DOCS/HTML DEFSKIN=${DEFSKIN:-"Blue"} # Download more skins at the following url: SKINVER=${SKINVER:-"1.7"} # http://www.mplayerhq.hu/design7/dload.html @@ -84,8 +92,9 @@ # MPlayer with the option USE_PATENTS=YES which will include potentially # patent-encumbered code. # --------------------------------------------------------------------------- -USE_PATENTS=${USE_PATENTS:-"NO"} - +USE_PATENTS=${USE_PATENTS:-"YES"} +echo USE_PATENTS=$USE_PATENTS # Dimitris Jemos add it +sleep 4 # Dimitris Jemos add it # MPlayer will try to use one of the TrueType fonts present on the target # system for it's On Screen Display (OSD) font. # Slackware 11.0 ships with the Vera and DejaVu fonts, you may want to add @@ -132,6 +141,7 @@ else REV="{${VERSION}}" fi + rm -rf MPlayer-${VERSION} # Dimitris Jemos add it mkdir MPlayer-${VERSION} \ && cd MPlayer-${VERSION} \ && svn checkout --revision $REV svn://svn.mplayerhq.hu/mplayer/trunk . \ @@ -247,7 +257,8 @@ DO_PATENTED="--disable-libdvdcss-internal \ --disable-mp3lame --disable-mp3lame-lavc \ --disable-faac --disable-faac-lavc \ - --disable-libamr_nb --disable-libamr_wb" + --disable-libopencore_amrnb \ + --disable-libopencore_amrwb" else DO_PATENTED="" fi @@ -286,6 +297,7 @@ cp etc/example.conf $PKG/etc/mplayer/mplayer.conf.new # Install our default skin: +mkdir -p $PKG/usr/share/mplayer/skins # Dimitris Jemos add it cd $PKG/usr/share/mplayer/skins tar -xvf ${SOURCE[1]} chown -R root:root * @@ -345,7 +357,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mv $PKG/usr/doc/$PRGNAM-$VERSION/HTML-single $PKG/usr/doc/$PRGNAM-$VERSION/html +#mv $PKG/usr/doc/$PRGNAM-$VERSION/HTML-single $PKG/usr/doc/$PRGNAM-$VERSION/html #djemos comment it # Save a sample of all configuration files: for i in etc/*.conf ; do cp $i $PKG/usr/doc/$PRGNAM-$VERSION/$(basename $i)-sample