aboutsummaryrefslogtreecommitdiffstats
path: root/games/npush/Makefile
blob: 4c0c881abcd0fa015e8714e5e3a851d59dfa5081 (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
# New ports collection makefile for:    npush
# Date created:     05 Jul 2008
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   npush
PORTVERSION=    0.6
CATEGORIES= games
MASTER_SITES=   SF
EXTRACT_SUFX=   .tgz

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    A curses-based logic game similar to Sokoban and Boulder Dash

PORTDOCS=   *

post-patch:
    @${REINPLACE_CMD} -e '/opendir/ s|"\."|"${DATADIR}"|; \
        /"rb"/ s|name|(std::string("${DATADIR}/")+&)|' \
        ${WRKSRC}/npush.cpp

do-build:
    cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o npush npush.cpp -lncurses

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/npush ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/Level* ${DATADIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/index.html ${WRKSRC}/readme.txt \
        ${WRKSRC}/screenshot?.png ${DOCSDIR}
.endif

.include <bsd.port.mk>