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 | 0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch) | |
tree | 85dcef76c01a75047f6f6e519e34539fa17ae348 /games/crafty | |
parent | 4e56d99acab2b215405ccc900e56d697c30ae727 (diff) | |
download | pkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/crafty')
-rw-r--r-- | games/crafty/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile index aa04dc39a8d..5f647326cc0 100644 --- a/games/crafty/Makefile +++ b/games/crafty/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2006/05/19 09:18:29 rillig Exp $ +# $NetBSD: Makefile,v 1.41 2008/03/04 06:59:03 jlam Exp $ DISTNAME= crafty-18.15 CATEGORIES= games @@ -11,6 +11,7 @@ DISTFILES+= ${CRAFTY_STARTPGN} ${CRAFTY_DOCFILES} MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Chess engine +PKG_DESTDIR_SUPPORT= user-destdir DIST_SUBDIR= ${DISTNAME}-1 CRAFTY_DISTFILES= ${DISTNAME}${EXTRACT_SUFX} @@ -77,12 +78,13 @@ post-build: cd ${WRKSRC} && ${WRKSRC}/crafty bookpath=. do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/crafty ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${BOOKDIR} - ${INSTALL_DATA} ${WRKSRC}/books.bin ${BOOKDIR} - ${INSTALL_DATA_DIR} ${DOCDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/crafty ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${BOOKDIR} + ${INSTALL_DATA} ${WRKSRC}/books.bin ${DESTDIR}${BOOKDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} for file in ${CRAFTY_DOCFILES}; do \ - ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} ${DOCDIR}; \ + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} \ + ${DESTDIR}${DOCDIR}; \ done .include "../../mk/bsd.pkg.mk" |