aboutsummaryrefslogtreecommitdiff
path: root/libraries/gdal/gdal.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/gdal/gdal.SlackBuild')
-rw-r--r--libraries/gdal/gdal.SlackBuild31
1 files changed, 22 insertions, 9 deletions
diff --git a/libraries/gdal/gdal.SlackBuild b/libraries/gdal/gdal.SlackBuild
index e26fa573f0513..f55942630cc57 100644
--- a/libraries/gdal/gdal.SlackBuild
+++ b/libraries/gdal/gdal.SlackBuild
@@ -1,5 +1,6 @@
#!/bin/sh
# Slackware build script for GDAL
+
# Copyright 2009 Marco Cecchetti <mrc.ild@gmail.com>
# All rights reserved.
#
@@ -23,7 +24,7 @@
# Maintained by David Spencer <baildon.research@googlemail.com>
PRGNAM=gdal
-VERSION=${VERSION:-1.8.1}
+VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,7 +71,7 @@ find . \
-exec chmod 644 {} \;
WITHLIST=""
-# Grass support causes segfaults on x86_64. If you really want it,
+# Grass support is buggy. If you really want it,
# here is an undocumented option to enable it :-/
if pkg-config --exists grass; then
if [ ${GRASS:-no} = "yes" ]; then
@@ -78,18 +79,25 @@ if pkg-config --exists grass; then
fi
fi
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+# Thanks to the people at Arch for this:
+patch -p0 <$CWD/gdal-python-install.patch
+
+CFLAGS="$SLKCFLAGS -Wno-error" \
+CXXFLAGS="$SLKCFLAGS -Wno-error" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-static=no \
--with-threads \
--with-geos=yes \
--with-ogr=yes \
--with-libz=/usr/lib${LIBDIRSUFFIX} \
+ --with-liblzma \
+ --with-jpeg=internal \
--with-libtiff=internal \
--with-curl=/usr/bin/curl-config \
--without-grib \
@@ -102,18 +110,23 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-make -f GNUmakefile -B man
+
+# Kill erroneously installed .dox files
+rm $PKG/usr/bin/*.dox
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-cp -a man/ $PKG/usr/
+make -f GNUmakefile -B man
+make install-man DESTDIR=$PKG
gzip -9 $PKG/usr/man/man?/* || exit 1
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+make -f GNUmakefile -B docs
+# --docdir is ignored :-(
+make install-docs DESTDIR=$PKG INST_DOCS=/usr/doc/$PRGNAM-$VERSION
cp -a \
- COMMITERS HOWTO-RELEASE LICENSE.TXT NEWS PROVENANCE.TXT VERSION doc/* \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ COMMITERS HOWTO-RELEASE LICENSE.TXT NEWS PROVENANCE.TXT VERSION \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install