summaryrefslogtreecommitdiffstats
path: root/gis/viking/viking.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/viking/viking.SlackBuild')
-rw-r--r--gis/viking/viking.SlackBuild15
1 files changed, 13 insertions, 2 deletions
diff --git a/gis/viking/viking.SlackBuild b/gis/viking/viking.SlackBuild
index 26ee119d74..f06defd217 100644
--- a/gis/viking/viking.SlackBuild
+++ b/gis/viking/viking.SlackBuild
@@ -25,7 +25,7 @@
# Maintained by David Spencer <baildon.research@googlemail.com>
PRGNAM=viking
-VERSION=${VERSION:-1.5.1}
+VERSION=${VERSION:-1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,7 +69,16 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+OPT_MAPNIK='--disable-mapnik'
+if [ ${MAPNIK:-no} = "yes" ]; then
+ OPT_MAPNIK="--enable-mapnik"
+fi
+OPT_GEOCACHES='--disable-geocaches'
+if [ ${GEOCACHES:-no} = "yes" ]; then
+ OPT_GEOCACHES="--enable-geocaches"
+fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -81,6 +90,8 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--mandir=/usr/man \
--disable-scrollkeeper \
+ $OPT_MAPNIK \
+ $OPT_GEOCACHES \
--build=$ARCH-slackware-linux
make