diff options
Diffstat (limited to 'multimedia/mlt/mlt.SlackBuild')
-rw-r--r-- | multimedia/mlt/mlt.SlackBuild | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/multimedia/mlt/mlt.SlackBuild b/multimedia/mlt/mlt.SlackBuild index 0455b607a5..c0f2dcebef 100644 --- a/multimedia/mlt/mlt.SlackBuild +++ b/multimedia/mlt/mlt.SlackBuild @@ -6,11 +6,25 @@ # Modified by Erik Hanson (erik@slackbuilds.org) with # help from Jonathan Larsen (agentc0re@learnix.net) +# +# Feb 16, 2010 - Modified the script and defined the $PYTHON variable +# outside of the if statement because it was causing issues with +# the other if statement that also relies on it's answer. +# - Fixed the second PYTHON if statement that finds the site package +# directory. Added parentheses around the part that cd's into the +# python swig src to copy the files to the site packages so that it +# would interfere with the CWD before it +# + +# Mar 3rd, 2010 +# *Version upgrade to 0.5.2 +# *fixed the "strip" for bash 4 compatability +# PRGNAM=mlt -VERSION=${VERSION:-0.4.10} +VERSION=${VERSION:-0.5.2} ARCH=${ARCH:-i486} -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -18,6 +32,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +PYTHON=${PYTHON:-yes} + # SWIG Languages: if [ "${JAVA:-no}" = "no" ]; then java=""; else java="java"; fi if [ "${LUA:-no}" = "no" ]; then lua=""; else lua="lua"; fi @@ -75,8 +91,10 @@ make install DESTDIR=$PKG if [ $PYTHON = "yes" ]; then PYTHONSITEPKG=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')") mkdir -p $PKG/$PYTHONSITEPKG - cd $TMP/$PRGNAM-$VERSION/src/swig/python - cp -a _mlt.so mlt.py mlt_wrap.o $PKG/$PYTHONSITEPKG + ( + cd $TMP/$PRGNAM-$VERSION/src/swig/python || true + cp -a _mlt.so mlt.py mlt_wrap.o $PKG/$PYTHONSITEPKG || true + ) fi ( cd $PKG |