svn commit: r339854 - head/chinese/opencc

Baptiste Daroussin bapt at FreeBSD.org
Wed Jan 15 23:21:00 UTC 2014


Author: bapt
Date: Wed Jan 15 23:20:59 2014
New Revision: 339854
URL: http://svnweb.freebsd.org/changeset/ports/339854
QAT: https://qat.redports.org/buildarchive/r339854/

Log:
  Support stage
  Reduce over inclusion of bsd.port.mk by:
  Use BROKEN_${ARCH}
  Use options helpers
  Use OPTIONS_SUB

Modified:
  head/chinese/opencc/Makefile

Modified: head/chinese/opencc/Makefile
==============================================================================
--- head/chinese/opencc/Makefile	Wed Jan 15 23:17:31 2014	(r339853)
+++ head/chinese/opencc/Makefile	Wed Jan 15 23:20:59 2014	(r339854)
@@ -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
-
-.if defined(NOPORTDATA)
-IGNORE=		thesaurus are required, undefine NOPORTDATA
-.endif
+NLS_USES=	gettext
+NLS_CMAKE_ON=	-DENABLE_GETTEXT=On
+
+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>


More information about the svn-ports-all mailing list