diff options
author | joerg <joerg> | 2009-07-08 17:20:52 +0000 |
---|---|---|
committer | joerg <joerg> | 2009-07-08 17:20:52 +0000 |
commit | 6c1ecdb747df795b086ebab65c667838eb8e6eb2 (patch) | |
tree | 933db4000920b44ae5153e7406dbdf516f646ddb /games | |
parent | 41f43666c479f01d434de5d68c4dd974368c5691 (diff) | |
download | pkgsrc-6c1ecdb747df795b086ebab65c667838eb8e6eb2.tar.gz |
user-destdir support
Diffstat (limited to 'games')
-rw-r--r-- | games/craft/Makefile | 6 | ||||
-rw-r--r-- | games/craft/files/Makefile | 16 |
2 files changed, 13 insertions, 9 deletions
diff --git a/games/craft/Makefile b/games/craft/Makefile index 14e4ae29d21..4e0d72569dd 100644 --- a/games/craft/Makefile +++ b/games/craft/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2008/01/19 09:16:20 wiz Exp $ +# $NetBSD: Makefile,v 1.26 2009/07/08 17:20:52 joerg Exp $ DISTNAME= craftcc35 PKGNAME= craft-3.5 @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://set.gmd.de/~hua/ COMMENT= Warcraft-like game for X11 +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} USE_LANGUAGES= c c++ USE_TOOLS+= gmake @@ -26,6 +28,8 @@ SUBST_STAGE.buttons= pre-configure SUBST_FILES.buttons= .windefaults.params SUBST_SED.buttons= -e 's+buttons+${PREFIX}/share/craft/buttons+' +INSTALLATION_DIRS= bin + post-extract: find ${WRKSRC} -type f -name '*~' -print | xargs rm -f ln -fs ${FILESDIR}/Makefile ${WRKSRC} diff --git a/games/craft/files/Makefile b/games/craft/files/Makefile index bd18d7d778c..a153b6a16ad 100644 --- a/games/craft/files/Makefile +++ b/games/craft/files/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2001/12/19 10:51:19 tron Exp $ +# $NetBSD: Makefile,v 1.3 2009/07/08 17:20:52 joerg Exp $ # #--------------------------------------------------------------------- # @@ -43,10 +43,10 @@ hcc/hcc: hcc/hcc.cc ${GPP} ${CFLAGS} $< -o hcc/hcc install: craft - ${BSD_INSTALL_PROGRAM} craft ${PREFIX}/bin - ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/craft - ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/craft - cp -R hcraft ${PREFIX}/share/craft - cp -R buttons ${PREFIX}/share/craft - cp -R html/* ${PREFIX}/share/doc/craft - ${BSD_INSTALL_DATA} .windefaults.params ${PREFIX}/share/craft + ${BSD_INSTALL_PROGRAM} craft ${DESTDIR}${PREFIX}/bin + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/craft + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/craft + cp -R hcraft ${DESTDIR}${PREFIX}/share/craft + cp -R buttons ${DESTDIR}${PREFIX}/share/craft + cp -R html/* ${DESTDIR}${PREFIX}/share/doc/craft + ${BSD_INSTALL_DATA} .windefaults.params ${DESTDIR}${PREFIX}/share/craft |