freebsd-ports/chinese/opencc/Makefile
Baptiste Daroussin 9ff06b3cbf Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here:
- trim headers
- convert to new options framework
2013-04-29 22:27:05 +00:00

43 lines
810 B
Makefile

# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
PORTNAME= opencc
PORTVERSION= 0.3.0
CATEGORIES= chinese converters
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= lichray@gmail.com
COMMENT= Open Chinese Convert library and utilities
LICENSE= AL2
MAN1= opencc.1 opencc_dict.1
USES= cmake
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
.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
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>