aboutsummaryrefslogtreecommitdiff
path: root/games/vbam/vbam.SlackBuild
diff options
context:
space:
mode:
authorJK Wood <joshuakwood@gmail.com>2011-07-24 12:16:37 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2011-08-11 20:28:34 -0300
commit7b1228c9b34f66df0c7423ad9263ad4b03b9c90e (patch)
treee4a3d582e51fa54279df4c9e5c050d67d88d52ce /games/vbam/vbam.SlackBuild
parent9727f8bda836fa75dfbb2a6cf5cc3340775b7b64 (diff)
games/vbam: Updated for version r1001.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/vbam/vbam.SlackBuild')
-rw-r--r--games/vbam/vbam.SlackBuild14
1 files changed, 6 insertions, 8 deletions
diff --git a/games/vbam/vbam.SlackBuild b/games/vbam/vbam.SlackBuild
index 437351b09c9ba..7e67e748bfacb 100644
--- a/games/vbam/vbam.SlackBuild
+++ b/games/vbam/vbam.SlackBuild
@@ -15,20 +15,18 @@
# email address, I may be able to see what you did
# wrong and prevent it from happening in the future.
# In which case, I may just send YOU five dollars.
-#
+
# Modified by the SlackBuilds.org project.
PRGNAM=vbam
-VERSION=r856
+VERSION=r1001
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -54,6 +52,9 @@ fi
set -e
+# Change this to disable the GTK frontend
+BUILD_GTK=${BUILD_GTK:-yes}
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -66,14 +67,11 @@ find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Fix an invalid conversion from const char to char
-patch -p1 < $CWD/vbam-r856-debugger.cpp.diff
-
cmake . \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX="/usr" \
- -DNO_GTK=1
+ -DENABLE_GTK=${BUILD_GTK}
make
make install DESTDIR=$PKG