mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
f28db07ce0
PR: 210781 Submitted by: Iblis Lin <iblis@hs.ntnu.edu.tw> Approved by: lichray@gmail.com (maintainer)
41 lines
936 B
Makefile
41 lines
936 B
Makefile
# Created by: Zhihao Yuan <lichray@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= librime
|
|
PORTVERSION= 1.2.9
|
|
DISTVERSIONPREFIX= rime-
|
|
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 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 build on powerpc64
|
|
|
|
.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>
|