Changeset View
Changeset View
Standalone View
Standalone View
textproc/fcitx5-gtk/Makefile
PORTNAME= fcitx5-gtk | PORTNAME= fcitx5-gtk | ||||
DISTVERSION= 5.0.10 | DISTVERSION= 5.0.22 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= textproc | CATEGORIES= textproc | ||||
MASTER_SITES= https://download.fcitx-im.org/fcitx5/${PORTNAME}/ | |||||
MAINTAINER= khng@FreeBSD.org | MAINTAINER= khng@FreeBSD.org | ||||
COMMENT?= Fcitx support for GTK+ ${FLAVOR} | COMMENT?= Fcitx support for GTK+ ${FLAVOR} | ||||
WWW= https://github.com/fcitx/fcitx5-gtk | WWW= https://github.com/fcitx/fcitx5-gtk | ||||
LICENSE= LGPL21+ | LICENSE= LGPL21+ | ||||
LICENSE_FILE= ${WRKSRC}/LICENSES/LGPL-2.1-or-later.txt | LICENSE_FILE= ${WRKSRC}/LICENSES/LGPL-2.1-or-later.txt | ||||
LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon | LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon | ||||
RUN_DEPENDS?= fcitx5-gtk-common>=${DISTVERSION}:textproc/fcitx5-gtk-common | RUN_DEPENDS?= fcitx5-gtk-common>=${DISTVERSION}:textproc/fcitx5-gtk-common | ||||
FLAVORS?= gtk3 gtk2 gtk4 | FLAVORS?= gtk3 gtk2 gtk4 | ||||
FLAVOR?= ${FLAVORS:[1]} | FLAVOR?= ${FLAVORS:[1]} | ||||
gtk2_PKGNAMESUFFIX= 2 | gtk2_PKGNAMESUFFIX= 2 | ||||
gtk3_PKGNAMESUFFIX= 3 | gtk3_PKGNAMESUFFIX= 3 | ||||
gtk4_PKGNAMESUFFIX= 4 | gtk4_PKGNAMESUFFIX= 4 | ||||
USES= compiler:c++17-lang gettext-tools cmake gnome kde:5 pkgconfig xorg | USES= cmake compiler:c++17-lang gettext-tools gnome kde:5 pkgconfig \ | ||||
tar:xz xorg | |||||
PLIST_SUB= VER=${PORTVERSION} | |||||
USE_LDCONFIG= yes | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= fcitx | |||||
USE_GNOME= cairo gdkpixbuf2 glib20 introspection | USE_GNOME= cairo gdkpixbuf2 glib20 introspection | ||||
USE_KDE= ecm | USE_KDE= ecm | ||||
USE_LDCONFIG= yes | |||||
USE_XORG= x11 | USE_XORG= x11 | ||||
CMAKE_ON?= BUILD_ONLY_PLUGIN | CMAKE_ON?= BUILD_ONLY_PLUGIN | ||||
.if ${FLAVOR} == gtk3 | .if ${FLAVOR} == gtk3 | ||||
CMAKE_OFF+= ENABLE_GTK2_IM_MODULE ENABLE_GTK4_IM_MODULE | CMAKE_OFF+= ENABLE_GTK2_IM_MODULE ENABLE_GTK4_IM_MODULE | ||||
USE_GNOME+= gtk30 | USE_GNOME+= gtk30 | ||||
.elif ${FLAVOR} == gtk2 | .elif ${FLAVOR} == gtk2 | ||||
CMAKE_OFF+= ENABLE_GTK3_IM_MODULE ENABLE_GTK4_IM_MODULE | CMAKE_OFF+= ENABLE_GTK3_IM_MODULE ENABLE_GTK4_IM_MODULE | ||||
USE_GNOME+= gtk20 | USE_GNOME+= gtk20 | ||||
.elif ${FLAVOR} == gtk4 | .elif ${FLAVOR} == gtk4 | ||||
CMAKE_OFF+= ENABLE_GTK2_IM_MODULE ENABLE_GTK3_IM_MODULE | CMAKE_OFF+= ENABLE_GTK2_IM_MODULE ENABLE_GTK3_IM_MODULE | ||||
USE_GNOME+= gtk40 | USE_GNOME+= gtk40 | ||||
.endif | .endif | ||||
PLIST?= ${PKGDIR}/pkg-plist.${FLAVOR} | PLIST?= ${PKGDIR}/pkg-plist.${FLAVOR} | ||||
PLIST_SUB= VER=${PORTVERSION} | |||||
PLIST_SUB= VER=${PORTVERSION} | PLIST_SUB= VER=${PORTVERSION} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |