freebsd-ports/chinese/fcitx-libpinyin/Makefile
2019-11-08 09:31:13 +00:00

50 lines
1.1 KiB
Makefile

# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
PORTNAME= fcitx-libpinyin
PORTVERSION= 0.5.3
PORTREVISION= 2
CATEGORIES= chinese
MASTER_SITES= http://download.fcitx-im.org/${PORTNAME}/:body \
http://download.fcitx-im.org/data/:data
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:body \
model.text.${_MODEL_VER}.tar.gz:data
DIST_SUBDIR= fcitx
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= lichray@gmail.com
COMMENT= Libpinyin support for Fcitx
LICENSE= GPLv2
BUILD_DEPENDS= bash:shells/bash
LIB_DEPENDS= libfcitx-config.so:chinese/fcitx \
libpinyin.so:chinese/libpinyin\
libFcitxQt5WidgetsAddons.so:textproc/fcitx-qt5
USES= cmake gettext gnome pkgconfig tar:xz
INSTALLS_ICONS= yes
_MODEL_VER= 20161206
OPTIONS_DEFINE= QT5
OPTIONS_DEFAULT=QT5
QT5_DESC= Enable Qtr for dictmanager
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MQT5}
USES+= qt:5
USE_QT= qmake_build gui webengine buildtools_build
USE_LDCONFIG= ${PREFIX}/lib/fcitx/qt
PLIST_SUB+= QT5=""
.else
CMAKE_ARGS+= -DENABLE_QT=OFF
PLIST_SUB+= QT5="@comment "
.endif
post-patch:
@${CP} ${_DISTDIR}/model.text.${_MODEL_VER}.tar.gz ${WRKSRC}/data/.
.include <bsd.port.mk>