diff options
Diffstat (limited to 'games/falcons-eye/Makefile')
-rw-r--r-- | games/falcons-eye/Makefile | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/games/falcons-eye/Makefile b/games/falcons-eye/Makefile index ed7cb57155d..e4d01589af8 100644 --- a/games/falcons-eye/Makefile +++ b/games/falcons-eye/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.41 2009/08/25 11:57:45 wiz Exp $ +# $NetBSD: Makefile,v 1.42 2011/05/26 12:51:22 obache Exp $ # DISTNAME= nethack_source_331_jtp_193 PKGNAME= falcons-eye-1.9.3 -PKGREVISION= 13 +PKGREVISION= 14 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=falconseye/} EXTRACT_SUFX= .zip @@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://falconseye.sourceforge.net/ COMMENT= Falcon's Eye NetHack +PKG_DESTDIR_SUPPORT= destdir + MAKE_JOBS_SAFE= no HAS_CONFIGURE= yes @@ -19,10 +21,11 @@ CONFIGURE_SCRIPT= ./sys/unix/setup.sh DIST_SUBDIR= ${PKGNAME_NOREV}-20050216-2 WRKSRC= ${WRKDIR} -USE_TOOLS+= bison lex ksh:run +USE_TOOLS+= bison lex ksh:run gzip:run +USE_GAMESGROUP= yes MAKE_ENV+= YACC=${TOOLS_CMDLINE_YACC:Q} -MAKE_FLAGS+= GAMEUID=${GAMEOWN} -MAKE_FLAGS+= GAMEGRP=${GAMEGRP} +MAKE_FLAGS+= GAMEUID=${GAMES_USER} +MAKE_FLAGS+= GAMEGRP=${GAMES_GROUP} REPLACE_KSH+= src/fe-config @@ -32,6 +35,7 @@ SUBST_CLASSES+= paths SUBST_MESSAGE.paths= Configuring program paths. SUBST_STAGE.paths= post-patch SUBST_FILES.paths= include/config.h src/fe-config.in +SUBST_FILES.paths+= sys/unix/nethack.sh SUBST_SED.paths= -e "s,XXXPREFIXXXX,${PREFIX},g" SUBST_SED.paths+= -e "s,@GZIP_PROGRAM@,${GZIP_CMD:M*gzip},g" @@ -50,18 +54,22 @@ SUBST_SED.unixconf+= -e 's,^\#define LINUX,\/\* \#define LINUX \*\/,' EGDIR= ${PREFIX}/share/examples/falcons-eye SHAREDIR= ${PREFIX}/share/falcons-eye-dir -CONF_FILES_PERMS+= /dev/null ${SHAREDIR}/logfile ${ROOT_USER} games 664 -CONF_FILES_PERMS+= /dev/null ${SHAREDIR}/record ${ROOT_USER} games 664 +CONF_FILES_PERMS+= /dev/null ${SHAREDIR}/logfile ${ROOT_USER} ${GAMES_GROUP} ${GAMEDATAMODE} +CONF_FILES_PERMS+= /dev/null ${SHAREDIR}/record ${ROOT_USER} ${GAMES_GROUP} ${GAMEDATAMODE} +REQD_DIRS+= ${SHAREDIR}/config +REQD_DIRS_PERMS+= ${SHAREDIR} ${ROOT_USER} ${GAMES_GROUP} ${GAMEDIRMODE} +REQD_DIRS_PERMS+= ${SHAREDIR}/save ${ROOT_USER} ${GAMES_GROUP} 770 CONF_FILES_PERMS+= ${EGDIR}/jtp_intr.txt ${SHAREDIR}/config/jtp_intr.txt \ - ${ROOT_USER} games 664 + ${ROOT_USER} ${GAMES_GROUP} ${GAMEDATAMODE} CONF_FILES_PERMS+= ${EGDIR}/jtp_keys.txt ${SHAREDIR}/config/jtp_keys.txt \ - ${ROOT_USER} games 664 + ${ROOT_USER} ${GAMES_GROUP} ${GAMEDATAMODE} CONF_FILES_PERMS+= ${EGDIR}/jtp_lit1.dat ${SHAREDIR}/config/jtp_lit1.dat \ - ${ROOT_USER} games 664 + ${ROOT_USER} ${GAMES_GROUP} ${GAMEDATAMODE} CONF_FILES_PERMS+= ${EGDIR}/jtp_opts.txt ${SHAREDIR}/config/jtp_opts.txt \ - ${ROOT_USER} games 664 + ${ROOT_USER} ${GAMES_GROUP} ${GAMEDATAMODE} CONF_FILES_PERMS+= ${EGDIR}/jtp_snds.txt ${SHAREDIR}/config/jtp_snds.txt \ - ${ROOT_USER} games 664 + ${ROOT_USER} ${GAMES_GROUP} ${GAMEDATAMODE} +SPECIAL_PERMS+= ${SHAREDIR}/falcons-eye ${SETGID_GAMES_PERMS} pre-configure: ${CP} ${WRKSRC}/src/fe-config.in ${WRKSRC}/src/fe-config @@ -70,8 +78,10 @@ pre-configure: post-build: ${CP} ${WRKSRC}/src/nethack ${WRKSRC}/src/falcons-eye +INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} + post-install: - ${INSTALL_SCRIPT} ${WRKSRC}/src/fe-config ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/src/fe-config ${DESTDIR}${PREFIX}/bin .include "../../devel/SDL/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |