# Created by: Zhihao Yuan # $FreeBSD: head/chinese/fcitx-libpinyin/Makefile 569118 2021-03-24 13:34:35Z rene $ 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 .if ${PORT_OPTIONS:MQT5} DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine EXPIRATION_DATE=2021-06-23 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