summaryrefslogtreecommitdiff
path: root/databases/jdbc-postgresql/Makefile
blob: c1ffa04758d14ecd8ea646a1295f37031682541d (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
# $NetBSD: Makefile,v 1.14 2002/04/19 17:59:18 jwise Exp $
#

DISTNAME=		postgresql-7.2.1
PKGNAME=		jdbc-${DISTNAME}
WRKSRC=			${WRKDIR}/${DISTNAME}/src/interfaces/jdbc
CATEGORIES=		databases
MASTER_SITES=		ftp://ftp.PostgreSQL.org/pub/ \
			ftp://ftp.sunsite.auc.dk/mirrors/www.postgresql.org/pub/ \
			ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/

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+=		jakarta-ant-[0-9]*:../../devel/jakarta-ant

EXTRACT_ELEMENTS=	${DISTNAME}/src/interfaces/jdbc

.include "../../mk/bsd.prefs.mk"

USE_GMAKE=
USE_JAVA=
NO_CONFIGURE=
CLASSPATH:=		${CLASSPATH}:.

HELP_FILES=		README Implementation CHANGELOG

pre-build:
	${ECHO} "VERSION=7.2.1" > ${WRKSRC}/../../../src/Makefile.global
	${ECHO} "ANT=${LOCALBASE}/bin/ant" >> ${WRKSRC}/../../../src/Makefile.global
	${ECHO} "srcdir=." >> ${WRKSRC}/../../../src/Makefile.global
	${ECHO} "DEF_PGPORT=5432" >> ${WRKSRC}/../../../src/Makefile.global

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/java
	${INSTALL_DATA} ${WRKSRC}/jars/postgresql.jar ${PREFIX}/lib/java
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/java/jdbc-postgresql
	${INSTALL_DATA} ${WRKSRC}/example/*.java ${PREFIX}/share/examples/java/jdbc-postgresql
	${INSTALL_DATA} ${WRKSRC}/jars/postgresql-examples.jar ${PREFIX}/share/examples/java/jdbc-postgresql
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/java/jdbc-postgresql
.for X in ${HELP_FILES}
	${INSTALL_DATA} ${WRKSRC}/${X} ${PREFIX}/share/doc/java/jdbc-postgresql
.endfor

.include "../../mk/bsd.pkg.mk"