summaryrefslogtreecommitdiffstats
path: root/games/dustrac/dustrac.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/dustrac/dustrac.SlackBuild')
-rw-r--r--games/dustrac/dustrac.SlackBuild25
1 files changed, 7 insertions, 18 deletions
diff --git a/games/dustrac/dustrac.SlackBuild b/games/dustrac/dustrac.SlackBuild
index ab71d9920d..54fca85170 100644
--- a/games/dustrac/dustrac.SlackBuild
+++ b/games/dustrac/dustrac.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for dustrac
-# Copyright 2013-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2013-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
# 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=dustrac
-VERSION=${VERSION:-1.7.3}
+VERSION=${VERSION:-1.11.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,29 +65,18 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
-# Fix .desktop item
-sed -i '/^Categories/s|.*|&;|' src/*.in
-
-# Determine if we use Qt5. Default is Qt4.
-if [ "${USEQT5:-no}" == "yes" ]; then
- QT5GUI="ON"
-else
- QT5GUI="OFF"
-fi
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -I/usr/include/qt5/QtGui" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -I/usr/include/qt5/QtGui" \
-DBIN_PATH="games" \
-DDATA_PATH="/usr/share/$PRGNAM" \
-DDOC_PATH:PATH="/usr/doc/$PRGNAM-$VERSION" \
- -DUseQt5:BOOL="$QT5GUI" \
- -DGL30:BOOL=ON \
+ -DNO_GLEW:BOOL=OFF \
-DReleaseBuild:BOOL=ON \
.