From 31426e557795495adeb04aa9e16edb4c93184379 Mon Sep 17 00:00:00 2001 From: bapt Date: Mon, 29 Apr 2013 22:27:05 +0000 Subject: Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS} While here: - trim headers - convert to new options framework --- games/lincity/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'games/lincity') diff --git a/games/lincity/Makefile b/games/lincity/Makefile index 2555d8ffc660..e18e55b68fb0 100644 --- a/games/lincity/Makefile +++ b/games/lincity/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: lincity -# Date created: 13 Feb 1997 -# Whom: Julian Assange -# +# Created by: Julian Assange # $FreeBSD$ -# PORTNAME= lincity PORTVERSION= 1.13.1 @@ -14,6 +10,8 @@ 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 .if ${CC} == "clang" @@ -27,10 +25,12 @@ LDFLAGS+= -L${LOCALBASE}/lib MAN6= lincity.6 +.include + pre-configure: @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/readpng.c -.if defined(WITH_SVGALIB) +.if ${PORT_OPTIONS:MSVGALIB} LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib CONFIGURE_ARGS+= --without-x PLIST_SUB= PROG="bin/lincity" @@ -40,7 +40,7 @@ CONFIGURE_ARGS+= --without-svga PLIST_SUB= PROG="bin/xlincity" .endif -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else -- cgit