1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/databases/postgresql-jdbc/Makefile
Sean Chittenden 8f87e4c8f3 Update PostgreSQL JDBC for 7.3.1.
PR:		ports/45881
Submitted by:	Palle Girgensohn <girgen@pingpong.net>
2003-01-04 23:36:44 +00:00

45 lines
1.2 KiB
Makefile

# New ports collection makefile for: PostgreSQL JDBC
# Date created: January 14, 2002
# Whom: Palle Girgensohn <girgen@partitur.se>
#
# $FreeBSD$
#
PORTNAME= postgresql-jdbc
CATEGORIES= databases java
MAINTAINER= girgen@pingpong.net
BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/jakarta-ant
POSTGRESQL_PORT?= databases/postgresql7
POSTGRESQL_SUBPORT=YES
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
CONFIGURE_ARGS= --with-java
USE_JAVA= 1.1+
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)
@ ${MKDIR} -m 0555 ${PREFIX}/share/examples/postgresql ;\
cd ${WRKSRC}/src/interfaces/jdbc/example ;\
pax -rw . ${PREFIX}/share/examples/postgresql
.for i in README
@ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \
${PREFIX}/share/examples/postgresql
.endfor
.endif
@ ${ECHO} ==================================== ;\
${SED} -e "s,/usr/local,${PREFIX},g" ${PKGDIR}/pkg-message ;\
${ECHO} ====================================
.include <bsd.port.mk>