diff options
author | Kyle Guinn <elyk03@gmail.com> | 2010-05-11 22:54:00 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:54:00 +0200 |
commit | 1619050da05ce00c60b083607d432df20e674777 (patch) | |
tree | 5e5e46855fbf0e8fe10e2b3a80e3a3e3f1a0de88 /libraries/geos/geos.SlackBuild | |
parent | 639173ecaded835479b8b62c33a8a0976b6b41d8 (diff) | |
download | slackbuilds-1619050da05ce00c60b083607d432df20e674777.tar.gz |
libraries/geos: Added to 12.1 repository
Diffstat (limited to 'libraries/geos/geos.SlackBuild')
-rw-r--r-- | libraries/geos/geos.SlackBuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/libraries/geos/geos.SlackBuild b/libraries/geos/geos.SlackBuild new file mode 100644 index 0000000000..dd07ee6d86 --- /dev/null +++ b/libraries/geos/geos.SlackBuild @@ -0,0 +1,68 @@ +#!/bin/sh + +# Slackware build script for geos +# Written by Kyle Guinn <elyk03@gmail.com> + +PRGNAM=geos +VERSION=${VERSION:-3.0.0} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM-$VERSION +OUTPUT=${OUTPUT:-/tmp} + +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ + -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --infodir=/usr/info \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-shared \ + --disable-static \ + --enable-python \ + --enable-ruby \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $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 |