aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2004-06-30 11:51:48 +0800
committervanilla <vanilla@FreeBSD.org>2004-06-30 11:51:48 +0800
commit58d29279d68455a77dfd17f27a7a1a137de88a27 (patch)
tree358c7d0773940dff24b18cbe616aeeee12e5a353 /databases
parent29d1539cf2c57741fbcd291265a6d86f02efa400 (diff)
downloadfreebsd-ports-gnome-58d29279d68455a77dfd17f27a7a1a137de88a27.tar.gz
freebsd-ports-gnome-58d29279d68455a77dfd17f27a7a1a137de88a27.tar.zst
freebsd-ports-gnome-58d29279d68455a77dfd17f27a7a1a137de88a27.zip
Add postgis-jdbc 0.8.2, postGIS spatial data structures for JDBC.
PR: ports/68322 Submitted by: Sam Lawrance <boris@brooknet.com.au>
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/postgis-jdbc/Makefile28
-rw-r--r--databases/postgis-jdbc/distinfo2
-rw-r--r--databases/postgis-jdbc/files/patch-Makefile51
-rw-r--r--databases/postgis-jdbc/pkg-descr4
-rw-r--r--databases/postgis-jdbc/pkg-plist4
6 files changed, 90 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 4f1ee577dfff..e34d27c8e1bb 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -208,6 +208,7 @@
SUBDIR += phpmyadmin
SUBDIR += phppgadmin
SUBDIR += postgis
+ SUBDIR += postgis-jdbc
SUBDIR += postgresql-contrib
SUBDIR += postgresql-devel
SUBDIR += postgresql-docs
diff --git a/databases/postgis-jdbc/Makefile b/databases/postgis-jdbc/Makefile
new file mode 100644
index 000000000000..b548b9960b04
--- /dev/null
+++ b/databases/postgis-jdbc/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: postgis-jdbc
+# Date created: June 25 2004
+# Whom: Sam Lawrance <boris@brooknet.com.au>
+#
+# $FreeBSD$
+#
+
+PORTNAME= postgis-jdbc
+PORTVERSION= 0.8.2
+CATEGORIES= databases java
+MASTER_SITES= http://postgis.refractions.net/
+DISTNAME= postgis-${PORTVERSION}
+
+MAINTAINER= boris@brooknet.com.au
+COMMENT= PostGIS spatial data structures for JDBC
+
+BUILD_DEPENDS= ${JAVAJARDIR}/postgresql.jar:${PORTSDIR}/databases/postgresql-jdbc
+
+USE_JAVA= 1.4+
+EXAMPLESDIR= ${PREFIX}/share/examples/${PKGBASE}
+MAKE_ARGS= EXAMPLESDIR="${EXAMPLESDIR}" \
+ DESTDIR="${PREFIX}" \
+ INSTALL_DATA="${INSTALL_DATA}" \
+ JAVAJARDIR="${JAVAJARDIR}"
+
+WRKSRC= ${WRKDIR}/postgis-${PORTVERSION}/jdbc
+
+.include <bsd.port.mk>
diff --git a/databases/postgis-jdbc/distinfo b/databases/postgis-jdbc/distinfo
new file mode 100644
index 000000000000..77425a69e556
--- /dev/null
+++ b/databases/postgis-jdbc/distinfo
@@ -0,0 +1,2 @@
+MD5 (postgis-0.8.2.tar.gz) = 0a2ed054e7a1ad74153eb844d1b56046
+SIZE (postgis-0.8.2.tar.gz) = 1875280
diff --git a/databases/postgis-jdbc/files/patch-Makefile b/databases/postgis-jdbc/files/patch-Makefile
new file mode 100644
index 000000000000..d657301bc048
--- /dev/null
+++ b/databases/postgis-jdbc/files/patch-Makefile
@@ -0,0 +1,51 @@
+diff -urN ../jdbc.orig/Makefile ./Makefile
+--- ../jdbc.orig/Makefile Fri Jun 25 18:11:45 2004
++++ ./Makefile Fri Jun 25 18:12:52 2004
+@@ -1,15 +1,21 @@
+ JAVAC = javac
+ JAVA = java
+ JAR = jar
+-CLASSPATH = ../../../src/interfaces/jdbc/jars/postgresql.jar:.
++CLASSPATH = $(JAVAJARDIR)/postgresql.jar:.
+
+ all: ogis \
+ pgobjs \
+- test
++ test \
++ jar
+
+ jar:
+ $(JAR) -cf postgis.jar org/postgis/*.java org/postgis/*.class README
+
++install:
++ $(INSTALL_DATA) postgis.jar $(JAVAJARDIR)
++ [ -d $(EXAMPLESDIR) ] || mkdir $(EXAMPLESDIR) || exit -1
++ $(INSTALL_DATA) examples/Test.java examples/TestServer.java $(EXAMPLESDIR)
++
+ ogis:
+ $(JAVAC) -classpath $(CLASSPATH) \
+ org/postgis/Geometry.java \
+@@ -20,19 +26,21 @@
+ org/postgis/LinearRing.java \
+ org/postgis/Polygon.java \
+ org/postgis/MultiPolygon.java
++ touch ogis
+
+
+ pgobjs:
+ $(JAVAC) -classpath $(CLASSPATH) \
+ org/postgis/PGgeometry.java \
+ org/postgis/PGbox3d.java
++ touch pgobjs
+
+ test:
+ $(JAVAC) -classpath $(CLASSPATH) examples/Test.java
+ $(JAVA) -classpath $(CLASSPATH) examples/Test
+-
++ touch test
+
+ jtest:
+ $(JAVAC) -classpath $(CLASSPATH) examples/TestServer.java
+ $(JAVA) -classpath $(CLASSPATH) examples/TestServer
+-
++ touch jtest
diff --git a/databases/postgis-jdbc/pkg-descr b/databases/postgis-jdbc/pkg-descr
new file mode 100644
index 000000000000..74beaac5b923
--- /dev/null
+++ b/databases/postgis-jdbc/pkg-descr
@@ -0,0 +1,4 @@
+PostGIS-JDBC provides the spatial data structures needed to use
+PostgreSQL-JDBC with spatial tables.
+
+WWW: http://postgis.refractions.net
diff --git a/databases/postgis-jdbc/pkg-plist b/databases/postgis-jdbc/pkg-plist
new file mode 100644
index 000000000000..24e89d6002e4
--- /dev/null
+++ b/databases/postgis-jdbc/pkg-plist
@@ -0,0 +1,4 @@
+share/java/classes/postgis.jar
+%%EXAMPLESDIR%%/Test.java
+%%EXAMPLESDIR%%/TestServer.java
+@dirrm %%EXAMPLESDIR%%