aboutsummaryrefslogtreecommitdiff
path: root/games/robotfindskitten/Makefile
blob: 64958379ba3d02439270587aacea0bded5844081 (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
55
56
# Created by: Ceri Davies (ceri@FreeBSD.org)
# $FreeBSD$

PORTNAME=	robotfindskitten
PORTVERSION=	2.7182818.701
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	games
MASTER_SITES=	http://robotfindskitten.org/download/POSIX/

MAINTAINER=	skreuzer@FreeBSD.org
COMMENT=	Yet another zen simulation

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		ncurses
GNU_CONFIGURE=	YES

OPTIONS_DEFINE=	EXTRANKI MEGAHYPERDEATH

EXTRANKI_DESC=	Install additional Non Kitten Items
MEGAHYPERDEATH_DESC=	Add the possibility of MEGA. HYPER. DEATH!

OPTIONS_DEFAULT=	EXTRANKI

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MEXTRANKI}
SUB_FILES=	freebsd.nki nethack.nki
PLIST_SUB+=	EXTRANKI=""
.else
PLIST_SUB+=	EXTRANKI="@comment "
.endif

.if ${PORT_OPTIONS:MMEGAHYPERDEATH}
EXTRA_PATCHES+=	${FILESDIR}/extrapatch-megahyperdeath
.endif

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/share/games/robotfindskitten,${DATADIR},' \
		${WRKSRC}/doc/robotfindskitten.6

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_PROGRAM} ${WRKSRC}/src/robotfindskitten ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/nki/vanilla.nki ${STAGEDIR}${DATADIR}
	${INSTALL_MAN} ${WRKSRC}/doc/robotfindskitten.6 ${STAGEDIR}${MANPREFIX}/man/man6

.if ${PORT_OPTIONS:MEXTRANKI}
.for NKI in ${SUB_FILES}
	${INSTALL_DATA} ${WRKDIR}/${NKI} ${STAGEDIR}${DATADIR}
.endfor
.endif

.include <bsd.port.mk>