diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 06:59:03 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 06:59:03 +0000 |
commit | 29d85ddd6a393a4bfaf03a504f8916a55cec3687 (patch) | |
tree | 85dcef76c01a75047f6f6e519e34539fa17ae348 /games/cgoban-java | |
parent | 38dd76219d21c71b412129d8960dd0c0b88a92b8 (diff) | |
download | pkgsrc-29d85ddd6a393a4bfaf03a504f8916a55cec3687.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/cgoban-java')
-rw-r--r-- | games/cgoban-java/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/games/cgoban-java/Makefile b/games/cgoban-java/Makefile index ba853e92f54..757703dca01 100644 --- a/games/cgoban-java/Makefile +++ b/games/cgoban-java/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.46 2008/02/19 02:53:50 rh Exp $ +# $NetBSD: Makefile,v 1.47 2008/03/04 06:59:03 jlam Exp $ # DISTNAME= cgoban-java-3.3.22 @@ -11,6 +11,8 @@ MAINTAINER= rh@NetBSD.org HOMEPAGE= http://www.gokgs.com/ COMMENT= Client for the KGS Go Server and SGF viewer/editor +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} USE_JAVA= run USE_JAVA2= yes @@ -22,8 +24,10 @@ do-build: printf "#! ${SH}\\nexec ${JAVA_BINPREFIX}-java -jar ${PREFIX}/lib/java/${DISTNAME}.jar \"\$$@\"\\n" > ${WRKSRC}/cgoban-java.sh do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/cgoban-java.sh ${PREFIX}/bin/cgoban-java - ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${PREFIX}/lib/java/${DISTNAME}.jar + ${INSTALL_SCRIPT} ${WRKSRC}/cgoban-java.sh \ + ${DESTDIR}${PREFIX}/bin/cgoban-java + ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar \ + ${DESTDIR}${PREFIX}/lib/java/${DISTNAME}.jar .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" |