aboutsummaryrefslogtreecommitdiff
path: root/games/xbomber/Makefile
blob: 9402d2ae7daf0e802f201f00e9cfaab3e40fd49e (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
# New ports collection makefile for:   xbomber
# Version required:    0.8
# Date created:        28 June 1998
# Whom:                marcus
#
# $FreeBSD$
#

DISTNAME=       xbomber.0.8
PKGNAME=	xbomber-0.8
CATEGORIES=     games
MASTER_SITES=   ftp://ftp.sonic.net/pub/users/nbs/unix/x/xbomber/

MAINTAINER=     jclarke@cisco.com

USE_X_PREFIX=	yes
WRKSRC=         ${WRKDIR}/xbomber
MAKEFILE=	makefile

do-install:
	${MKDIR} ${PREFIX}/lib/xbomber/
	${INSTALL_PROGRAM} ${WRKSRC}/xbomber ${PREFIX}/lib/xbomber/

	${MKDIR} ${PREFIX}/lib/xbomber/bitmaps/
	${INSTALL_DATA} ${WRKSRC}/bitmaps/* ${PREFIX}/lib/xbomber/bitmaps/

	${MKDIR} ${PREFIX}/lib/xbomber/jungle/
	${INSTALL_DATA} ${WRKSRC}/jungle/* ${PREFIX}/lib/xbomber/jungle/

	${MKDIR} ${PREFIX}/lib/xbomber/levels/
	${INSTALL_DATA} ${WRKSRC}/levels/* ${PREFIX}/lib/xbomber/levels/

	${MKDIR} ${PREFIX}/lib/xbomber/pixmaps/
	${INSTALL_DATA} ${WRKSRC}/pixmaps/* ${PREFIX}/lib/xbomber/pixmaps/

	${MKDIR} ${PREFIX}/lib/xbomber/sounds/
	${MKDIR} ${PREFIX}/lib/xbomber/sounds/numbers/
	${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${PREFIX}/lib/xbomber/sounds/
	${INSTALL_DATA} ${WRKSRC}/sounds/numbers/*.au ${PREFIX}/lib/xbomber/sounds/numbers/
	${MKDIR} ${PREFIX}/share/xbomber/
.for file in README.txt LEVELS.txt SOUND.txt GRAPHICS.txt
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/xbomber/
.endfor

	${MKDIR} ${PREFIX}/bin; \
	${ECHO} "#!/bin/sh" > ${PREFIX}/bin/xbomber; \
	${ECHO} "cd ${PREFIX}/lib/xbomber" >> ${PREFIX}/bin/xbomber; \
	${CAT} ${SCRIPTDIR}/xbomber.sh >> ${PREFIX}/bin/xbomber; \
	${CHMOD} 0755 ${PREFIX}/bin/xbomber

.include <bsd.port.mk>