aboutsummaryrefslogtreecommitdiff
path: root/chinese/opencc/Makefile
blob: ae780dcdf61d0ad070e1a95cdc9c9b83ffb7f9fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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=	APACHE20

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>