1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/chinese/fcitx-libpinyin/Makefile
Baptiste Daroussin 2c672a4de9 INSTALLS_ICONS: retire the macro and rework the related dependencies
While here, make sure gtk-update-icon-cache is only on run dependency
where added as a dependency
Enforce gtk3 to depend on gtk-update-icon-cache (previously it was
inheriting the dependency)
2021-10-10 21:44:42 +02:00

50 lines
1.2 KiB
Makefile

# Created by: Zhihao Yuan <lichray@gmail.com>
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
_MODEL_VER= 20161206
OPTIONS_DEFINE= QT5
OPTIONS_DEFAULT=QT5
QT5_DESC= Enable Qtr for dictmanager
.include <bsd.port.options.mk>
.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 <bsd.port.mk>