2012-10-22 09:18:27 +02:00
|
|
|
# Created by: Zhihao Yuan <lichray@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= librime
|
2016-07-09 06:16:28 +02:00
|
|
|
PORTVERSION= 1.2.9
|
2015-05-18 19:07:45 +02:00
|
|
|
DISTVERSIONPREFIX= rime-
|
2017-05-02 08:48:10 +02:00
|
|
|
PORTREVISION= 4
|
2012-10-22 09:18:27 +02:00
|
|
|
CATEGORIES= chinese textproc
|
|
|
|
|
|
|
|
MAINTAINER= lichray@gmail.com
|
2015-03-31 09:08:00 +02:00
|
|
|
COMMENT= Rime Input Method Engine, the core library
|
2012-10-22 09:18:27 +02:00
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
|
2016-07-09 06:16:28 +02:00
|
|
|
libgflags.so:devel/gflags \
|
2016-04-01 15:29:15 +02:00
|
|
|
libglog.so:devel/glog \
|
2016-07-09 06:16:28 +02:00
|
|
|
libleveldb.so:databases/leveldb \
|
|
|
|
libmarisa.so:devel/marisa-trie \
|
2016-04-01 15:29:15 +02:00
|
|
|
libopencc.so:chinese/opencc \
|
|
|
|
libyaml-cpp.so:devel/yaml-cpp
|
2012-10-22 09:18:27 +02:00
|
|
|
|
2016-10-21 17:21:13 +02:00
|
|
|
USES= cmake compiler:c++11-lib pathfix pkgconfig gettext perl5
|
2013-07-31 08:54:09 +02:00
|
|
|
USE_PERL5= build patch
|
2012-10-22 09:18:27 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_XORG= xproto
|
|
|
|
LDFLAGS+= -lintl
|
2015-05-18 19:07:45 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= rime
|
2012-10-22 09:18:27 +02:00
|
|
|
|
2016-07-09 06:16:28 +02:00
|
|
|
PLIST_SUB= VER=${PORTVERSION}
|
2015-03-31 09:08:00 +02:00
|
|
|
|
2017-05-13 05:35:51 +02:00
|
|
|
BROKEN_powerpc64= Does not link: undefined reference to YAML::detail::node_data::empty_scalar[abi:cxx11]
|
2015-12-13 17:07:27 +01:00
|
|
|
|
2015-03-31 09:08:00 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2013-02-04 01:44:10 +01:00
|
|
|
|
2012-10-22 09:18:27 +02:00
|
|
|
post-patch: .SILENT
|
|
|
|
${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
|
2016-12-01 12:18:03 +01:00
|
|
|
-exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' {} \;
|
2012-10-22 09:18:27 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|