aboutsummaryrefslogtreecommitdiffstats
path: root/games/cavezofphear/Makefile
blob: 079aea8eae70b1100ef50b353f48c2ee8a187c40 (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
67
68
# New ports collection makefile for:    cavezofphear
# Date created:         23 July 2005
# Whom:             Travis Poppe <tlp@liquidx.org>
#
# $FreeBSD$
#

PORTNAME=   cavezofphear
PORTVERSION=    0.1
CATEGORIES= games
MASTER_SITES=   http://www.x86.no/cavezofphear/
DISTNAME=   phear-${PORTVERSION}

MAINTAINER= tlp@liquidx.org
COMMENT=    Boulder Dash / Digger-like game written using ncurses

WRKSRC=     ${WRKDIR}/phear-${PORTVERSION}/src
USE_BZIP2=  yes
USE_GMAKE=  yes

PLIST_DIRS= share/${PORTNAME}/levels share/${PORTNAME}

PLIST_FILES=    bin/phear bin/phear-editor \
        share/${PORTNAME}/gover share/${PORTNAME}/htext \
        share/${PORTNAME}/spgraf share/${PORTNAME}/tdesc \
        share/${PORTNAME}/levels/01 share/${PORTNAME}/levels/02 \
        share/${PORTNAME}/levels/03 share/${PORTNAME}/levels/04 \
        share/${PORTNAME}/levels/05

PORTDOCS=   AUTHORS ChangeLog README README-EDITOR TODO

FIXME=      chk.c main.c splash.c

pre-build:
.for i in ${FIXME}
    ${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/${i}
.endfor
    @${REINPLACE_CMD} -e 's|usage: editor|usage: phear-editor|' \
    ${WRKSRC}/editor.c
    @${REINPLACE_CMD} -e 's|./editor|phear-editor|' \
    ${WRKSRC}/../README-EDITOR
    @${REINPLACE_CMD} -e 's|./phear|phear|' \
    ${WRKSRC}/../README-EDITOR

do-install:
    ${MKDIR} ${DATADIR}
    ${MKDIR} ${DATADIR}/levels
    ${INSTALL_DATA} ${WRKSRC}/../data/gover ${DATADIR}/gover
    ${INSTALL_DATA} ${WRKSRC}/../data/htext ${DATADIR}/htext
    ${INSTALL_DATA} ${WRKSRC}/../data/spgraf ${DATADIR}/spgraf
    ${INSTALL_DATA} ${WRKSRC}/../data/tdesc ${DATADIR}/tdesc
    ${INSTALL_DATA} ${WRKSRC}/../data/levels/01 ${DATADIR}/levels/01
    ${INSTALL_DATA} ${WRKSRC}/../data/levels/02 ${DATADIR}/levels/02
    ${INSTALL_DATA} ${WRKSRC}/../data/levels/03 ${DATADIR}/levels/03
    ${INSTALL_DATA} ${WRKSRC}/../data/levels/04 ${DATADIR}/levels/04
    ${INSTALL_DATA} ${WRKSRC}/../data/levels/05 ${DATADIR}/levels/05
    ${INSTALL_PROGRAM} ${WRKSRC}/../phear ${PREFIX}/bin/phear
    ${INSTALL_PROGRAM} ${WRKSRC}/../editor ${PREFIX}/bin/phear-editor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/../AUTHORS ${DOCSDIR}/AUTHORS
    ${INSTALL_DATA} ${WRKSRC}/../ChangeLog ${DOCSDIR}/ChangeLog
    ${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}/README
    ${INSTALL_DATA} ${WRKSRC}/../README-EDITOR ${DOCSDIR}/README-EDITOR
    ${INSTALL_DATA} ${WRKSRC}/../TODO ${DOCSDIR}/TODO
.endif

.include <bsd.port.mk>