summaryrefslogtreecommitdiff
path: root/games/nighthawk/Makefile
blob: 64a4dd3b377805d97a26528db03fb26b54f850f9 (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
42
# $NetBSD: Makefile,v 1.11 2002/10/21 00:53:26 wiz Exp $
#

DISTNAME=		nighthawk-2.1
WRKSRC=			${WRKDIR}/nighthawk
CATEGORIES=		x11 games
MASTER_SITES=		http://jsno.downunder.net.au/proj_linux/nighthawk.html
EXTRACT_SUFX=		.tgz

PATCH_SITES=		${MASTER_SITES}
PATCHFILES=		nighthawk-2.1a.patch
PATCH_DIST_STRIP=	-p1

MAINTAINER=		hubertf@netbsd.org
HOMEPAGE=		http://www.downunder.net.au/~jsno/
COMMENT=		C=64 Paradroid clone

USE_BUILDLINK2=		YES
USE_GMAKE=		YES
USE_X11=		YES

post-build:
	cd ${WRKSRC}/src_sound ; \
	${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} nighthawk_sound

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nighthawk
	${INSTALL_DATA_DIR} ${PREFIX}/share/nighthawk
	${INSTALL_DATA_DIR} ${PREFIX}/share/nighthawk/data
	cd ${WRKSRC}/data; ${PAX} -rw . ${PREFIX}/share/nighthawk/data/
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/nighthawk
	${FIND} ${PREFIX}/share/nighthawk -type f -print | ${XARGS} ${CHMOD} 444
	${FIND} ${PREFIX}/share/nighthawk -type d -print | ${XARGS} ${CHMOD} 555
	${INSTALL_PROGRAM} ${WRKSRC}/src/nighthawk ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src_sound/nighthawk_sound ${PREFIX}/bin
	${CHGRP} games ${PREFIX}/bin/nighthawk
	${CHMOD} g+s ${PREFIX}/bin/nighthawk
	${INSTALL_MAN} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/nighthawk/README
	${INSTALL} -o ${ROOT_USER} -g games -m 664 /dev/null /var/games/nighthawk.scores

.include "../../graphics/xpm/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"