diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 15:21:07 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 15:21:07 +0000 |
commit | cc6162770e0a91d45866dd760690d21c6db27fee (patch) | |
tree | 41ee23c9647f042e84712f31b4d257d7db8cd51d /databases/jdbc-postgresql82/Makefile | |
parent | e87e8011a9f70544994c762db2703e876ecdad08 (diff) | |
download | pkgsrc-cc6162770e0a91d45866dd760690d21c6db27fee.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'databases/jdbc-postgresql82/Makefile')
-rw-r--r-- | databases/jdbc-postgresql82/Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/databases/jdbc-postgresql82/Makefile b/databases/jdbc-postgresql82/Makefile index 4c1cda014cf..b8a760dc869 100644 --- a/databases/jdbc-postgresql82/Makefile +++ b/databases/jdbc-postgresql82/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2008/01/07 23:04:56 abs Exp $ +# $NetBSD: Makefile,v 1.3 2008/03/03 15:21:07 jlam Exp $ # DISTNAME= postgresql-jdbc-8.2-${PGBUILD}.src @@ -16,6 +16,8 @@ JARDIST= postgresql-8.2-${PGBUILD}.jdbc3.jar JARFILE= postgresql82.jar EXTRACT_ONLY= ${DISTFILES:N*.jar} +PKG_DESTDIR_SUPPORT= user-destdir + USE_JAVA= run USE_JAVA2= 1.4 NO_BUILD= YES @@ -25,10 +27,11 @@ PLIST_SUBST+= JARFILE=${JARFILE: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}/${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}/${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/${DOCDIR} .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" |