diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-11 22:25:00 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:25:00 +0200 |
commit | 4431d461b67116441ace8e5c3caea6b0218ba141 (patch) | |
tree | eefd445cf22dd025f1ffe23ed22a08e4a3e19071 /multimedia/x264/x264.SlackBuild | |
parent | 3f20f5a5bc78fc3a2c899ad876b8a1c113a654cc (diff) | |
download | slackbuilds-4431d461b67116441ace8e5c3caea6b0218ba141.tar.gz |
multimedia/x264: Updated for version 20081104
Diffstat (limited to 'multimedia/x264/x264.SlackBuild')
-rw-r--r-- | multimedia/x264/x264.SlackBuild | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/multimedia/x264/x264.SlackBuild b/multimedia/x264/x264.SlackBuild index b8a5677b4c..bb5d3dfbf6 100644 --- a/multimedia/x264/x264.SlackBuild +++ b/multimedia/x264/x264.SlackBuild @@ -1,17 +1,18 @@ #!/bin/sh -# Slackware build script for x264 +# Slackware build script for x264 # Written by core (eroc@linuxmail.org) +# Modified by Heinz Wiesinger <pprkut@liwjatan.at> set -e PRGNAM=x264 -VERSION=20070722 +VERSION=20081104 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} -GTKUI=${GTKUI:-no} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -21,29 +22,24 @@ 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 rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -jxvf $CWD/$PRGNAM-*-$VERSION-*.tar.bz2 +tar -xvf $CWD/$PRGNAM-*-$VERSION-*.tar.bz2 mv $PRGNAM-*-$VERSION-*/ $PRGNAM-$VERSION cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -if [ "$GTKUI" = 'yes' ]; then - GTKUIOPT='--enable-gtk' -else - unset -v GTKUIOPT -fi - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - $GTKUIOPT \ --enable-pthread \ --enable-visualize \ --enable-shared @@ -51,17 +47,8 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) - -if [ "$GTKUI" = 'yes' ]; then - mkdir -p $PKG/usr/share/pixmaps - cp gtk/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png - mkdir -p $PKG/usr/share/applications - cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop -fi +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION @@ -69,7 +56,6 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |