summaryrefslogtreecommitdiff
path: root/games/bastet
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:59:03 +0000
commit0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch)
tree85dcef76c01a75047f6f6e519e34539fa17ae348 /games/bastet
parent4e56d99acab2b215405ccc900e56d697c30ae727 (diff)
downloadpkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/bastet')
-rw-r--r--games/bastet/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/games/bastet/Makefile b/games/bastet/Makefile
index b13e70a014f..3dbce3e2908 100644
--- a/games/bastet/Makefile
+++ b/games/bastet/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2006/09/14 20:53:24 dogcow Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/04 06:59:03 jlam Exp $
#
DISTNAME= bastet-0.41
+PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= http://fph.altervista.org/prog/
EXTRACT_SUFX= .tgz
@@ -10,16 +11,20 @@ MAINTAINER= rillig@NetBSD.org
HOMEPAGE= http://fph.altervista.org/prog/bastet.shtml
COMMENT= Bastard Tetris
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake
MAKE_FLAGS+= BIN_PREFIX=${PREFIX}/bin/
MAKE_FLAGS+= DATA_PREFIX=${VARBASE}/games/
BUILD_DEFS+= VARBASE
+SETGIDGAME= yes
+SPECIAL_PERMS= bin/bastet ${SETGID_GAMES_PERMS}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
do-install:
- ${INSTALL_GAME} ${WRKSRC}/bastet ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/bastet.6 ${PREFIX}/${PKGMANDIR}/man6/
+ ${INSTALL_PROGRAM} ${WRKSRC}/bastet ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/bastet.6 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"