2018-01-14 18:33:57 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2018/01/14 17:34:02 rillig Exp $
|
1999-12-14 01:34:48 +01:00
|
|
|
|
|
|
|
DISTNAME= xev111
|
|
|
|
PKGNAME= xbat-1.11
|
2008-06-10 15:20:00 +02:00
|
|
|
PKGREVISION= 2
|
1999-12-14 01:34:48 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://www.nemoto.ecei.tohoku.ac.jp/~wai/Xbat/
|
2015-09-20 21:18:15 +02:00
|
|
|
MASTER_SITES+= ${MASTER_SITE_FREEBSD}
|
1999-12-14 01:34:48 +01:00
|
|
|
|
2006-09-03 02:56:28 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-09-06 12:40:25 +02:00
|
|
|
#HOMEPAGE= http://www.nemoto.ecei.tohoku.ac.jp/~wai/index_e.html
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= XEVIOUS like shooting game
|
1999-12-14 01:34:48 +01:00
|
|
|
|
2018-01-14 18:33:57 +01:00
|
|
|
RESTRICTED= Possible copyright infringement
|
2000-08-19 00:46:29 +02:00
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
1999-12-14 01:34:48 +01:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/Xev111
|
1999-12-14 01:34:48 +01:00
|
|
|
USE_IMAKE= yes
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= xbat
|
1999-12-14 01:34:48 +01:00
|
|
|
|
2008-06-10 15:20:00 +02:00
|
|
|
MAKE_FLAGS+= INSTLINFLAGS="-o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE}"
|
|
|
|
MAKE_FLAGS+= INSTPGMFLAGS="-o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEMODE}"
|
|
|
|
MAKE_FLAGS+= VARBASE=${VARBASE}
|
|
|
|
|
|
|
|
SCORE_DIR= share/games/Xbat/Score
|
|
|
|
|
|
|
|
SETGIDGAME= yes
|
|
|
|
SPECIAL_PERMS= bin/xbat ${SETGID_GAMES_PERMS}
|
2010-02-19 23:04:25 +01:00
|
|
|
REQD_DIRS_PERMS+= ${VARBASE}/games/Xbat ${GAMES_USER} ${GAMES_GROUP} ${GAMEDIRMODE}
|
2008-06-10 15:20:00 +02:00
|
|
|
.for n in 0 1 2 3 4
|
|
|
|
REQD_FILES_PERMS+= ${SCORE_DIR}/top10-${n}.txt \
|
|
|
|
${VARBASE}/games/Xbat/top10-${n}.txt \
|
2010-02-19 23:04:25 +01:00
|
|
|
${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
|
2008-06-10 15:20:00 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
BUILD_DEFS+= GAMEDATAMODE
|
|
|
|
BUILD_DEFS+= GAMEMODE
|
|
|
|
|
|
|
|
.include "../../mk/endian.mk"
|
|
|
|
|
|
|
|
.if ${MACHINE_ENDIAN} == "big"
|
|
|
|
MAKE_FLAGS+= UNION=0
|
|
|
|
.elif ${MACHINE_ENDIAN} == "little"
|
|
|
|
MAKE_FLAGS+= UNION=1
|
|
|
|
.else
|
2018-01-14 18:33:57 +01:00
|
|
|
BROKEN= Unknown endianness
|
2008-06-10 15:20:00 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${SCORE_DIR}
|
|
|
|
.for n in 0 1 2 3 4
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Score/top10-${n}.txt \
|
|
|
|
${DESTDIR}${PREFIX}/${SCORE_DIR}/top10-${n}.txt
|
|
|
|
.endfor
|
|
|
|
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
1999-12-14 01:36:50 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|