aboutsummaryrefslogtreecommitdiff
path: root/gis/viking/viking.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/viking/viking.SlackBuild')
-rw-r--r--gis/viking/viking.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/gis/viking/viking.SlackBuild b/gis/viking/viking.SlackBuild
index 2b4a3326eaad2..8ca0b8437e688 100644
--- a/gis/viking/viking.SlackBuild
+++ b/gis/viking/viking.SlackBuild
@@ -26,12 +26,12 @@
PRGNAM=viking
VERSION=${VERSION:-1.6.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -71,6 +71,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Patches ripped off from Arch (thanks!)
+patch -p1 < $CWD/remove-mapquest.patch
+patch -p0 < $CWD/viking-1.6.2-gpsd-3.18-fix.patch
+
OPT_MAPNIK='--disable-mapnik'
if [ ${MAPNIK:-no} = "yes" ]; then
OPT_MAPNIK="--enable-mapnik"