summaryrefslogtreecommitdiff
path: root/games/omega/Makefile
blob: fe43288f24c67998a22b8026237f34a60a719481 (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
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.10 2001/06/20 08:33:52 jlam Exp $

DISTNAME=	omega-0.90-pa4
PKGNAME=	omega-0.90.4
WRKSRC=		${WRKDIR}/omega
CATEGORIES=	games
#MASTER_SITES=	http://dolphin.openprojects.net/Omega/Downloads/Prealphas/
MASTER_SITES=	ftp://ftp.netbsd.org/pub/NetBSD/misc/proff/

MAINTAINER=	packages@netbsd.org
#HOMEPAGE=	http://dolphin.openprojects.net/Omega/
HOMEPAGE=	http://www.win.tue.nl/games/roguelike/omega
COMMENT=	Complex rogue-like game of exploration with a sense of humor

USE_BUILDLINK_ONLY=	# defined
ALL_TARGET=		# empty

# Change references to <curses.h> to <ncurses.h> in the source files.
post-extract:
	cd ${WRKSRC}; for file in *.[ch]; do				\
		${SED} -e "s|<curses\.h>|<ncurses.h>|g"			\
			$${file} > $${file}.presubst;			\
		${MV} -f $${file}.presubst $${file};			\
	done

do-install:
	${INSTALL_PROGRAM} -o games -g games -m 4711 ${WRKSRC}/omega	\
		 ${PREFIX}/bin/Omega
	${INSTALL_MAN} ${WRKSRC}/docs/omega.6 ${PREFIX}/man/man6
	${INSTALL_DATA_DIR} ${PREFIX}/share/omega
	${INSTALL_DATA} ${WRKSRC}/lib/* ${PREFIX}/share/omega
	${RM} ${PREFIX}/share/omega/license.old
	${CHMOD} 0600 ${PREFIX}/share/omega/omega.hi
	${CHMOD} 0600 ${PREFIX}/share/omega/omega.log
	${CP} ${PREFIX}/share/omega/omega.hi ${PREFIX}/share/omega/omegahi.bak
	${CHOWN} -R games:games ${PREFIX}/share/omega

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/omega
	cd ${WRKSRC}; for file in					\
		buglist.txt docs/compile.all docs/readme.1st		\
		docs/omega.txt docs/readme3 docs/readme4;		\
	do								\
		${INSTALL_DATA} $${file} ${PREFIX}/share/doc/omega;	\
	done

.include "../../devel/ncurses/buildlink.mk"
.include "../../mk/bsd.pkg.mk"