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.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" \