Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= fcitx |
4 |
PORTNAME= fcitx |
5 |
PORTVERSION= 4.2.8.6 |
5 |
PORTVERSION= 4.2.9.1 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= chinese x11 |
6 |
CATEGORIES= chinese x11 |
8 |
MASTER_SITES= http://download.fcitx-im.org/fcitx/:fcitx \ |
7 |
MASTER_SITES= http://download.fcitx-im.org/fcitx/:fcitx \ |
9 |
http://download.fcitx-im.org/data/:data |
8 |
http://download.fcitx-im.org/data/:data |
Lines 21-29
COMMENT= Flexible Input Method Framework
Link Here
|
21 |
|
20 |
|
22 |
LICENSE= GPLv2 |
21 |
LICENSE= GPLv2 |
23 |
|
22 |
|
24 |
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:misc/iso-codes |
23 |
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:misc/iso-codes \ |
25 |
LIB_DEPENDS= libdbus-1.so:devel/dbus \ |
24 |
${LOCALBASE}/share/ECM/cmake/ECMConfig.cmake:devel/extra-cmake-modules |
26 |
libicuuc.so:devel/icu |
25 |
LIB_DEPENDS= libcairo.so:graphics/cairo \ |
|
|
26 |
libdbus-1.so:devel/dbus \ |
27 |
libgettextpo.so:devel/gettext-tools \ |
28 |
libicuuc.so:devel/icu \ |
29 |
libXfixes.so:x11/libXfixes \ |
30 |
libXinerama.so:x11/libXinerama \ |
31 |
libXrender.so:x11/libXrender \ |
32 |
libxkbcommon.so:x11/libxkbcommon |
27 |
RUN_DEPENDS= xdg-open:devel/xdg-utils |
33 |
RUN_DEPENDS= xdg-open:devel/xdg-utils |
28 |
|
34 |
|
29 |
SUB_FILES= pkg-message |
35 |
SUB_FILES= pkg-message |
Lines 40-48
INSTALLS_ICONS= yes
Link Here
|
40 |
|
46 |
|
41 |
OPTIONS_DEFINE= GTK2 GTK3 QT4 OPENCC TPUNC DOCS |
47 |
OPTIONS_DEFINE= GTK2 GTK3 QT4 OPENCC TPUNC DOCS |
42 |
OPTIONS_DEFAULT=GTK2 QT4 |
48 |
OPTIONS_DEFAULT=GTK2 QT4 |
|
|
49 |
OPTIONS_SUB= yes |
43 |
|
50 |
|
44 |
GTK2_DESC= Enable Gtk2 IM module |
51 |
GTK2_DESC= Enable Gtk2 IM module |
|
|
52 |
GTK2_USE= GNOME=gtk20 |
53 |
GTK2_CMAKE_ON= -DENABLE_GTK2_IM_MODULE=ON |
54 |
|
45 |
GTK3_DESC= Enable Gtk3 IM module |
55 |
GTK3_DESC= Enable Gtk3 IM module |
|
|
56 |
GTK3_USE= GNOME=gtk30 |
57 |
GTK3_CMAKE_ON= -DENABLE_GTK3_IM_MODULE=ON |
58 |
|
46 |
QT4_DESC= Enable Qt4 IM module |
59 |
QT4_DESC= Enable Qt4 IM module |
47 |
OPENCC_DESC= Enable OpenCC for Chinese Transform |
60 |
OPENCC_DESC= Enable OpenCC for Chinese Transform |
48 |
TPUNC_DESC= Use traditional quotation marks |
61 |
TPUNC_DESC= Use traditional quotation marks |
Lines 59-77
CMAKE_ARGS+= -DENABLE_XDGAUTOSTART=OFF -DFORCE_ENCHANT=ON \
Link Here
|
59 |
-DPREFIX=${PREFIX} \ |
72 |
-DPREFIX=${PREFIX} \ |
60 |
-DQT_PLUGINS_DIR=${PREFIX}/lib/qt4/plugins |
73 |
-DQT_PLUGINS_DIR=${PREFIX}/lib/qt4/plugins |
61 |
|
74 |
|
|
|
75 |
|
62 |
.if ${PORT_OPTIONS:MGTK2} |
76 |
.if ${PORT_OPTIONS:MGTK2} |
63 |
USE_GNOME+= gtk20 |
|
|
64 |
PLIST_SUB+= GTK2="" |
65 |
SUB_LIST+= GTK2_IM=fcitx |
77 |
SUB_LIST+= GTK2_IM=fcitx |
66 |
.else |
78 |
.else |
67 |
CMAKE_ARGS+= -DENABLE_GTK2_IM_MODULE=OFF |
|
|
68 |
PLIST_SUB+= GTK2="@comment " |
69 |
SUB_LIST+= GTK2_IM=xim |
79 |
SUB_LIST+= GTK2_IM=xim |
70 |
.endif |
80 |
.endif |
71 |
|
81 |
|
72 |
.if ${PORT_OPTIONS:MGTK3} |
82 |
.if ${PORT_OPTIONS:MGTK3} |
73 |
USE_GNOME+= gtk30 |
|
|
74 |
CMAKE_ARGS+= -DENABLE_GTK3_IM_MODULE=ON |
75 |
PLIST_SUB+= GTK3="" |
83 |
PLIST_SUB+= GTK3="" |
76 |
SUB_LIST+= GTK3_IM=fcitx |
84 |
SUB_LIST+= GTK3_IM=fcitx |
77 |
.else |
85 |
.else |
Lines 80-86
SUB_LIST+= GTK3_IM=xim
Link Here
|
80 |
.endif |
88 |
.endif |
81 |
|
89 |
|
82 |
.if ${PORT_OPTIONS:MQT4} |
90 |
.if ${PORT_OPTIONS:MQT4} |
83 |
USE_QT4+= qmake_build moc_build rcc_build uic_build dbus gui inputmethods |
91 |
USE_QT4+= qmake_build corelib moc_build rcc_build uic_build dbus gui inputmethods |
|
|
92 |
USE_XORG+= ice sm |
84 |
USE_LDCONFIG+= ${PREFIX}/lib/fcitx/qt |
93 |
USE_LDCONFIG+= ${PREFIX}/lib/fcitx/qt |
85 |
PLIST_SUB+= QT4="" |
94 |
PLIST_SUB+= QT4="" |
86 |
.else |
95 |
.else |