1 # Created by: Zhihao Yuan <lichray@gmail.com>
6 DISTVERSIONPREFIX= rime-
7 CATEGORIES= chinese textproc
9 MAINTAINER= lichray@gmail.com
10 COMMENT= Rime Input Method Engine, the core library
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
20 USES= cmake compiler:c++11-lib pkgconfig gettext perl5
21 USE_PERL5= build patch
28 PLIST_SUB= VER=${PORTVERSION}.0
30 .include <bsd.port.options.mk>
33 ${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
34 -exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' '{}' \;
36 .include <bsd.port.mk>