aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2003-09-04 20:03:58 +0800
committerosa <osa@FreeBSD.org>2003-09-04 20:03:58 +0800
commitd4050c99e7d2cd871651d2539052c4699e1bc160 (patch)
treebd03c7d8ab02af27f9543a4af060ffd2d1c0b483 /databases
parent8386c6f094f4112b01f7ff1980731adb846c6ea1 (diff)
downloadfreebsd-ports-gnome-d4050c99e7d2cd871651d2539052c4699e1bc160.tar.gz
freebsd-ports-gnome-d4050c99e7d2cd871651d2539052c4699e1bc160.tar.zst
freebsd-ports-gnome-d4050c99e7d2cd871651d2539052c4699e1bc160.zip
Use new depends scheme for postgresql slave ports:
${MAKE} -V ... instead of .include <...> Utilize ${EXAMPLESDIR} [1] Submitted by: Palle Girgensohn <girgen@pingpong.net> (maintainer), osa [1] PR: 56346, 56404
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql-jdbc/Makefile23
-rw-r--r--databases/postgresql-jdbc/pkg-plist38
2 files changed, 34 insertions, 27 deletions
diff --git a/databases/postgresql-jdbc/Makefile b/databases/postgresql-jdbc/Makefile
index 4b5418ff2f29..a26e4d01eead 100644
--- a/databases/postgresql-jdbc/Makefile
+++ b/databases/postgresql-jdbc/Makefile
@@ -4,20 +4,27 @@
#
# $FreeBSD$
#
+POSTGRESQL_PORT?= databases/postgresql7
-PORTNAME= postgresql-jdbc
+PORTNAME= postgresql
+PORTVERSION!= cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V PORTVERSION
+PORTREVISION?= 0
CATEGORIES= databases java
-PORTREVISION= 0
+MASTER_SITES= ${MASTER_SITE_PGSQL}
+MASTER_SITE_SUBDIR!= cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V MASTER_SITE_SUBDIR
+PKGNAMESUFFIX= -jdbc
+DISTFILES!= cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V DISTFILES
+DIST_SUBDIR= postgresql
MAINTAINER= girgen@pingpong.net
COMMENT= The Java JDBC implementation for PostgreSQL
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
-POSTGRESQL_PORT?= databases/postgresql7
-POSTGRESQL_SUBPORT=YES
-.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
+MD5_FILE= ${.CURDIR}/../../${POSTGRESQL_PORT}/distinfo
+USE_GMAKE= YES
+GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-java
USE_JAVA= 1.1+
@@ -31,12 +38,12 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/jars/postgresql.jar \
${PREFIX}/share/java/classes/postgresql.jar
.if !defined(NOPORTDOCS)
- @ ${MKDIR} -m 0555 ${PREFIX}/share/examples/postgresql ;\
+ @ ${MKDIR} -m 0555 ${EXAMPLESDIR} ;\
cd ${WRKSRC}/src/interfaces/jdbc/example ;\
- pax -rw . ${PREFIX}/share/examples/postgresql
+ pax -rw . ${EXAMPLESDIR}
.for i in README
@ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \
- ${PREFIX}/share/examples/postgresql
+ ${EXAMPLESDIR}
.endfor
.endif
@ ${ECHO} ==================================== ;\
diff --git a/databases/postgresql-jdbc/pkg-plist b/databases/postgresql-jdbc/pkg-plist
index 6cc6d4399485..7f92494f27c0 100644
--- a/databases/postgresql-jdbc/pkg-plist
+++ b/databases/postgresql-jdbc/pkg-plist
@@ -1,23 +1,23 @@
-%%PORTDOCS%%share/examples/postgresql/ImageViewer.java
-%%PORTDOCS%%share/examples/postgresql/README
-%%PORTDOCS%%share/examples/postgresql/Unicode.java
-%%PORTDOCS%%share/examples/postgresql/basic.java
-%%PORTDOCS%%share/examples/postgresql/blobtest.java
-%%PORTDOCS%%share/examples/postgresql/corba/StockClient.java
-%%PORTDOCS%%share/examples/postgresql/corba/StockDB.java
-%%PORTDOCS%%share/examples/postgresql/corba/StockDispenserImpl.java
-%%PORTDOCS%%share/examples/postgresql/corba/StockItemImpl.java
-%%PORTDOCS%%share/examples/postgresql/corba/StockServer.java
-%%PORTDOCS%%share/examples/postgresql/corba/readme
-%%PORTDOCS%%share/examples/postgresql/corba/stock.idl
-%%PORTDOCS%%share/examples/postgresql/corba/stock.sql
-%%PORTDOCS%%share/examples/postgresql/datestyle.java
-%%PORTDOCS%%share/examples/postgresql/metadata.java
-%%PORTDOCS%%share/examples/postgresql/psql.java
-%%PORTDOCS%%share/examples/postgresql/threadsafe.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/ImageViewer.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/README
+%%PORTDOCS%%%%EXAMPLESDIR%%/Unicode.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/basic.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/blobtest.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockClient.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockDB.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockDispenserImpl.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockItemImpl.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/StockServer.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/readme
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/stock.idl
+%%PORTDOCS%%%%EXAMPLESDIR%%/corba/stock.sql
+%%PORTDOCS%%%%EXAMPLESDIR%%/datestyle.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/metadata.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/psql.java
+%%PORTDOCS%%%%EXAMPLESDIR%%/threadsafe.java
share/java/classes/postgresql.jar
-%%PORTDOCS%%@dirrm share/examples/postgresql/corba
-@unexec rmdir %D/share/examples/postgresql 2>/dev/null || true
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/corba
+@unexec rmdir %D/%%EXAMPLESDIR%% 2>/dev/null || true
share/postgresql/java/postgresql-examples.jar
share/postgresql/java/postgresql.jar
@dirrm share/postgresql/java