blob: 4dd8938e389cb0422c612e18cf6cb925527079df (
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
49
50
51
52
53
54
55
56
57
|
# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$
PORTNAME= 0verkill
PORTVERSION= 0.16
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://artax.karlin.mff.cuni.cz/~brain/0verkill/release/
EXTRACT_SUFX= .tgz
MAINTAINER= mich@FreeBSD.org
COMMENT= 0verkill is a bloody 2D action Deathmatch-like game in ASCII-art
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/doc/COPYING
GNU_CONFIGURE= yes
OPTIONS_DEFINE= X11 DOCS
OPTIONS_DEFAULT=X11 DOCS
OPTIONS_SUB= yes
X11_USE= XORG=xpm
X11_CONFIGURE_WITH= x
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/data/|g' ${WRKSRC}/cfg.h
@${REINPLACE_CMD} -e 's|-O3 ||g ; \
s|gcc |\$$\(CC\) |g' ${WRKSRC}/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/0verkill ${STAGEDIR}${PREFIX}/bin
.for filename in avi bot editor server test_server
${INSTALL_PROGRAM} ${WRKSRC}/${filename} \
${STAGEDIR}${PREFIX}/bin/0verkill-${filename}
.endfor
.if ${PORT_OPTIONS:MX11}
${INSTALL_PROGRAM} ${WRKSRC}/x0verkill ${STAGEDIR}${PREFIX}/bin
.for filename in avi editor
${INSTALL_PROGRAM} ${WRKSRC}/x${filename} \
${STAGEDIR}${PREFIX}/bin/x0verkill-${filename}
.endfor
.endif
.for dir in data grx
cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}
.endfor
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for filename in AUTHORS README.html avi.txt bot.txt doc.html
${INSTALL_DATA} ${WRKSRC}/doc/${filename} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|