From 3810c074f7c3fce35a8036814397051026f6dfb1 Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sun, 2 Feb 2014 06:56:27 +0700 Subject: gis/proj: Moved from System category. Signed-off-by: Willy Sudiarto Raharjo --- gis/proj/README | 3 ++ gis/proj/jni.patch | 11 ++++++ gis/proj/proj.SlackBuild | 92 +++++++++++++++++++++++++++++++++++++++++++++ gis/proj/proj.info | 10 +++++ gis/proj/slack-desc | 19 ++++++++++ system/proj/README | 3 -- system/proj/jni.patch | 11 ------ system/proj/proj.SlackBuild | 92 --------------------------------------------- system/proj/proj.info | 10 ----- system/proj/slack-desc | 19 ---------- 10 files changed, 135 insertions(+), 135 deletions(-) create mode 100644 gis/proj/README create mode 100644 gis/proj/jni.patch create mode 100644 gis/proj/proj.SlackBuild create mode 100644 gis/proj/proj.info create mode 100644 gis/proj/slack-desc delete mode 100644 system/proj/README delete mode 100644 system/proj/jni.patch delete mode 100644 system/proj/proj.SlackBuild delete mode 100644 system/proj/proj.info delete mode 100644 system/proj/slack-desc diff --git a/gis/proj/README b/gis/proj/README new file mode 100644 index 0000000000000..373aeed2c4139 --- /dev/null +++ b/gis/proj/README @@ -0,0 +1,3 @@ +proj is a standard UNIX filter function which converts geographic +longitude and latitude coordinates into cartesian coordinates by means +of a wide variety of cartographic projection functions. diff --git a/gis/proj/jni.patch b/gis/proj/jni.patch new file mode 100644 index 0000000000000..5b69aba8bf75b --- /dev/null +++ b/gis/proj/jni.patch @@ -0,0 +1,11 @@ +diff -Nur proj-4.8.0.a/src/jniproj.c proj-4.8.0.b/src/jniproj.c +--- proj-4.8.0.a/src/jniproj.c 2012-02-20 17:11:24.000000000 -0800 ++++ proj-4.8.0.b/src/jniproj.c 2012-12-29 22:04:56.199425359 -0800 +@@ -49,7 +49,6 @@ + #include + #include + #include "projects.h" +-#include "org_proj4_PJ.h" + #include + + #define PJ_FIELD_NAME "ptr" diff --git a/gis/proj/proj.SlackBuild b/gis/proj/proj.SlackBuild new file mode 100644 index 0000000000000..3dc2f780c9dc7 --- /dev/null +++ b/gis/proj/proj.SlackBuild @@ -0,0 +1,92 @@ +#!/bin/sh + +# Slackware build script for proj +# Written by Kyle Guinn +# Maintained by Benjamin Trigona-Harany + +PRGNAM=proj +VERSION=${VERSION:-4.8.0} +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-$VERSION +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.gz +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 {} \; + +# remove header that is no longer part of source +patch -p1 < $CWD/jni.patch + +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 \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l); do \ + ln -s $(readlink $i).gz $i.gz; \ + rm $i; \ + done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog INSTALL NEWS README \ + $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/proj/proj.info b/gis/proj/proj.info new file mode 100644 index 0000000000000..1847ef37c0894 --- /dev/null +++ b/gis/proj/proj.info @@ -0,0 +1,10 @@ +PRGNAM="proj" +VERSION="4.8.0" +HOMEPAGE="http://trac.osgeo.org/proj/" +DOWNLOAD="http://download.osgeo.org/proj/proj-4.8.0.tar.gz" +MD5SUM="d815838c92a29179298c126effbb1537" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="slackbuilds@jaxartes.net" diff --git a/gis/proj/slack-desc b/gis/proj/slack-desc new file mode 100644 index 0000000000000..522f281201da7 --- /dev/null +++ b/gis/proj/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------------------------------------------------------| +proj: proj (Cartograpic projection procedures) +proj: +proj: proj is a standard UNIX filter function which converts geographic +proj: longitude and latitude coordinates into cartesian coordinates by +proj: means of a wide variety of cartographic projection functions. +proj: +proj: +proj: +proj: +proj: +proj: diff --git a/system/proj/README b/system/proj/README deleted file mode 100644 index 373aeed2c4139..0000000000000 --- a/system/proj/README +++ /dev/null @@ -1,3 +0,0 @@ -proj is a standard UNIX filter function which converts geographic -longitude and latitude coordinates into cartesian coordinates by means -of a wide variety of cartographic projection functions. diff --git a/system/proj/jni.patch b/system/proj/jni.patch deleted file mode 100644 index 5b69aba8bf75b..0000000000000 --- a/system/proj/jni.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -Nur proj-4.8.0.a/src/jniproj.c proj-4.8.0.b/src/jniproj.c ---- proj-4.8.0.a/src/jniproj.c 2012-02-20 17:11:24.000000000 -0800 -+++ proj-4.8.0.b/src/jniproj.c 2012-12-29 22:04:56.199425359 -0800 -@@ -49,7 +49,6 @@ - #include - #include - #include "projects.h" --#include "org_proj4_PJ.h" - #include - - #define PJ_FIELD_NAME "ptr" diff --git a/system/proj/proj.SlackBuild b/system/proj/proj.SlackBuild deleted file mode 100644 index 3dc2f780c9dc7..0000000000000 --- a/system/proj/proj.SlackBuild +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/sh - -# Slackware build script for proj -# Written by Kyle Guinn -# Maintained by Benjamin Trigona-Harany - -PRGNAM=proj -VERSION=${VERSION:-4.8.0} -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-$VERSION -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.gz -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 {} \; - -# remove header that is no longer part of source -patch -p1 < $CWD/jni.patch - -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 \ - --build=$ARCH-slackware-linux - -make -make install-strip DESTDIR=$PKG - -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l); do \ - ln -s $(readlink $i).gz $i.gz; \ - rm $i; \ - done -) - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS COPYING ChangeLog INSTALL NEWS README \ - $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/system/proj/proj.info b/system/proj/proj.info deleted file mode 100644 index 1847ef37c0894..0000000000000 --- a/system/proj/proj.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="proj" -VERSION="4.8.0" -HOMEPAGE="http://trac.osgeo.org/proj/" -DOWNLOAD="http://download.osgeo.org/proj/proj-4.8.0.tar.gz" -MD5SUM="d815838c92a29179298c126effbb1537" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Benjamin Trigona-Harany" -EMAIL="slackbuilds@jaxartes.net" diff --git a/system/proj/slack-desc b/system/proj/slack-desc deleted file mode 100644 index 522f281201da7..0000000000000 --- a/system/proj/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# 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------------------------------------------------------| -proj: proj (Cartograpic projection procedures) -proj: -proj: proj is a standard UNIX filter function which converts geographic -proj: longitude and latitude coordinates into cartesian coordinates by -proj: means of a wide variety of cartographic projection functions. -proj: -proj: -proj: -proj: -proj: -proj: -- cgit v1.2.3