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/fortunes-calvin | |
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/fortunes-calvin')
-rw-r--r-- | games/fortunes-calvin/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/games/fortunes-calvin/Makefile b/games/fortunes-calvin/Makefile index 0d79b349db8..e185d4cb49a 100644 --- a/games/fortunes-calvin/Makefile +++ b/games/fortunes-calvin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2006/11/09 08:36:46 rillig Exp $ +# $NetBSD: Makefile,v 1.5 2008/03/04 06:59:04 jlam Exp $ # DISTNAME= fortunes-calvin-0.2 @@ -12,6 +12,8 @@ COMMENT= Fortunes from the famous Calvin & Hobbes comic strips BUILD_DEPENDS+= fortune-strfile-[0-9]*:../../games/fortune-strfile +PKG_DESTDIR_SUPPORT= user-destdir + STRFILE= ${LOCALBASE}/bin/strfile WRKSRC= ${WRKDIR} @@ -19,8 +21,10 @@ do-build: ${STRFILE} ${WRKDIR}/${DISTNAME} do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/games/fortune/ - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} ${PREFIX}/share/games/fortune/calvin - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.dat ${PREFIX}/share/games/fortune/calvin.dat + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/games/fortune/ + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME} \ + ${DESTDIR}${PREFIX}/share/games/fortune/calvin + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.dat \ + ${DESTDIR}${PREFIX}/share/games/fortune/calvin.dat .include "../../mk/bsd.pkg.mk" |