From 0717b41424c5c446ce4a7fe3fe2e2fc683e70386 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 15 Jan 2014 23:20:59 +0000 Subject: Support stage Reduce over inclusion of bsd.port.mk by: Use BROKEN_${ARCH} Use options helpers Use OPTIONS_SUB --- chinese/opencc/Makefile | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) (limited to 'chinese/opencc') 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 +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 - -.if ${ARCH} == "powerpc" -BROKEN= Does not install on powerpc: signal 11 -.endif - -.include +.include -- cgit v1.2.3