# Created by: Zhihao Yuan # $FreeBSD: head/chinese/librime/Makefile 412344 2016-04-01 13:29:15Z mat $ PORTNAME= librime PORTVERSION= 1.1 DISTVERSIONPREFIX= rime- PORTREVISION= 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 \ libglog.so:devel/glog \ libkyotocabinet.so:databases/kyotocabinet \ 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= xorgproto LDFLAGS+= -lintl USE_GITHUB= yes GH_ACCOUNT= rime PLIST_SUB= VER=${PORTVERSION}.0 BROKEN_powerpc64= Does not build on powerpc64 .include post-patch: .SILENT ${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \ -exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' '{}' \; .include