aboutsummaryrefslogtreecommitdiffstats
path: root/games/blokish/Makefile
blob: 851a285d77da079e5d392b7c7b37747e2106f2e0 (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
41
42
43
44
45
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=   blokish
PORTVERSION=    0.9.4
PORTREVISION=   9
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'

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

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

MAKEFILE=   makefile

WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST_FILES=    bin/${PORTNAME} \
        share/pixmaps/${PORTNAME}.xpm

DESKTOP_ENTRIES="Blokish" \
        "" \
        "${PORTNAME}" \
        "${PORTNAME}" \
        "Game;LogicGame;" \
        ""

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

post-install:
    ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.xpm \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

.include <bsd.port.mk>