Prune devel/semantic
[dports.git] / games / lincity / Makefile
1 # Created by: Julian Assange
2 # $FreeBSD$
3
4 PORTNAME=       lincity
5 PORTVERSION=    1.13.1
6 PORTREVISION=   6
7 CATEGORIES=     games
8 MASTER_SITES=   SF/${PORTNAME}/Lincity%20Development%20Source/${PORTVERSION}
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Rich city simulation game for X
12
13 LIB_DEPENDS=    libpng15.so:${PORTSDIR}/graphics/png
14
15 USES=           gmake
16 GNU_CONFIGURE=  yes
17 CPPFLAGS+=      -I${LOCALBASE}/include
18 LDFLAGS+=       -L${LOCALBASE}/lib
19
20 OPTIONS_DEFINE= NLS SVGALIB
21 OPTIONS_SUB=    yes
22
23 NLS_CONFIGURE_ENABLE=   nls
24 NLS_USES=       gettext
25
26 SVGALIB_LIB_DEPENDS=    libvga.so:${PORTSDIR}/graphics/svgalib
27 SVGALIB_CONFIGURE_ON=   --without-x
28 SVGALIB_CONFIGURE_OFF=  --without-svga
29
30 .include <bsd.port.options.mk>
31
32 .if ${PORT_OPTIONS:MSVGALIB}
33 PLIST_SUB+=     PROG="bin/lincity"
34 .else
35 USE_XORG=       sm xext
36 PLIST_SUB+=     PROG="bin/xlincity"
37 .endif
38
39 pre-configure:
40         @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c
41
42 .include <bsd.port.mk>