mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
e42af2f755
Chinese input method. WWW: http://code.google.com/p/rimeime/ PR: 172751 Submitted by: Zhihao Yuan <lichray@gmail.com> Feature safe: yes
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: Zhihao Yuan <lichray@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= librime
|
|
PORTVERSION= 0.9.4
|
|
CATEGORIES= chinese textproc
|
|
MASTER_SITES= GOOGLE_CODE
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} brise-${DATA_VER}.tar.gz
|
|
|
|
MAINTAINER= lichray@gmail.com
|
|
COMMENT= Rime Input Method Engine
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs \
|
|
glog:${PORTSDIR}/devel/glog \
|
|
kyotocabinet:${PORTSDIR}/databases/kyotocabinet \
|
|
opencc:${PORTSDIR}/chinese/opencc \
|
|
yaml-cpp:${PORTSDIR}/devel/yaml-cpp
|
|
|
|
USE_CMAKE= yes
|
|
USE_GETTEXT= yes
|
|
USE_GNOME= pkgconfig
|
|
USE_LDCONFIG= yes
|
|
USE_XORG= xproto
|
|
USE_PERL5_BUILD= yes
|
|
LDFLAGS+= -lintl
|
|
|
|
post-patch: .SILENT
|
|
${REINPLACE_CMD} 's|$${LIB_INSTALL_DIR}/pkgconfig|$${prefix}/libdata/pkgconfig|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \
|
|
-exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' '{}' \;
|
|
|
|
post-build:
|
|
@echo "building rime data."
|
|
@${MKDIR} ${DATASRC}
|
|
@(cd ${WRKDIR}/brise; ${CP} \
|
|
default.yaml essay.kct supplement/*.yaml preset/*.yaml ${DATASRC})
|
|
${WRKSRC}/bin/rime_deployer --build ${DATASRC}
|
|
|
|
post-install:
|
|
${MKDIR} ${DATADIR}/data
|
|
${INSTALL_DATA} ${DATASRC}/*.kct ${DATASRC}/*.bin ${DATADIR}/data/
|
|
|
|
PROJECTHOST= rimeime
|
|
DATA_VER= 0.13
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
DATASRC= ${WRKDIR}/tmp
|
|
DATADIR= ${PREFIX}/share/rime
|
|
|
|
.include <bsd.port.mk>
|