View | Details | Raw Unified | Return to bug 168634
Collapse All | Expand All

(-)chinese/fcitx/Makefile (-14 / +36 lines)
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}
(-)chinese/fcitx/files/pkg-message.in (+29 lines)
Line 0 Link Here
1
************************************************************************
2
3
Remember to set the environment variable XMODIFIERS:
4
5
	csh/tcsh:	setenv XMODIFIERS @im=fcitx
6
	sh/bash:	export XMODIFIERS='@im=fcitx'
7
8
For GTK+ programs, you may want to set:
9
10
	csh/tcsh:	setenv GTK_IM_MODULE %%GTK2_IM%%
11
			setenv GTK3_IM_MODULE %%GTK3_IM%%
12
	sh/bash:	export GTK_IM_MODULE=%%GTK2_IM%%
13
			export GTK3_IM_MODULE=%%GTK3_IM%%
14
15
For Qt4 programs, we recommend you to use
16
17
	qtconfig-qt4: %%PORTSDIR%%/misc/qt4-qtconfig
18
19
instead of to manually set QT4_IM_MODULE.
20
21
To start fcitx with your desktop, just
22
23
	cp %%PREFIX%%/share/applications/fcitx.desktop \
24
	    ~/.config/autostart/
25
26
if your desktop environment is XDG-compatible. Otherwise, you have to
27
make sure fcitx is started AFTER dbus-launch.
28
29
************************************************************************
(-)chinese/fcitx/pkg-message (-18 lines)
Lines 1-18 Link Here
1
************************************************************************
2
3
Remember to set environment variable XMODIFIERS:
4
5
	csh/tcsh:	setenv XMODIFIERS @im=fcitx
6
	sh/bash:	export XMODIFIERS='@im=fcitx'
7
8
Additionally, for GTK/Qt programs, you must also set:
9
10
	csh/tcsh:	setenv GTK_IM_MODULE xim
11
			setenv QT_IM_MODULE xim
12
	sh/bash:	export GTK_IM_MODULE=xim
13
			export QT_IM_MODULE=xim
14
15
You can replace the `xim` above with `fcitx` if you built fcitx with
16
the corresponding IM module.
17
18
************************************************************************
(-)chinese/fcitx/pkg-plist (+9 lines)
Lines 64-69 lib/libfcitx-core.so.0.3 Link Here
64
lib/libfcitx-utils.so
64
lib/libfcitx-utils.so
65
lib/libfcitx-utils.so.0
65
lib/libfcitx-utils.so.0
66
lib/libfcitx-utils.so.0.1
66
lib/libfcitx-utils.so.0.1
67
%%GTK2%%lib/gtk-2.0/%%GTK2_VERSION%%/immodules/im-fcitx.so
68
%%GTK2%%@exec gtk-query-immodules-2.0 > %%LOCALBASE%%/etc/gtk-2.0/gtk.immodules
69
%%GTK2%%@unexec gtk-query-immodules-2.0 > %%LOCALBASE%%/etc/gtk-2.0/gtk.immodules
70
%%GTK3%%lib/gtk-3.0/%%GTK3_VERSION%%/immodules/im-fcitx.so
71
%%GTK3%%@exec gtk-query-immodules-3.0 > %%LOCALBASE%%/lib/gtk-3.0/%%GTK3_VERSION%%/immodules.cache
72
%%GTK3%%@unexec gtk-query-immodules-3.0 > %%LOCALBASE%%/lib/gtk-3.0/%%GTK3_VERSION%%/immodules.cache
73
%%QT4%%lib/qt4/plugins/inputmethods/qtim-fcitx.so
74
%%QT4%%@dirrmtry lib/qt4/plugins/inputmethods
75
%%QT4%%@dirrmtry lib/qt4/plugins
67
libdata/pkgconfig/fcitx-config.pc
76
libdata/pkgconfig/fcitx-config.pc
68
libdata/pkgconfig/fcitx-utils.pc
77
libdata/pkgconfig/fcitx-utils.pc
69
libdata/pkgconfig/fcitx.pc
78
libdata/pkgconfig/fcitx.pc

Return to bug 168634