From a6dd6f9962a2fbd88d66f45a6f950c289d8d88a1 Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sun, 2 Feb 2014 06:55:03 +0700 Subject: gis/geos: Moved from Libraries category. Signed-off-by: Willy Sudiarto Raharjo --- gis/geos/README | 5 +++ gis/geos/geos.SlackBuild | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ gis/geos/geos.info | 10 ++++++ gis/geos/slack-desc | 19 +++++++++++ 4 files changed, 118 insertions(+) create mode 100644 gis/geos/README create mode 100644 gis/geos/geos.SlackBuild create mode 100644 gis/geos/geos.info create mode 100644 gis/geos/slack-desc (limited to 'gis') 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 +# Maintained by Benjamin Trigona-Harany + +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: -- cgit v1.2.3