summaryrefslogtreecommitdiffstats
path: root/MPlayer
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2009-05-12 19:31:31 +0000
committer Eric Hameleers <alien@slackware.com>2009-05-12 19:31:31 +0000
commit896ebd4dd9eca587842768956222a27a614b0059 (patch)
treebb991c68fbba3dfdf2de672a46696cc87ee58799 /MPlayer
parent12db2d4ed6ea69fb4637d1ea256616963c8c10aa (diff)
downloadasb-896ebd4dd9eca587842768956222a27a614b0059.tar.gz
asb-896ebd4dd9eca587842768956222a27a614b0059.tar.xz
Download and use a libdvdcss-less source tarball if needed
Diffstat (limited to 'MPlayer')
-rwxr-xr-xMPlayer/build/MPlayer.SlackBuild9
1 files 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