From 3390f7060e630b0f7e13ba19350cd65380b88cfe Mon Sep 17 00:00:00 2001 From: Xin LI Date: Tue, 7 Feb 2012 20:57:08 +0000 Subject: Update fcitx and friends: - fcitx to 4.2.0, always depend on dbus - fcitx-cloudpinyin to 0.2.0 - fcitx-configtool to 0.4.0 - fcitx-googlepinyin to 0.1.4 - fcitx-sunpinyin to 0.3.3 - fcitx-ui-light to 0.1.3 - libgooglepinyin to 0.1.2 PR: ports/164820 Submitted by: maintainer (Zhihao Yuan --- chinese/fcitx-configtool/Makefile | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) (limited to 'chinese/fcitx-configtool/Makefile') diff --git a/chinese/fcitx-configtool/Makefile b/chinese/fcitx-configtool/Makefile index 4ce8af2f2681..a6391441a6a9 100644 --- a/chinese/fcitx-configtool/Makefile +++ b/chinese/fcitx-configtool/Makefile @@ -6,7 +6,7 @@ # PORTNAME= fcitx-configtool -PORTVERSION= 0.3.1 +PORTVERSION= 0.4.0 CATEGORIES= chinese x11 MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} DIST_SUBDIR= fcitx @@ -14,16 +14,39 @@ DIST_SUBDIR= fcitx MAINTAINER= lichray@gmail.com COMMENT= Fcitx IM configure tool +BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes LIB_DEPENDS= fcitx-config.4:${PORTSDIR}/chinese/fcitx USE_BZIP2= yes -USE_GNOME= gtk20 intltool gnomehack +USE_GNOME= intltool gnomehack USE_GETTEXT= yes USE_CMAKE= yes -PROJECTHOST= fcitx +OPTIONS= GTK2 "Enable Gtk2 Version" on \ + GTK3 "Enable Gtk3 Version" off + +.include + +.if defined(WITH_GTK2) +USE_GNOME+= gtk20 +PLIST_SUB+= GTK2="" +.else +CMAKE_ARGS+= -DENABLE_GTK2=OFF +PLIST_SUB+= GTK2="@comment " +.endif -PLIST_FILES= bin/fcitx-config-gtk \ - share/locale/zh_CN/LC_MESSAGES/fcitx-configtool.mo +.if defined(WITH_GTK3) +USE_GNOME+= gtk30 +CMAKE_ARGS+= -DENABLE_GTK3=ON +PLIST_SUB+= GTK3="" +.else +PLIST_SUB+= GTK3="@comment " +.endif + +.if defined(WITHOUT_GTK2) && defined(WITHOUT_GTK3) +IGNORE= a GUI is required +.endif + +PROJECTHOST= fcitx .include -- cgit v1.2.3