aboutsummaryrefslogtreecommitdiffstats
path: root/games/lincity/Makefile
blob: 38fd3fad559c6a782f448f8172edf8c08a1b3f35 (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
46
47
48
# Created by: Julian Assange
# $FreeBSD$

PORTNAME=   lincity
PORTVERSION=    1.13.1
PORTREVISION=   6
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/Lincity%20Development%20Source/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Rich city simulation game for X

OPTIONS_DEFINE= SVGALIB NLS

LIB_DEPENDS=    png15:${PORTSDIR}/graphics/png

USES=       gmake
USE_CSTD=   c89
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAN6=       lincity.6

.include <bsd.port.options.mk>

pre-configure:
    @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c

.if ${PORT_OPTIONS:MSVGALIB}
LIB_DEPENDS+=   vga.1:${PORTSDIR}/graphics/svgalib
CONFIGURE_ARGS+=    --without-x
PLIST_SUB=  PROG="bin/lincity"
.else
USE_XORG=   sm xext
CONFIGURE_ARGS+=    --without-svga
PLIST_SUB=  PROG="bin/xlincity"
.endif

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

.include <bsd.port.mk>