diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-20 01:09:05 +0000 |
commit | 3b0d97b0de8516db29699676c860489da3f7f0e1 (patch) | |
tree | bb388f6b2532587595653e67cce25229ed050cb8 /games/gnuchess | |
parent | 10abca39942a8f34d088f39ccc073fee44271274 (diff) | |
download | pkgsrc-3b0d97b0de8516db29699676c860489da3f7f0e1.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'games/gnuchess')
-rw-r--r-- | games/gnuchess/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile index 09f528dba24..96efaf048ee 100644 --- a/games/gnuchess/Makefile +++ b/games/gnuchess/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2007/02/22 19:26:30 wiz Exp $ +# $NetBSD: Makefile,v 1.34 2008/06/20 01:09:20 joerg Exp $ DISTNAME= gnuchess-5.07 PKGREVISION= 3 @@ -10,6 +10,7 @@ HOMEPAGE= http://www.gnu.org/software/chess/chess.html COMMENT= GNU chess engine PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes USE_TOOLS+= flex gmake @@ -30,9 +31,10 @@ SUBST_STAGE.paths= post-patch SUBST_FILES.paths= src/book.h SUBST_SED.paths= -e 's,/usr/lib/games/,${LOCALBASE}/lib/,g' \ +INSTALLATION_DIRS= ${DOCDIR} + post-install: - ${INSTALL_DATA_DIR} ${DOCDIR} - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README ${DOCDIR} + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README ${DESTDIR}${DOCDIR} .include "../../devel/readline/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" |