Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= fcitx |
8 |
PORTNAME= fcitx |
9 |
PORTVERSION= 4.2.3 |
9 |
PORTVERSION= 4.2.3 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= chinese x11 |
11 |
CATEGORIES= chinese x11 |
12 |
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} |
12 |
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} |
13 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} pinyin.tar.gz table.tar.gz |
13 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} pinyin.tar.gz table.tar.gz |
Lines 23-32
LIB_DEPENDS= execinfo.1:${PORTSDIR}/deve
Link Here
|
23 |
dbus-1.3:${PORTSDIR}/devel/dbus |
23 |
dbus-1.3:${PORTSDIR}/devel/dbus |
24 |
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils |
24 |
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils |
25 |
|
25 |
|
26 |
MAN1= createPYMB.1 fcitx-remote.1 fcitx.1 mb2org.1 mb2txt.1 \ |
26 |
MAN1= createPYMB.1 fcitx-remote.1 fcitx.1 mb2org.1 mb2txt.1 \ |
27 |
readPYBase.1 readPYMB.1 scel2org.1 txt2mb.1 |
27 |
readPYBase.1 readPYMB.1 scel2org.1 txt2mb.1 |
|
|
28 |
SUB_FILES= pkg-message |
29 |
SUB_LIST+= PORTSDIR=${PORTSDIR} |
28 |
|
30 |
|
29 |
USE_XZ= yes |
31 |
USE_XZ= yes |
30 |
USE_GNOME= pango intltool gnomehack |
32 |
USE_GNOME= pango intltool gnomehack |
31 |
USE_GETTEXT= yes |
33 |
USE_GETTEXT= yes |
32 |
USE_XORG= x11 xext |
34 |
USE_XORG= x11 xext |
Lines 34-72
USE_LDCONFIG= yes
Link Here
|
34 |
USE_CMAKE= yes |
36 |
USE_CMAKE= yes |
35 |
INSTALLS_ICONS= yes |
37 |
INSTALLS_ICONS= yes |
36 |
|
38 |
|
37 |
OPTIONS= GTK2 "Enable Gtk2 IM module" off \ |
39 |
OPTIONS_DEFINE= GTK2 GTK3 QT4 OPENCC TPUNC |
38 |
GTK3 "Enable Gtk3 IM module" off \ |
40 |
|
39 |
QT4 "Enable Qt4 IM module" off \ |
41 |
GTK2_DESC= "Enable Gtk2 IM module" |
40 |
OPENCC "Enable OpenCC for Chinese Transform" off \ |
42 |
GTK3_DESC= "Enable Gtk3 IM module" |
41 |
TPUNC "Use traditional quotation marks" off |
43 |
QT4_DESC= "Enable Qt4 IM module" |
|
|
44 |
OPENCC_DESC= "Enable OpenCC for Chinese Transform" |
45 |
TPUNC_DESC= "Use traditional quotation marks" |
42 |
|
46 |
|
43 |
.include <bsd.port.options.mk> |
47 |
.include <bsd.port.options.mk> |
44 |
|
48 |
|
45 |
.if defined(WITH_GTK2) |
49 |
.if ${PORT_OPTIONS:MGTK2} |
46 |
USE_GNOME+= gtk20 |
50 |
USE_GNOME+= gtk20 |
|
|
51 |
PLIST_SUB+= GTK2="" |
52 |
SUB_LIST+= GTK2_IM=fcitx |
47 |
.else |
53 |
.else |
48 |
CMAKE_ARGS+= -DENABLE_GTK2_IM_MODULE=OFF |
54 |
CMAKE_ARGS+= -DENABLE_GTK2_IM_MODULE=OFF |
|
|
55 |
PLIST_SUB+= GTK2="@comment " |
56 |
SUB_LIST+= GTK2_IM=xim |
49 |
.endif |
57 |
.endif |
50 |
|
58 |
|
51 |
.if defined(WITH_GTK3) |
59 |
.if ${PORT_OPTIONS:MGTK3} |
52 |
USE_GNOME+= gtk30 |
60 |
USE_GNOME+= gtk30 |
53 |
CMAKE_ARGS+= -DENABLE_GTK3_IM_MODULE=ON |
61 |
CMAKE_ARGS+= -DENABLE_GTK3_IM_MODULE=ON |
|
|
62 |
PLIST_SUB+= GTK3="" |
63 |
SUB_LIST+= GTK3_IM=fcitx |
64 |
.else |
65 |
PLIST_SUB+= GTK3="@comment " |
66 |
SUB_LIST+= GTK3_IM=xim |
54 |
.endif |
67 |
.endif |
55 |
|
68 |
|
56 |
.if defined(WITH_QT4) |
69 |
.if ${PORT_OPTIONS:MQT4} |
57 |
USE_QT= yes |
70 |
USE_QT= yes |
58 |
USE_QT_VER= 4 |
71 |
USE_QT_VER= 4 |
59 |
QT_COMPONENTS= gui |
72 |
QT_COMPONENTS= gui |
60 |
CMAKE_ARGS+= -DENABLE_QT_IM_MODULE=ON |
73 |
CMAKE_ARGS+= -DENABLE_QT_IM_MODULE=ON |
|
|
74 |
PLIST_SUB+= QT4="" |
75 |
.else |
76 |
PLIST_SUB+= QT4="@comment " |
61 |
.endif |
77 |
.endif |
62 |
|
78 |
|
63 |
.if defined(WITH_OPENCC) |
79 |
.if ${PORT_OPTIONS:MOPENCC} |
64 |
LIB_DEPENDS+= opencc.1:${PORTSDIR}/chinese/opencc |
80 |
LIB_DEPENDS+= opencc.1:${PORTSDIR}/chinese/opencc |
65 |
.else |
81 |
.else |
66 |
CMAKE_ARGS+= -DENABLE_OPENCC=OFF |
82 |
CMAKE_ARGS+= -DENABLE_OPENCC=OFF |
67 |
.endif |
83 |
.endif |
68 |
|
84 |
|
69 |
.if defined(WITH_TPUNC) |
85 |
.if ${PORT_OPTIONS:MTPUNC} |
70 |
EXTRA_PATCHES+= ${FILESDIR}/tpunc-data_punc.mb.zh_CN |
86 |
EXTRA_PATCHES+= ${FILESDIR}/tpunc-data_punc.mb.zh_CN |
71 |
.endif |
87 |
.endif |
72 |
|
88 |
|
Lines 92-97
EXTRA_PATCHES+= ${FILESDIR}/getline-src_
Link Here
|
92 |
.endif |
108 |
.endif |
93 |
|
109 |
|
94 |
post-install: |
110 |
post-install: |
|
|
111 |
.if ${PORT_OPTIONS:MGTK2} |
112 |
-gtk-query-immodules-2.0 > ${LOCALBASE}/etc/gtk-2.0/gtk.immodules |
113 |
.endif |
114 |
.if ${PORT_OPTIONS:MGTK3} |
115 |
-gtk-query-immodules-3.0 > ${LOCALBASE}/lib/gtk-3.0/${GTK3_VERSION}/immodules.cache |
116 |
.endif |
95 |
@${ECHO_CMD} |
117 |
@${ECHO_CMD} |
96 |
@${CAT} ${PKGMESSAGE} |
118 |
@${CAT} ${PKGMESSAGE} |
97 |
@${ECHO_CMD} |
119 |
@${ECHO_CMD} |