From 896ebd4dd9eca587842768956222a27a614b0059 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 12 May 2009 19:31:31 +0000 Subject: Download and use a libdvdcss-less source tarball if needed --- MPlayer/build/MPlayer.SlackBuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/MPlayer/build/MPlayer.SlackBuild b/MPlayer/build/MPlayer.SlackBuild index 836e1126..0d2b9ac5 100755 --- a/MPlayer/build/MPlayer.SlackBuild +++ b/MPlayer/build/MPlayer.SlackBuild @@ -134,10 +134,13 @@ OSDFONTS="LiberationSans-Regular.ttf \ Arialuni.ttf arial.ttf \ DejaVuSans.ttf Vera.ttf" +# We will work with a stripped-down source tarball, not containing libdvdcss: +[ "$USE_PATENTS" != "YES" ] && EXTRA="_nolibdvdcss" || EXTRA="" + # Where do we look for sources? SRCDIR=$(cd $(dirname $0); pwd) -SOURCE[0]="$SRCDIR/${PRGNAM}-${VERSION}.tar.bz2" +SOURCE[0]="$SRCDIR/${PRGNAM}${EXTRA}-${VERSION}.tar.bz2" #SRCURL[0]="http://www4.mplayerhq.hu/${PRGNAM}/releases/${PRGNAM}-${VERSION}.tar.bz2" SRCURL[0]="" @@ -169,6 +172,7 @@ src_checkout() { && cd MPlayer-${VERSION} \ && svn checkout --revision $REV svn://svn.mplayerhq.hu/mplayer/trunk . \ && find . -type d -name '.svn' -depth | xargs rm -rf \ + && ([ "$USE_PATENTS" != "YES" ] && rm -rf libdvdcss) \ && chown -R root:root . \ && cd .. \ && tar -${TARCOMP}cf ${2} MPlayer-${VERSION} @@ -259,6 +263,7 @@ fi cd $TMP/tmp-$PRGNAM echo "Extracting the source archive(s) for $PRGNAM..." tar -xvf ${SOURCE[0]} +[ "$USE_PATENTS" != "YES" ] && rm -rf libdvdcss chown -R root:root * chmod -R u+w,go+r-w,a-s * cd ${PRGNAM}-${VERSION} @@ -296,7 +301,7 @@ echo Building ... ${DO_PATENTED} \ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log # So that MPlayer does not report "UNKNOWN" as it's version: -cat $VERSION > VERSION +echo $VERSION > VERSION make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log # Install all the needed stuff to the package dir -- cgit v1.2.3-65-gdbad