Tweak chinese/pyzy version 0.1.0_1
[dports.git] / chinese / librime / Makefile
1 # Created by: Zhihao Yuan <lichray@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       librime
5 PORTVERSION=    1.1
6 DISTVERSIONPREFIX=      rime-
7 CATEGORIES=     chinese textproc
8
9 MAINTAINER=     lichray@gmail.com
10 COMMENT=        Rime Input Method Engine, the core library
11
12 LICENSE=        GPLv3
13
14 LIB_DEPENDS=    libboost_thread.so:${PORTSDIR}/devel/boost-libs \
15                 libglog.so:${PORTSDIR}/devel/glog \
16                 libkyotocabinet.so:${PORTSDIR}/databases/kyotocabinet \
17                 libopencc.so:${PORTSDIR}/chinese/opencc \
18                 libyaml-cpp.so:${PORTSDIR}/devel/yaml-cpp
19
20 USES=           cmake compiler:c++11-lib pkgconfig gettext perl5
21 USE_PERL5=      build patch
22 USE_LDCONFIG=   yes
23 USE_XORG=       xproto
24 LDFLAGS+=       -lintl
25 USE_GITHUB=     yes
26 GH_ACCOUNT=     rime
27
28 PLIST_SUB=      VER=${PORTVERSION}.0
29
30 .include <bsd.port.options.mk>
31
32 post-patch:     .SILENT
33         ${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
34                 -exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' '{}' \;
35
36 .include <bsd.port.mk>