diff options
author | David Spencer <nobbutl@yahoo.co.uk> | 2010-05-13 00:29:30 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:29:30 +0200 |
commit | 2d7b3956d5a1651d64df491e39480455d262c8f3 (patch) | |
tree | d9fb3aa877f40fead8172a3022c60ed28b1301d2 /libraries/gdal/gdal.SlackBuild | |
parent | fb6094ec7994b0f548d3afaadd15f5fd22266171 (diff) |
libraries/gdal: Updated for version 1.6.3
Diffstat (limited to 'libraries/gdal/gdal.SlackBuild')
-rw-r--r-- | libraries/gdal/gdal.SlackBuild | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/libraries/gdal/gdal.SlackBuild b/libraries/gdal/gdal.SlackBuild index e23fd2136490..b242ae1a6ab3 100644 --- a/libraries/gdal/gdal.SlackBuild +++ b/libraries/gdal/gdal.SlackBuild @@ -3,7 +3,7 @@ # Written by Marco Cecchetti <mrc.ild@gmail.com> PRGNAM=gdal -VERSION=1.6.0 +VERSION=1.6.3 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -15,19 +15,23 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2" + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -39,39 +43,42 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ + --enable-static=no \ --with-threads \ --with-geos=yes \ --with-ogr=yes \ - --with-libz=/usr/lib \ + --with-libz=/usr/lib${LIBDIRSUFFIX} \ --with-libtiff=internal \ --with-hide-internal-symbols=yes \ --with-curl=/usr/bin/curl-config \ --without-grib \ --with-static-proj4 \ - --build=$ARCH-slackware-linux \ - --host=$ARCH-slackware-linux \ - || exit 1 + --build=$ARCH-slackware-linux -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) cp -a man/ $PKG/usr/ gzip -9 $PKG/usr/man/man?/* || exit 1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COMMITERS HOWTO-RELEASE LICENSE.TXT NEWS PROVENANCE.TXT VERSION doc/* \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + COMMITERS HOWTO-RELEASE LICENSE.TXT NEWS PROVENANCE.TXT VERSION doc/* \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |