Changeset View
Changeset View
Standalone View
Standalone View
head/chinese/librime/Makefile
# Created by: Zhihao Yuan <lichray@gmail.com> | # Created by: Zhihao Yuan <lichray@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= librime | PORTNAME= librime | ||||
PORTVERSION= 1.2.9 | PORTVERSION= 1.6.1 | ||||
DISTVERSIONPREFIX= rime- | |||||
PORTREVISION= 20 | |||||
CATEGORIES= chinese textproc | CATEGORIES= chinese textproc | ||||
MAINTAINER= lichray@gmail.com | MAINTAINER= lichray@gmail.com | ||||
COMMENT= Rime Input Method Engine, the core library | COMMENT= Rime Input Method Engine, the core library | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ | LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ | ||||
libcapnp.so:devel/capnproto \ | |||||
libgflags.so:devel/gflags \ | libgflags.so:devel/gflags \ | ||||
libglog.so:devel/glog \ | libglog.so:devel/glog \ | ||||
libleveldb.so:databases/leveldb \ | libleveldb.so:databases/leveldb \ | ||||
libmarisa.so:devel/marisa-trie \ | libmarisa.so:devel/marisa-trie \ | ||||
libopencc.so:chinese/opencc \ | libopencc.so:chinese/opencc \ | ||||
libyaml-cpp.so:devel/yaml-cpp | libyaml-cpp.so:devel/yaml-cpp \ | ||||
USES= cmake compiler:c++11-lib gettext pathfix perl5 pkgconfig xorg | USES= cmake compiler:c++14-lang gettext pathfix perl5 pkgconfig xorg | ||||
USE_PERL5= build patch | USE_PERL5= build patch | ||||
USE_CXXSTD= c++11 | CMAKE_OFF= BUILD_TEST | ||||
USE_CXXSTD= c++14 | |||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_XORG= xorgproto | USE_XORG= xorgproto | ||||
LDFLAGS+= -lintl | LDFLAGS+= -lintl | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= rime | GH_ACCOUNT= rime | ||||
PLIST_SUB= VER=${PORTVERSION} | PLIST_SUB= VER=${PORTVERSION} | ||||
post-patch: | post-patch: | ||||
@${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \ | @${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \ | ||||
-exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' {} \; | -exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' {} \; | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |