diff options
Diffstat (limited to 'games/vbam/vbam.SlackBuild')
-rw-r--r-- | games/vbam/vbam.SlackBuild | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/games/vbam/vbam.SlackBuild b/games/vbam/vbam.SlackBuild index 177dbbf81dcf8..5c91da53a81a3 100644 --- a/games/vbam/vbam.SlackBuild +++ b/games/vbam/vbam.SlackBuild @@ -1,5 +1,8 @@ #!/bin/sh # Slackbuild for vbam + +# Currently maintained by Dugan Chen <thedoogster@gmail.com> + # Written by JK Wood <joshuakwood@gmail.com> # Slackbuild is released under the Dog-on-Fire License: @@ -19,8 +22,8 @@ # Modified by the SlackBuilds.org project. PRGNAM=vbam -VERSION=r1001 -BUILD=${BUILD:-2} +VERSION=1.8.0.1054 +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -39,27 +42,37 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" + ASM=ON # x86 ASM optimizations are available. elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" + ASM=ON elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" + ASM=OFF else SLKCFLAGS="-O2" LIBDIRSUFFIX="" + ASM=OFF fi set -e -# Change this to disable the GTK frontend -BUILD_GTK=${BUILD_GTK:-yes} +# Set to ON to enable the GTK frontend +GTK=${GTK:-OFF} + +# Set to ON to enable the WxWidgets frontend +WX=${WX:-OFF} + +# Set to ON to enable FFMPEG A/V recording. +FFMPEG=${FFMPEG:-OFF} rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -71,7 +84,11 @@ cmake . \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX="/usr" \ - -DENABLE_GTK=${BUILD_GTK} + -DENABLE_ASM_CORE=${ASM} \ + -DENABLE_ASM_SCALERS=${ASM} \ + -DENABLE_GTK=${GTK} \ + -DENABLE_WX=${WX} \ + -DENABLE_FFMPEG=${FFMPEG} make make install DESTDIR=$PKG @@ -81,11 +98,11 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ mv $PKG/etc/vbam.cfg $PKG/etc/vbam.cfg.new -mkdir -p $PKG/usr/man +mkdir -p $PKG/usr/man gzip -9c debian/vbam.1 > $PKG/usr/man/vbam.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a doc/License.txt doc/ReadMe.SDL.txt doc/gpl.txt \ +cp -a doc/* \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |