libraries/geos: Updated for version 3.0.4

This commit is contained in:
Kyle Guinn 2010-05-13 00:29:32 +02:00 committed by David Somero
parent 6c4f4ad9b0
commit 920742f391
3 changed files with 16 additions and 12 deletions

View File

@ -3,5 +3,3 @@ Suite (JTS). As such, it aims to contain the complete functionality
of JTS in C++. This includes all the OpenGIS "Simple Features for SQL"
spatial predicate functions and spatial operators, as well as specific
JTS enhanced topology functions.
Dependencies: swig available at SlackBuilds.org

View File

@ -4,7 +4,7 @@
# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM=geos
VERSION=${VERSION:-3.0.0}
VERSION=${VERSION:-3.0.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -14,14 +14,15 @@ 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"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -e
@ -30,7 +31,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -43,6 +44,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/info \
@ -58,11 +60,13 @@ make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
$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}

View File

@ -1,8 +1,10 @@
PRGNAM="geos"
VERSION="3.0.0"
VERSION="3.0.4"
HOMEPAGE="http://trac.osgeo.org/geos/"
DOWNLOAD="http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2"
MD5SUM="3f7940abee9fec69a9787878cd3ae771"
DOWNLOAD="http://download.osgeo.org/geos/geos-3.0.4.tar.bz2"
MD5SUM="bd105fc583de019755ccd6950127c33a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
APPROVED="David Somero"
APPROVED="dsomero,rworkman"