head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	2013.03.22.23.30.04;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2013.02.04.07.46.59;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2013.01.31.14.01.26;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.11.17.05.54.57;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2012.10.22.07.18.27;	author wen;	state Exp;
branches;
next	;


desc
@@


1.5
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314960
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Zhihao Yuan <lichray@@gmail.com>
# $FreeBSD: head/chinese/librime/Makefile 314960 2013-03-22 20:06:14Z makc $

PORTNAME=	librime
PORTVERSION=	0.9.7
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

USES=		cmake
USE_GETTEXT=	yes
USE_PKGCONFIG=	yes
USE_LDCONFIG=	yes
USE_XORG=	xproto
USE_PERL5_BUILD=	yes
LDFLAGS+=	-lintl

PLIST_SUB=	VER=${PORTVERSION}

post-patch:     .SILENT
	${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.16
WRKSRC=		${WRKDIR}/${PORTNAME}
DATASRC=	${WRKDIR}/tmp
DATADIR=	${PREFIX}/share/rime

.include <bsd.port.mk>
@


1.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311529
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/chinese/librime/Makefile 311529 2013-02-04 00:44:10Z amdmi3 $
d21 1
a21 1
USE_CMAKE=	yes
@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311310
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/chinese/librime/Makefile 311310 2013-01-31 13:38:42Z bapt $
d5 1
a5 2
PORTVERSION=	0.9.4
PORTREVISION=	1
d23 1
a23 1
USE_GNOME=	pkgconfig
d29 2
a31 2
	${REINPLACE_CMD} 's|$${LIB_INSTALL_DIR}/pkgconfig|$${prefix}/libdata/pkgconfig|' \
		${WRKSRC}/CMakeLists.txt
d47 1
a47 1
DATA_VER=	0.13
@


1.2
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/chinese/librime/Makefile 306255 2012-10-22 07:18:27Z wen $
d6 1
@


1.1
log
@SVN rev 306255 on 2012-10-22 07:18:27Z by wen

Rime Input Method Engine is a customizable and dialect-friendly intelligent
Chinese input method.

WWW: http://code.google.com/p/rimeime/

PR:		172751
Submitted by:	Zhihao Yuan <lichray@@gmail.com>

Feature safe:	yes
@
text
@d2 1
a2 1
# $FreeBSD$
@

