summaryrefslogtreecommitdiff
path: root/libraries/gdal/gdal.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/gdal/gdal.SlackBuild')
-rw-r--r--libraries/gdal/gdal.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/libraries/gdal/gdal.SlackBuild b/libraries/gdal/gdal.SlackBuild
index b18f4ebb5a..120ef7c106 100644
--- a/libraries/gdal/gdal.SlackBuild
+++ b/libraries/gdal/gdal.SlackBuild
@@ -1,18 +1,17 @@
#!/bin/sh
# Slackware build script for GDAL
-# Written by Marco Cecchetti <mrc.ild@gmail.com>
+# Originally written by Marco Cecchetti <mrc.ild@gmail.com>
+# Maintained by David Spencer <baildon.research@googlemail.com>
PRGNAM=gdal
-VERSION=1.6.3
+VERSION=1.7.2
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
@@ -36,7 +35,6 @@ else
LIBDIRSUFFIX=""
fi
-
set -e
rm -rf $PKG
@@ -52,6 +50,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+WITHLIST=""
+if [[ "$GRASS" = "yes" ]]; then
+ WITHLIST+=" --with-grass=/usr/lib${LIBDIRSUFFIX}/grass"
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -65,14 +68,17 @@ CXXFLAGS="$SLKCFLAGS" \
--with-ogr=yes \
--with-libz=/usr/lib${LIBDIRSUFFIX} \
--with-libtiff=internal \
- --with-hide-internal-symbols=yes \
--with-curl=/usr/bin/curl-config \
--without-grib \
--with-static-proj4 \
+ --with-mysql \
+ --with-python \
+ $WITHLIST \
--build=$ARCH-slackware-linux
-
+
make
make install DESTDIR=$PKG
+make -f GNUmakefile -B man
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true