Tweak games/blinken version 4.14.3
[dports.git] / games / lincity / Makefile
1 # Created by: Julian Assange
2 # $FreeBSD$
3
4 PORTNAME=       lincity
5 PORTVERSION=    1.13.1
6 PORTREVISION=   7
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 LICENSE=        GPLv2
14 LICENSE_FILE=   ${WRKSRC}/COPYING
15
16 LIB_DEPENDS=    libpng.so:graphics/png
17
18 USES=           gmake
19 GNU_CONFIGURE=  yes
20 CPPFLAGS+=      -I${LOCALBASE}/include
21 LDFLAGS+=       -L${LOCALBASE}/lib
22
23 OPTIONS_DEFINE= NLS SVGALIB
24 OPTIONS_SUB=    yes
25
26 NLS_CONFIGURE_ENABLE=   nls
27 NLS_USES=       gettext
28
29 SVGALIB_LIB_DEPENDS=    libvga.so:graphics/svgalib
30 SVGALIB_CONFIGURE_ON=   --without-x
31 SVGALIB_CONFIGURE_OFF=  --without-svga
32
33 .include <bsd.port.options.mk>
34
35 .if ${PORT_OPTIONS:MSVGALIB}
36 PLIST_SUB+=     PROG="bin/lincity"
37 .else
38 USE_XORG=       sm xext
39 PLIST_SUB+=     PROG="bin/xlincity"
40 .endif
41
42 pre-configure:
43         @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c
44
45 .include <bsd.port.mk>