2015-03-31 23:06:47 +02:00
|
|
|
# Created by: Henry Hu <henry.hu.sh@gmail.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ibus-libpinyin
|
2019-08-16 10:31:55 +02:00
|
|
|
PORTVERSION= 1.11.1
|
2015-03-31 23:06:47 +02:00
|
|
|
CATEGORIES= chinese
|
|
|
|
MASTER_SITES= SF/libpinyin/${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= henry.hu.sh@gmail.com
|
|
|
|
COMMENT= Intelligent Pinyin engine based on libpinyin for IBus
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
|
|
|
|
libibus-1.0.so:textproc/ibus \
|
|
|
|
libpinyin.so:chinese/libpinyin
|
2015-03-31 23:06:47 +02:00
|
|
|
|
2019-08-16 10:31:55 +02:00
|
|
|
USES= compiler:c++11-lib gmake gnome python pkgconfig gettext
|
2017-12-11 17:48:54 +01:00
|
|
|
USE_PYTHON= py3kplist
|
2019-08-16 10:31:55 +02:00
|
|
|
USE_GNOME= glib20
|
|
|
|
GLIB_SCHEMAS= com.github.libpinyin.ibus-libpinyin.gschema.xml
|
2015-03-31 23:06:47 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --disable-dependency-tracking --disable-boost \
|
|
|
|
--disable-lua-extension
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= ENGLISH STROKE OPENCC NLS
|
2019-08-16 10:31:55 +02:00
|
|
|
OPTIONS_DEFAULT= ENGLISH STROKE OPENCC
|
2015-08-19 15:29:59 +02:00
|
|
|
OPTIONS_SUB= yes
|
2015-03-31 23:06:47 +02:00
|
|
|
ENGLISH_DESC= Enable English input mode
|
|
|
|
STROKE_DESC= Enable stroke input mode
|
|
|
|
OPENCC_DESC= Use opencc for simplified and traditional Chinese conversion
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
ENGLISH_CONFIGURE_ENABLE= english-input-mode
|
|
|
|
STROKE_CONFIGURE_ENABLE= stroke-input-mode
|
2015-03-31 23:06:47 +02:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
OPENCC_CONFIGURE_ENABLE= opencc
|
2016-04-01 15:29:15 +02:00
|
|
|
OPENCC_LIB_DEPENDS= libopencc.so:chinese/opencc
|
2015-03-31 23:06:47 +02:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_USE= GNOME=intltool
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2015-03-31 23:06:47 +02:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|DATADIRNAME = lib|DATADIRNAME = share|' ${WRKSRC}/po/Makefile
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
.include <bsd.port.mk>
|