diff options
author | Eric Hameleers <alien@slackware.com> | 2006-11-07 14:40:13 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2006-11-07 14:40:13 +0000 |
commit | a17058f15e928b4016b8a078b87932092e80149a (patch) | |
tree | 22ae36e227fa6b54e2386215b7132de342712b89 /MPlayer | |
parent | 3cb2cc161c09fdc9a583850c12e0b8a2941c22c8 (diff) | |
download | asb-a17058f15e928b4016b8a078b87932092e80149a.tar.gz asb-a17058f15e928b4016b8a078b87932092e80149a.tar.xz |
Stripped dvdcss code from the build - use REMOVECSS=no to keep that code in.
This leads to a dependency on libdvdread btw..!
Diffstat (limited to 'MPlayer')
-rwxr-xr-x | MPlayer/build/MPlayer.SlackBuild | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/MPlayer/build/MPlayer.SlackBuild b/MPlayer/build/MPlayer.SlackBuild index 3b7dd782..b695cbfc 100755 --- a/MPlayer/build/MPlayer.SlackBuild +++ b/MPlayer/build/MPlayer.SlackBuild @@ -9,10 +9,20 @@ # For: MPlayer # Descr: MPEG-4 digital video technology # URL: http://www.mplayerhq.hu/ -# Needs: +# Needs: libdvdread > 0.9.6 # Changelog: # 1.0rc1-1: 05/Nov/2006 by Eric Hameleers <alien@slackware.com> # * Initial build. +# 1.0rc1-2: 07/Nov/2006 by Eric Hameleers <alien@slackware.com> +# * Removed MPlayer's internal libdvdcss code from the build, so +# that MPlayer no longer plays encrypted DVD's by default (and the +# package is now safe to upload to public repositories). +# If it is allowed in your country, you can either install +# libdvdcss (which is picked up automatically by MPlayer), or +# rebuild MPlayer yourself using this SlackBuild - and set the +# variable REMOVECSS="no" first (see further down). +# Use this commandline if you can't or won't modify the script: +# REMOVECSS="no" ./MPlayer.SlackBuild # # Run 'sh SlackBuild --cleanup' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -26,7 +36,9 @@ PRGNAM=MPlayer VERSION=${VERSION:-1.0rc1} ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} + +DOCS="AUTHORS ChangeLog Copyright LICENSE README DOCS/HTML DOCS/tech" CODECSDIR=/usr/lib/codecs # Where the WIN32 codecs are expected for instance DEFSKIN=Blue # Download more at http://www.mplayerhq.hu/design7/dload.html @@ -41,10 +53,21 @@ LANGUAGES="en nl fr de es" # The default is to just add "en" documentation # The use of bitmapped fonts is considered deprecated, but you can still use # those if you want. Read http://www.mplayerhq.hu/DOCS/HTML/en/fonts-osd.html # if you want to know more about OSD font configuration. -OSDFONTS="DejaVuSans.ttf Vera.ttf" - -DOCS="AUTHORS ChangeLog Copyright LICENSE README DOCS/HTML DOCS/tech" - +OSDFONTS="Arialuni.ttf arial.ttf DejaVuSans.ttf Vera.ttf" + +# MPlayer source contains 'libmpdvdkit2' for reading DVD's. But this also +# contains a copy of libdvdcss which is considered illegal software in some +# countries. +# The SlackBuild removes this library before building MPlayer and links to +# the external library libdvdread instead, so that the resulting binary can be +# distributed without legal concerns. +# This also means that this SlackBuild creates a version of MPlayer that is +# unable to play encrypted DVD's (which is most DVD's on the market). If it is +# allowed in your country to use libdvdcss, this is not a big problem though. +# Install a copy of libdvdcss and it will be picked up automatically by the +# libdvdread library, so that MPlayer will again be able to play encrypted DVD's. +# Set REMOVECSS="no" if you want MPLayer to use it's internal dvdcss code. +REMOVECSS=${REMOVECSS:-yes} # Where do we look for sources? CWD=`pwd` @@ -151,6 +174,10 @@ if [ $? -ne 0 ]; then fi cd ${PRGNAM}-${VERSION} +# Remove potentially illegal dvdcss code (in which case, make sure you have +# libdvdread installed before you start the compile!): +[ "$REMOVECSS" == "yes" ] && rm -rf libmpdvdkit2 + chown -R root.root * find . -perm 777 -exec chmod 755 {} \; find . -perm 666 -exec chmod 644 {} \; |