blob: 5ad33390ec19a20a9f23d2380aeae5ce9feb4efa (
plain)
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
|
# 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
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
USES= gmake
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= NLS SVGALIB
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
SVGALIB_LIB_DEPENDS= libvga.so:${PORTSDIR}/graphics/svgalib
SVGALIB_CONFIGURE_ON= --without-x
SVGALIB_CONFIGURE_OFF= --without-svga
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSVGALIB}
PLIST_SUB+= PROG="bin/lincity"
.else
USE_XORG= sm xext
PLIST_SUB+= PROG="bin/xlincity"
.endif
pre-configure:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c
.include <bsd.port.mk>
|