summaryrefslogtreecommitdiff
path: root/databases/jdbc-postgresql81/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/jdbc-postgresql81/Makefile')
-rw-r--r--databases/jdbc-postgresql81/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/databases/jdbc-postgresql81/Makefile b/databases/jdbc-postgresql81/Makefile
index 65b3111130f..9d599361979 100644
--- a/databases/jdbc-postgresql81/Makefile
+++ b/databases/jdbc-postgresql81/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/01/07 23:15:01 abs Exp $
+# $NetBSD: Makefile,v 1.8 2008/03/03 15:21:07 jlam Exp $
#
DISTNAME= postgresql-jdbc-8.1-${PGBUILD}.src
@@ -16,6 +16,8 @@ JARDIST= postgresql-8.1-${PGBUILD}.jdbc3.jar
JARFILE= postgresql81.jar
EXTRACT_ONLY= ${DISTFILES:N*.jar}
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_JAVA= run
USE_JAVA2= 1.4
NO_BUILD= YES
@@ -27,12 +29,14 @@ PLIST_SUBST+= EXAMPLEDIR=${EXAMPLEDIR:Q}
PLIST_SUBST+= DOCDIR=${DOCDIR:Q}
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/lib/java
- ${INSTALL_DATA} ${DISTDIR}/${JARDIST} ${PREFIX}/lib/java/${JARFILE}
- ${INSTALL_DATA_DIR} ${PREFIX}/${EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKSRC}/example/*.java ${PREFIX}/${EXAMPLEDIR}
- ${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/java
+ ${INSTALL_DATA} ${DISTDIR}/${JARDIST} \
+ ${DESTDIR}${PREFIX}/lib/java/${JARFILE}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${EXAMPLEDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example/*.java \
+ ${DESTDIR}${PREFIX}/${EXAMPLEDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/${DOCDIR}
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"