aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-04-30 06:27:05 +0800
committerbapt <bapt@FreeBSD.org>2013-04-30 06:27:05 +0800
commit31426e557795495adeb04aa9e16edb4c93184379 (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /chinese
parentb36431c8212c7fe9fc83e2f7412d5935b6e10e6e (diff)
downloadfreebsd-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 'chinese')
-rw-r--r--chinese/opencc/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/chinese/opencc/Makefile b/chinese/opencc/Makefile
index 54fe20d9485f..a2c2ede97d0e 100644
--- a/chinese/opencc/Makefile
+++ b/chinese/opencc/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: opencc
-# Date created: 28 Nov 2011
-# Whom: Zhihao Yuan <lichray@gmail.com>
-#
+# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
-#
PORTNAME= opencc
PORTVERSION= 0.3.0
@@ -20,7 +16,9 @@ MAN1= opencc.1 opencc_dict.1
USES= cmake
USE_LDCONFIG= yes
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CMAKE_ARGS+= -DENABLE_GETTEXT=On
PLIST_SUB+= NLS=""