pkgsrc/databases/jdbc-postgresql/Makefile
jlam 585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00

49 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.26 2005/05/22 20:07:45 jlam Exp $
#
DISTNAME= postgresql-${DIST_VERS}
PKGNAME= jdbc-${DISTNAME}
CATEGORIES= databases java
MASTER_SITES?= http://www.postgresql.org/ftpsite/source/v${DIST_VERS}/ \
ftp://ftp.postgresql.org/pub/source/v${DIST_VERS}/ \
ftp://ftp.de.postgresql.org/pub/source/v${DIST_VERS}/ \
ftp://ch.postgresql.org/mirror/postgresql/source/v${DIST_VERS}/ \
ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/source/v${DIST_VERS}/ \
ftp://looking-glass.usask.ca/pub/postgresql/source/v${DIST_VERS}/ \
ftp://ftp.sunsite.auc.dk/mirrors/postgresql/source/v${DIST_VERS}/ \
ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/source/v${DIST_VERS}/
DIST_VERS= 7.3.8
MAINTAINER= jwise@NetBSD.org
HOMEPAGE= http://www.postgresql.org/
COMMENT= 100% Java JDBC driver for PostgreSQL
# No, we don't depend on postgresql. This code base stands alone.
BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
EXTRACT_ELEMENTS= ${DISTNAME}/src/interfaces/jdbc
WRKSRC= ${WRKDIR}/${DISTNAME}/src/interfaces/jdbc
USE_TOOLS+= gmake
EXAMPLEDIR= ${PREFIX}/share/examples/java/jdbc-postgresql
DOCDIR= ${PREFIX}/share/doc/java/jdbc-postgresql
do-configure:
( ${ECHO} "VERSION= ${DIST_VERS}"; \
${ECHO} "ANT= ${LOCALBASE}/bin/ant"; \
${ECHO} "DEF_PGPORT= 5432"; \
${ECHO} "srcdir= ."; \
) > ${WRKSRC}/../../../src/Makefile.global
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/java
${INSTALL_DATA} ${WRKSRC}/jars/postgresql.jar ${PREFIX}/lib/java
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.java ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/jars/postgresql-examples.jar ${EXAMPLEDIR}
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"