diff options
author | jlam <jlam> | 2008-03-04 06:59:03 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-04 06:59:03 +0000 |
commit | a5ad2f881e519990668be04e718e20f1b24c9005 (patch) | |
tree | 85dcef76c01a75047f6f6e519e34539fa17ae348 /games/crafty-doc | |
parent | 5797bfbd52d9b106c2e38ccceb177a47bad034f3 (diff) | |
download | pkgsrc-a5ad2f881e519990668be04e718e20f1b24c9005.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-doc')
-rw-r--r-- | games/crafty-doc/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/games/crafty-doc/Makefile b/games/crafty-doc/Makefile index 4ca6db21032..41ccb8db969 100644 --- a/games/crafty-doc/Makefile +++ b/games/crafty-doc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2006/03/04 21:29:40 jlam Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/04 06:59:03 jlam Exp $ DISTNAME= crafty-doc-18.0 CATEGORIES= games @@ -8,6 +8,8 @@ DISTFILES= crafty.doc.ps MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Documentation for Crafty chess engine +PKG_DESTDIR_SUPPORT= user-destdir + DIST_SUBDIR= ${PKGNAME_NOREV} EXTRACT_ONLY= # empty NO_CONFIGURE= yes @@ -16,9 +18,10 @@ NO_BUILD= yes DOCDIR= ${PREFIX}/share/doc/crafty do-install: - ${INSTALL_DATA_DIR} ${DOCDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} for file in ${DISTFILES}; do \ - ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} ${DOCDIR}; \ + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$${file} \ + ${DESTDIR}${DOCDIR}; \ done .include "../../mk/bsd.pkg.mk" |