diff options
author | David Spencer <baildon.research@googlemail.com> | 2010-08-14 08:36:17 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-14 19:04:49 -0500 |
commit | 487954b81099febfcb84721c97e84cafdb0b5b9c (patch) | |
tree | ec29525e42b149b69256035c07562784d757de12 /libraries/gdal/gdal.SlackBuild | |
parent | 5dc8673c207bbf83bba8b2c82a91dbeac615ffe5 (diff) |
libraries/gdal: Updated for version 1.7.2.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/gdal/gdal.SlackBuild')
-rw-r--r-- | libraries/gdal/gdal.SlackBuild | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/libraries/gdal/gdal.SlackBuild b/libraries/gdal/gdal.SlackBuild index b18f4ebb5a102..120ef7c1062b0 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 |