blob: 376d6efd439ad078d4b72c5a1b838fe26eaf4e07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $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"
|