diff options
author | Benjamin Trigona-Harany <slackbuilds@jaxartes.net> | 2014-02-02 06:55:03 +0700 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2014-02-02 02:09:50 -0600 |
commit | a6dd6f9962a2fbd88d66f45a6f950c289d8d88a1 (patch) | |
tree | fc03142d3fa32bdad40f2d7f4ab2ce27506d02a5 /gis/geos | |
parent | 67d814690931dadc6cc8fa69eb3a688674d38c35 (diff) | |
download | slackbuilds-a6dd6f9962a2fbd88d66f45a6f950c289d8d88a1.tar.gz |
gis/geos: Moved from Libraries category.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/geos')
-rw-r--r-- | gis/geos/README | 5 | ||||
-rw-r--r-- | gis/geos/geos.SlackBuild | 84 | ||||
-rw-r--r-- | gis/geos/geos.info | 10 | ||||
-rw-r--r-- | gis/geos/slack-desc | 19 |
4 files changed, 118 insertions, 0 deletions
diff --git a/gis/geos/README b/gis/geos/README new file mode 100644 index 0000000000..b6cf0b40fa --- /dev/null +++ b/gis/geos/README @@ -0,0 +1,5 @@ +GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology +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. diff --git a/gis/geos/geos.SlackBuild b/gis/geos/geos.SlackBuild new file mode 100644 index 0000000000..a2c160d4b8 --- /dev/null +++ b/gis/geos/geos.SlackBuild @@ -0,0 +1,84 @@ +#!/bin/sh + +# Slackware build script for geos +# Written by Kyle Guinn <elyk03@gmail.com> +# Maintained by Benjamin Trigona-Harany <slackbuilds@jaxartes.net> + +PRGNAM=geos +VERSION=${VERSION:-3.4.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +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 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -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 \ + --libdir=/usr/lib$LIBDIRSUFFIX \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --infodir=/usr/info \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-shared \ + --disable-static \ + --enable-python \ + --disable-ruby \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +mkdir -p $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.${PKGTYPE:-tgz} diff --git a/gis/geos/geos.info b/gis/geos/geos.info new file mode 100644 index 0000000000..d7d815e035 --- /dev/null +++ b/gis/geos/geos.info @@ -0,0 +1,10 @@ +PRGNAM="geos" +VERSION="3.4.2" +HOMEPAGE="http://trac.osgeo.org/geos/" +DOWNLOAD="http://download.osgeo.org/geos/geos-3.4.2.tar.bz2" +MD5SUM="fc5df2d926eb7e67f988a43a92683bae" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="slackbuilds@jaxartes.net" diff --git a/gis/geos/slack-desc b/gis/geos/slack-desc new file mode 100644 index 0000000000..8f6970f90e --- /dev/null +++ b/gis/geos/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +geos: GEOS (Geometry Engine) +geos: +geos: GEOS (Geometry Engine - Open Source) is a C++ port of the Java +geos: Topology Suite (JTS). As such, it aims to contain the complete +geos: functionality of JTS in C++. This includes all the OpenGIS +geos: "Simple Features for SQL" spatial predicate functions and spatial +geos: operators, as well as specific JTS enhanced topology functions. +geos: +geos: +geos: +geos: |