aboutsummaryrefslogtreecommitdiff
path: root/chinese/opencc
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-15 23:20:59 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-15 23:20:59 +0000
commit0717b41424c5c446ce4a7fe3fe2e2fc683e70386 (patch)
treef8dc86e750935c2884a2b247548d4115cc8ef66b /chinese/opencc
parenta8e35256fe9120e0c2c9cf0395f76880c827f4fa (diff)
downloadports-0717b41424c5c446ce4a7fe3fe2e2fc683e70386.tar.gz
ports-0717b41424c5c446ce4a7fe3fe2e2fc683e70386.zip
Support stage
Reduce over inclusion of bsd.port.mk by: Use BROKEN_${ARCH} Use options helpers Use OPTIONS_SUB
Notes
Notes: svn path=/head/; revision=339854
Diffstat (limited to 'chinese/opencc')
-rw-r--r--chinese/opencc/Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/chinese/opencc/Makefile b/chinese/opencc/Makefile
index ae780dcdf61d..39d43d03d246 100644
--- a/chinese/opencc/Makefile
+++ b/chinese/opencc/Makefile
@@ -14,28 +14,17 @@ LICENSE= APACHE20
USES= cmake
USE_LDCONFIG= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= NLS
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CMAKE_ARGS+= -DENABLE_GETTEXT=On
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CMAKE_ON= -DENABLE_GETTEXT=On
-.if defined(NOPORTDATA)
-IGNORE= thesaurus are required, undefine NOPORTDATA
-.endif
+OPTIONS_SUB= yes
+
+BROKEN_powerpc= Does not install on powerpc: signal 11
post-patch:
@${REINPLACE_CMD} -e 's@/usr/local@${LOCALBASE}@g' \
${WRKSRC}/CMakeLists.txt
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "powerpc"
-BROKEN= Does not install on powerpc: signal 11
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>