diff options
author | bapt <bapt@FreeBSD.org> | 2013-04-30 06:27:05 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-04-30 06:27:05 +0800 |
commit | 31426e557795495adeb04aa9e16edb4c93184379 (patch) | |
tree | 8583dfe71adaea6ce266633e1799cd602516b801 /games/lincity | |
parent | b36431c8212c7fe9fc83e2f7412d5935b6e10e6e (diff) | |
download | freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.gz freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.zst freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.zip |
Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here:
- trim headers
- convert to new options framework
Diffstat (limited to 'games/lincity')
-rw-r--r-- | games/lincity/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
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 <bsd.port.options.mk> + 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 |