freebsd-ports/games/lincity/Makefile

49 lines
965 B
Makefile
Raw Normal View History

# Created by: Julian Assange
1999-08-25 08:06:33 +02:00
# $FreeBSD$
PORTNAME= lincity
PORTVERSION= 1.13.1
2012-06-01 07:26:28 +02:00
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Lincity%20Development%20Source/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:32:26 +01:00
COMMENT= Rich city simulation game for X
OPTIONS_DEFINE= SVGALIB NLS
2012-06-01 07:26:28 +02:00
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
2013-08-01 00:52:05 +02:00
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
2004-07-11 12:22:46 +02:00
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.mk>