aboutsummaryrefslogtreecommitdiffstats
path: root/games/0verkill/Makefile
blob: 9c3917496b0e7d33291f92f89427983b7fa4a0f3 (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
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:    0verkill
# Date created:         5 May 2001
# Whom:                 Kris Kennaway <kris@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   0verkill
PORTVERSION=    0.16
PORTREVISION=   1
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

GNU_CONFIGURE=  yes

.if defined(WITHOUT_X11)
PLIST_SUB=  X11="@comment "
.else
USE_XORG=   xpm
CONFIGURE_ARGS+=    --with-x
PLIST_SUB=  X11=""
.endif

pre-everything::
.if !defined(WITHOUT_X11)
    @${ECHO_MSG}
    @${ECHO_MSG} "If you want to compile without X11 support,"
    @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_X11=yes\""
    @${ECHO_MSG}
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|data/|${DATADIR}/data/|g' ${WRKSRC}/cfg.h
    @${REINPLACE_CMD} -e 's|grx/|${DATADIR}/grx/|g' ${WRKSRC}/data/*
    @${REINPLACE_CMD} -e 's|-O3 ||g ; \
         s|gcc |\$$\(CC\) |g' ${WRKSRC}/Makefile.in

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/0verkill ${PREFIX}/bin
.for file in avi bot editor server test_server
    ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin/0verkill-${file}
.endfor
.if !defined(WITHOUT_X11)
    ${INSTALL_PROGRAM} ${WRKSRC}/x0verkill ${PREFIX}/bin
.for file in avi editor
    ${INSTALL_PROGRAM} ${WRKSRC}/x${file} ${PREFIX}/bin/x0verkill-${file}
.endfor
.endif
    @${MKDIR} ${DATADIR}/data
.for file in banner.dat level.dat sprites.dat *.sp *.dn *.st
    ${INSTALL_DATA} ${WRKSRC}/data/${file} ${DATADIR}/data
.endfor
    @${MKDIR} ${DATADIR}/grx
    ${INSTALL_DATA} ${WRKSRC}/grx/* ${DATADIR}/grx
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in AUTHORS README.html avi.txt bot.txt doc.html
    ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>