blob: 67077517a89b2cb170c7f33bddadca52d45c847b (
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
|
# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$
PORTNAME= cavezofphear
PORTVERSION= 0.5.1
CATEGORIES= games
MASTER_SITES= http://www.x86.no/cavezofphear/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= phear-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Boulder Dash / Digger-like game written using ncurses
LICENSE= GPLv3 # (or later)
OPTIONS_DEFINE= DOCS
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src
USES= gmake tar:bzip2
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
ALL_TARGET= phear
PORTDOCS= ChangeLog README README-EDITOR TODO
post-patch:
@${REINPLACE_CMD} -e 's|\./data|${DATADIR}/data|' ${WRKSRC}/src/chk.c
@${REINPLACE_CMD} -e 's|\./phear|phear|' ${WRKSRC}/README-EDITOR
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/phear ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}; ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
|