summaryrefslogtreecommitdiff
path: root/libraries/gdal/gdal.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2010-12-15 09:20:39 -0200
committerErik Hanson <erik@slackbuilds.org>2010-12-17 07:56:47 -0600
commit744138b5f749391e5bdddbf2cf3ecd3c39bd77fc (patch)
tree3265fea2195edd25e0121c0c67d4b88dc91a625a /libraries/gdal/gdal.SlackBuild
parent27b32686b0e44b05f6e1f3256119018b0ac7f631 (diff)
downloadslackbuilds-744138b5f749391e5bdddbf2cf3ecd3c39bd77fc.tar.gz
libraries/gdal: Updated for version 1.7.3.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/gdal/gdal.SlackBuild')
-rw-r--r--libraries/gdal/gdal.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/libraries/gdal/gdal.SlackBuild b/libraries/gdal/gdal.SlackBuild
index 120ef7c106..ead65586c9 100644
--- a/libraries/gdal/gdal.SlackBuild
+++ b/libraries/gdal/gdal.SlackBuild
@@ -4,7 +4,7 @@
# Maintained by David Spencer <baildon.research@googlemail.com>
PRGNAM=gdal
-VERSION=1.7.2
+VERSION=${VERSION:-1.7.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -51,8 +51,10 @@ find . \
-exec chmod 644 {} \;
WITHLIST=""
-if [[ "$GRASS" = "yes" ]]; then
- WITHLIST+=" --with-grass=/usr/lib${LIBDIRSUFFIX}/grass"
+if pkg-config --exists grass; then
+ if [ ${GRASS:-yes} = "yes" ]; then
+ WITHLIST+=" --with-grass=$(pkg-config --variable=prefix grass)"
+ fi
fi
CFLAGS="$SLKCFLAGS" \