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/glchess/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'games/glchess') diff --git a/games/glchess/Makefile b/games/glchess/Makefile index 8f5b3ec8af36..6ace8df4e212 100644 --- a/games/glchess/Makefile +++ b/games/glchess/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: glchess -# Date created: Wed Jul 18 08:35:56 EDT 2001 -# Whom: Patrick Li -# +# Created by: Patrick Li # $FreeBSD$ -# PORTNAME= glchess PORTVERSION= 1.0.6 @@ -23,12 +19,14 @@ USE_PYDISTUTILS= yes GCONF_SCHEMAS= glchess.schemas -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment" -CONFIGURE_ARGS+= --disable-nls -.else +.include + +.if ${PORT_OPTIONS:MNLS} PLIST_SUB+= NLS="" USES+= gettext +.else +PLIST_SUB+= NLS="@comment" +CONFIGURE_ARGS+= --disable-nls .endif post-patch: @@ -49,7 +47,7 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/po/$$lang.mo \ ${PREFIX}/share/locale/$$lang/LC_MESSAGES/glchess.mo ; \ done) -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for file in ChangeLog README TODO ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -- cgit