diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-08 17:20:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-08 17:20:52 +0000 |
commit | ef084c4c727c37518a1b533fb47f522fea7754cc (patch) | |
tree | 933db4000920b44ae5153e7406dbdf516f646ddb /games/craft | |
parent | d6109ee9e3788942050a85ea4c2b937127461100 (diff) | |
download | pkgsrc-ef084c4c727c37518a1b533fb47f522fea7754cc.tar.gz |
user-destdir support
Diffstat (limited to 'games/craft')
-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 |