2002-02-19 09:35:58 +01:00
|
|
|
# New ports collection makefile for: PostgreSQL JDBC
|
|
|
|
# Date created: January 14, 2002
|
|
|
|
# Whom: Palle Girgensohn <girgen@partitur.se>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 1
|
2002-02-19 09:35:58 +01:00
|
|
|
CATEGORIES= databases java
|
2003-09-04 14:03:58 +02:00
|
|
|
PKGNAMESUFFIX= -jdbc
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2003-01-05 00:36:44 +01:00
|
|
|
MAINTAINER= girgen@pingpong.net
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= The Java JDBC implementation for PostgreSQL
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2003-07-23 16:30:29 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant
|
2002-02-19 09:35:58 +01:00
|
|
|
|
2003-12-04 13:00:49 +01:00
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
|
|
|
POSTGRESQL_SUBPORT=YES
|
|
|
|
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
|
2002-02-19 09:35:58 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-java
|
|
|
|
|
2003-01-05 00:36:44 +01:00
|
|
|
USE_JAVA= 1.1+
|
2002-02-19 09:35:58 +01:00
|
|
|
|
|
|
|
CONFIGURE_ENV= JAVA_HOME="${JAVA_HOME}"
|
|
|
|
MAKE_ENV+= JAVA_HOME="${JAVA_HOME}"
|
|
|
|
MAKE_ARGS+= -C src/interfaces/jdbc
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@ ${MKDIR} -m 0555 ${PREFIX}/share/java/classes ;\
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/jars/postgresql.jar \
|
|
|
|
${PREFIX}/share/java/classes/postgresql.jar
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-09-04 14:03:58 +02:00
|
|
|
@ ${MKDIR} -m 0555 ${EXAMPLESDIR} ;\
|
2002-02-19 09:35:58 +01:00
|
|
|
cd ${WRKSRC}/src/interfaces/jdbc/example ;\
|
2004-01-22 09:05:25 +01:00
|
|
|
${PAX} -rw . ${EXAMPLESDIR}
|
2003-01-05 00:36:44 +01:00
|
|
|
.for i in README
|
2002-02-19 09:35:58 +01:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \
|
2003-09-04 14:03:58 +02:00
|
|
|
${EXAMPLESDIR}
|
2002-02-19 09:35:58 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@ ${ECHO} ==================================== ;\
|
2003-01-05 00:36:44 +01:00
|
|
|
${SED} -e "s,/usr/local,${PREFIX},g" ${PKGDIR}/pkg-message ;\
|
2002-02-19 09:35:58 +01:00
|
|
|
${ECHO} ====================================
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|