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

PORTNAME=   pipewalker
PORTVERSION=    0.9.1
PORTREVISION=   3
CATEGORIES= games
MASTER_SITES=   SF
EXTRACT_SUFX=   -src.tar.gz

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

LICENSE=    GPLv3+
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       desktop-file-utils
GNU_CONFIGURE=  yes
USE_SDL=    sdl
USE_GL=     gl glu

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

PLIST_FILES=    bin/${PORTNAME} \
        share/applications/${PORTNAME}.desktop \
        share/pixmaps/${PORTNAME}.xpm
PORTDOCS=   *
PORTDATA=   *

OPTIONS_DEFINE= DOCS

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

.include <bsd.port.mk>