2008-04-07 18:39:27 +02:00
|
|
|
# $NetBSD: Makefile,v 1.40 2008/04/07 16:39:27 joerg Exp $
|
1998-08-06 23:07:39 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
DISTNAME= battalion
|
|
|
|
PKGNAME= battalion-1.4
|
2008-03-04 07:59:03 +01:00
|
|
|
PKGREVISION= 6
|
1999-05-24 22:39:35 +02:00
|
|
|
CATEGORIES= games x11
|
2007-12-29 10:47:10 +01:00
|
|
|
MASTER_SITES= http://www.evl.uic.edu/aej/BATTALION/
|
1999-05-24 22:39:35 +02:00
|
|
|
DISTFILES= battalionSource1.4.tar.Z battalionSUN4.tar.gz
|
1998-08-06 23:07:39 +02:00
|
|
|
|
2008-01-19 10:16:17 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
1999-05-24 22:39:35 +02:00
|
|
|
HOMEPAGE= http://www.evl.uic.edu/aej/AndyBattalion.html
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= Virtual reality 3D GL game for X11
|
1998-08-06 23:07:39 +02:00
|
|
|
|
1999-05-24 22:39:35 +02:00
|
|
|
NOT_FOR_PLATFORM= *-*-alpha # relies on Mesa (gcc)
|
1998-11-13 00:34:30 +01:00
|
|
|
|
2008-03-04 07:59:03 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/battalionSource
|
1999-05-24 22:39:35 +02:00
|
|
|
EXTRACT_ONLY= battalionSource1.4.tar.Z
|
2005-07-15 20:27:48 +02:00
|
|
|
USE_TOOLS+= gtar
|
1998-08-06 23:07:39 +02:00
|
|
|
|
2005-02-13 22:03:41 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2006-04-28 16:58:32 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
|
2005-02-13 22:03:41 +01:00
|
|
|
MAKE_ENV+= LIBFLAGS=-lcompat
|
|
|
|
.endif
|
|
|
|
|
2008-03-04 07:59:03 +01:00
|
|
|
SETGIDGAME= yes
|
|
|
|
SPECIAL_PERMS+= bin/battalion ${SETGID_GAMES_PERMS}
|
|
|
|
CONF_FILES_PERMS= /dev/null /var/games/battalion_hiscore \
|
|
|
|
${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE}
|
|
|
|
|
2007-01-07 10:13:46 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man6
|
2005-06-16 08:57:37 +02:00
|
|
|
|
1998-08-06 23:07:39 +02:00
|
|
|
do-install:
|
2008-04-07 18:39:27 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/battalion ${DESTDIR}${PREFIX}/bin
|
1999-04-05 19:23:01 +02:00
|
|
|
cd ${WRKDIR} && \
|
|
|
|
${GZCAT} ${DISTDIR}/battalionSUN4.tar.gz | ${GTAR} xmf -
|
2008-03-04 07:59:03 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/HELP
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/DATA
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/MUSIC
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/SOUNDS
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/battalion/battalion.data/TEXTURES
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/DATA/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/DATA
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/MUSIC/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/MUSIC
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/SOUNDS/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/SOUNDS
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/TEXTURES/* ${DESTDIR}${PREFIX}/share/battalion/battalion.data/TEXTURES
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho ${DESTDIR}${PREFIX}/share/battalion/battalion.data
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/battalion.6
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/* ${DESTDIR}${PREFIX}/share/battalion/HELP
|
1998-08-06 23:07:39 +02:00
|
|
|
|
|
|
|
pre-clean:
|
1998-08-10 01:15:06 +02:00
|
|
|
@${RM} -rf ${WRKDIR}/battalionSUN4
|
1998-08-06 23:07:39 +02:00
|
|
|
|
2004-03-10 03:29:43 +01:00
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
|
|
.include "../../graphics/glu/buildlink3.mk"
|
1998-08-06 23:07:39 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|