summaryrefslogtreecommitdiff
path: root/games/battalion/Makefile
blob: 712bac5a89aee37e4c98bdcd17e8b47207e7d250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $NetBSD: Makefile,v 1.16 2000/10/15 12:06:34 rh Exp $
#

DISTNAME=		battalion
PKGNAME=		battalion-1.4
WRKSRC=			${WRKDIR}/battalionSource
CATEGORIES=		games x11
MASTER_SITES=		http://www.evl.uic.edu/aej/
DISTFILES=		battalionSource1.4.tar.Z battalionSUN4.tar.gz

MAINTAINER=		root@garbled.net
HOMEPAGE=		http://www.evl.uic.edu/aej/AndyBattalion.html

NOT_FOR_PLATFORM=	*-*-alpha	# relies on Mesa (gcc)

EXTRACT_ONLY=		battalionSource1.4.tar.Z
USE_X11BASE=		yes
USE_MESA=		yes

do-install:
	${INSTALL} -c -s -o root -g games -m 2755 ${WRKSRC}/battalion ${PREFIX}/bin
	cd ${WRKDIR} && \
	    ${GZCAT} ${DISTDIR}/battalionSUN4.tar.gz | ${GTAR} xmf -
	${MKDIR} ${PREFIX}/share/battalion/HELP
	${MKDIR} ${PREFIX}/share/battalion/battalion.data/DATA
	${MKDIR} ${PREFIX}/share/battalion/battalion.data/MUSIC
	${MKDIR} ${PREFIX}/share/battalion/battalion.data/SOUNDS
	${MKDIR} ${PREFIX}/share/battalion/battalion.data/TEXTURES
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/DATA/* ${PREFIX}/share/battalion/battalion.data/DATA
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/MUSIC/* ${PREFIX}/share/battalion/battalion.data/MUSIC
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/SOUNDS/* ${PREFIX}/share/battalion/battalion.data/SOUNDS
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/TEXTURES/* ${PREFIX}/share/battalion/battalion.data/TEXTURES
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho ${PREFIX}/share/battalion/battalion.data
	${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man ${PREFIX}/man/man6/battalion.6
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/* ${PREFIX}/share/battalion/HELP
	${INSTALL} -o bin -g games -m 664 /dev/null /var/games/battalion_hiscore

pre-clean:
	@${RM} -rf ${WRKDIR}/battalionSUN4

.include "../../mk/bsd.pkg.mk"