aboutsummaryrefslogtreecommitdiffstats
path: root/games/blokish/Makefile
blob: 6e4431706416f86411382bac65f6b18923ed4578 (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
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=   blokish
PORTVERSION=    0.9.4
PORTREVISION=   7
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
DISTNAME=   ${PORTNAME}_v${PORTVERSION}

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Clone of the strategy board game 'Blokus'

GNU_CONFIGURE=  yes
USES=       gmake tar:tgz
USE_GL=     gl
USE_WX=     2.8
WX_UNICODE= yes

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

MAKEFILE=   makefile

WRKSRC=     ${WRKDIR}/blokish

PLIST_FILES=    bin/blokish

post-patch:
    @${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|' \
        ${WRKSRC}/makefile.in ${WRKSRC}/configure
    @${REINPLACE_CMD} '/^LIBS =/s/$$/ -lGL/' ${WRKSRC}/makefile.in

.include <bsd.port.mk>