mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
9df995e98b
PR: 249512 Submitted by: Ka Ho Ng <khng300@gmail.com> Approved by: lichray@gmail.com (maintainer) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26515
41 lines
912 B
Makefile
41 lines
912 B
Makefile
# Created by: Zhihao Yuan <lichray@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= librime
|
|
PORTVERSION= 1.6.1
|
|
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 \
|
|
libcapnp.so:devel/capnproto \
|
|
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++14-lang gettext pathfix perl5 pkgconfig xorg
|
|
USE_PERL5= build patch
|
|
|
|
CMAKE_OFF= BUILD_TEST
|
|
|
|
USE_CXXSTD= c++14
|
|
USE_LDCONFIG= yes
|
|
USE_XORG= xorgproto
|
|
LDFLAGS+= -lintl
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= rime
|
|
|
|
PLIST_SUB= VER=${PORTVERSION}
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
|
|
-exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' {} \;
|
|
|
|
.include <bsd.port.mk>
|