aboutsummaryrefslogtreecommitdiff
path: root/games/battalion/Makefile
blob: c3f1379ca74d001a201516677f7d846ed29eb6c7 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:	battalion
# Date created:				17 May 1998
# Whom:					Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=	battalion
PORTVERSION=	1.4
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://www.evl.uic.edu/aej/BATTALION/
DISTFILES=	battalionSource1.4.tar.Z battalionSUN4.tar.gz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Monsters, explosions, destruction game for X Window System

WRKSRC=		${WRKDIR}/battalionSource

ALL_TARGET=	# empty
USE_X_PREFIX=	yes
USE_GL=		yes
MAKE_ENV=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
		PTHREAD_LIBS="${PTHREAD_LIBS}"

MAN6=		battalion.6

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/battalion ${PREFIX}/bin
	${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man \
		${PREFIX}/man/man6/battalion.6
	@${MKDIR} ${PREFIX}/share/battalion
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho \
		${PREFIX}/share/battalion
	@${MKDIR} ${PREFIX}/share/battalion/DATA
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/DATA/*.data \
		${PREFIX}/share/battalion/DATA
	@${MKDIR} ${PREFIX}/share/battalion/MUSIC
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/MUSIC/*.au \
		${PREFIX}/share/battalion/MUSIC
	@${MKDIR} ${PREFIX}/share/battalion/SOUNDS
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/SOUNDS/*.au \
		${PREFIX}/share/battalion/SOUNDS
	@${MKDIR} ${PREFIX}/share/battalion/TEXTURES
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/TEXTURES/*.tex \
		${PREFIX}/share/battalion/TEXTURES
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/battalion
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/battalion
	${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/*.gif \
		${PREFIX}/share/doc/battalion
.endif

.include <bsd.port.mk>