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/4stAttack | |
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/4stAttack')
-rw-r--r-- | games/4stAttack/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/games/4stAttack/Makefile b/games/4stAttack/Makefile index 3c038235b6e..51209d67e84 100644 --- a/games/4stAttack/Makefile +++ b/games/4stAttack/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2006/06/12 16:28:07 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2008/03/04 06:59:03 jlam Exp $ # DISTNAME= 4stAttack-2.1.4 @@ -10,6 +10,8 @@ MAINTAINER= recht@NetBSD.org HOMEPAGE= http://forcedattack.sourceforge.net/ COMMENT= Game in which you have to try to out-smart your opponent +PKG_DESTDIR_SUPPORT= user-destdir + PYTHON_PATCH_SCRIPTS= 4stattack.py FIND_EXCLUDE= \( -name \*.orig -or -name \*.txt -or -name \*.pre -or -name GPL -or -name \*~ -or -name 4stattack \) @@ -23,10 +25,10 @@ do-build: ${PYTHONBIN} -O ${PREFIX}/${PYLIB}/compileall.py ${WRKSRC} do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/${PKGBASE} - ${INSTALL_SCRIPT} ${WRKSRC}/4stattack ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/${PKGBASE} + ${INSTALL_SCRIPT} ${WRKSRC}/4stattack ${DESTDIR}${PREFIX}/bin cd ${WRKSRC} && ${FIND} . -type f -and \! ${FIND_EXCLUDE} \ - -print | ${PAX} -rw -pp -pm ${PREFIX}/share/${PKGBASE} + -print | ${PAX} -rw -pp -pm ${DESTDIR}${PREFIX}/share/${PKGBASE} .include "../../devel/py-game/buildlink3.mk" .include "../../lang/python/application.mk" |