aboutsummaryrefslogtreecommitdiffstats
path: root/games/pipewalker/Makefile
blob: 2539aaae8faae9d5684b4b9301c42701bab1fb01 (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
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pipewalker
PORTVERSION=    0.8.3
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   SF
EXTRACT_SUFX=   -src.tar.gz

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    A clone of the NetWalk game

GNU_CONFIGURE=  yes
USE_SDL=    sdl
USE_GL=     gl glu
MAKE_JOBS_SAFE= yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}

PORTDOCS=   *

.include <bsd.port.options.mk>

post-patch:
    @${CHMOD} a+x ${WRKSRC}/install-sh
    @${REINPLACE_CMD} -e 's|(datadir)/games|(datadir)|' \
        ${WRKSRC}/data/Makefile.in ${WRKSRC}/src/Makefile.in
    @${REINPLACE_CMD} -e '/^install-data-am/ s|install-pkgmenudataDATA||' \
        ${WRKSRC}/extra/Makefile.in
.if ! ${PORT_OPTIONS:MDOCS}
    @${REINPLACE_CMD} -e '/^install-data-am/ s|install-pkgdocdataDATA||' \
        ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>