blob: 4b3dfea5059e0f6fe8edc0349ac1539a51fb0b9c (
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= librime
PORTVERSION= 1.2.9
DISTVERSIONPREFIX= rime-
PORTREVISION= 7
CATEGORIES= chinese textproc
MAINTAINER= lichray@gmail.com
COMMENT= Rime Input Method Engine, the core library
LICENSE= GPLv3
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
libgflags.so:devel/gflags \
libglog.so:devel/glog \
libleveldb.so:databases/leveldb \
libmarisa.so:devel/marisa-trie \
libopencc.so:chinese/opencc \
libyaml-cpp.so:devel/yaml-cpp
USES= cmake compiler:c++11-lib pathfix pkgconfig gettext perl5
USE_PERL5= build patch
USE_LDCONFIG= yes
USE_XORG= xproto
LDFLAGS+= -lintl
USE_GITHUB= yes
GH_ACCOUNT= rime
PLIST_SUB= VER=${PORTVERSION}
BROKEN_powerpc64= Does not link: undefined reference to YAML::detail::node_data::empty_scalar[abi:cxx11]
.include <bsd.port.options.mk>
post-patch: .SILENT
${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
-exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' {} \;
.include <bsd.port.mk>
|