aboutsummaryrefslogtreecommitdiff
path: root/games/glchess
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
commit9ff06b3cbf038359059e40e0db31ba0cbe996d0f (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /games/glchess
parent25c4307da135103ea810d65f96f2f1c21e0547b4 (diff)
Notes
Diffstat (limited to 'games/glchess')
-rw-r--r--games/glchess/Makefile18
1 files changed, 8 insertions, 10 deletions
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 <pat@databits.net>
-#
+# Created by: Patrick Li <pat@databits.net>
# $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 <bsd.port.options.mk>
+
+.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}