diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-11 22:24:59 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 22:24:59 +0200 |
commit | ed5c3f58fe4eb4312ca51a7611cbb3e89799c5d3 (patch) | |
tree | 6b034f6f11ef7f2ff4c3e37c57c35b7a4181981a /multimedia/transcode/transcode.SlackBuild | |
parent | 8dfd1d365254f4548ced4b9d76a8e2985957da65 (diff) |
multimedia/transcode: Updated for version 1.0.7
Diffstat (limited to 'multimedia/transcode/transcode.SlackBuild')
-rw-r--r-- | multimedia/transcode/transcode.SlackBuild | 37 |
1 files changed, 31 insertions, 6 deletions
diff --git a/multimedia/transcode/transcode.SlackBuild b/multimedia/transcode/transcode.SlackBuild index 268057d9a69de..13aded3b0a4ce 100644 --- a/multimedia/transcode/transcode.SlackBuild +++ b/multimedia/transcode/transcode.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for transcode -# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=transcode -VERSION=1.0.5 +VERSION=1.0.7 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -33,10 +33,18 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "${QUICKTIME:-yes}" = "yes" ]; then + do_qt="en" +else + do_qt="dis" +fi + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" fi set -e @@ -48,7 +56,11 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -56,10 +68,10 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ --mandir=/usr/man \ --enable-netstream \ --enable-v4l \ - --enable-libpostproc \ --enable-ogg \ --enable-vorbis \ --enable-theora \ @@ -67,16 +79,29 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-sdl \ --enable-libxml2 \ --enable-libdv \ - --enable-libquicktime \ + --${do_qt}able-libquicktime \ --enable-a52 \ - --enable-a52-default-decoder + --enable-a52-default-decoder \ + --enable-nuv \ + --enable-lzo \ + --enable-imagemagick \ + --enable-libpostproc \ + --with-libpostproc-includes=/usr/include/libpostproc \ + --build=$ARCH-slackware-linux \ + --host=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog COPYING INSTALL README* TODO \ $PKG/usr/doc/$PRGNAM-$VERSION +# --docdir does not work mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION/ rm -rf $PKG/usr/share cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |