aboutsummaryrefslogtreecommitdiffstats
path: root/games/qonk/Makefile
blob: 38e865367887fcabbd8dc8221b30f9e58c517b4d (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
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=   qonk
PORTVERSION=    0.3.1
PORTREVISION=   14
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Small space build and conquer strategy game

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

GNU_CONFIGURE=  yes
USES=       gmake
USE_SDL=    sdl gfx ttf image

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

post-patch:
    @${REINPLACE_CMD} -e 's|-lSDL |`${SDL_CONFIG} --libs` |' \
        ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
    @${REINPLACE_CMD} -e 's|settings.h|../&|; s|canvas.h|../&|' \
        ${WRKSRC}/src/ui/menusystem.cpp

.include <bsd.port.mk>