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

(-)Makefile (-93 / +16 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	uim
8
PORTNAME=	uim
9
PORTVERSION=	1.0.1
9
PORTVERSION=	1.0.1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	textproc
11
CATEGORIES=	textproc
12
MASTER_SITES=	http://uim.freedesktop.org/releases/
12
MASTER_SITES=	http://uim.freedesktop.org/releases/
13
13
Lines 18-47 Link Here
18
USE_REINPLACE=	yes
18
USE_REINPLACE=	yes
19
INSTALLS_SHLIB=	yes
19
INSTALLS_SHLIB=	yes
20
WANT_GNOME=	yes
20
WANT_GNOME=	yes
21
USE_GNOME=	gnometarget glib20
21
USE_GNOME+=	gnometarget glib20
22
USE_GMAKE=	yes
22
USE_GMAKE=	yes
23
USE_ICONV=	yes
23
USE_ICONV=	yes
24
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
25
25
26
LIB_DEPENDS=	Xft.2:${PORTSDIR}/x11-fonts/libXft
26
LIB_DEPENDS+=	Xft.2:${PORTSDIR}/x11-fonts/libXft
27
27
28
.if !defined(UIM_SLAVE)
28
CONFIGURE_ARGS=	--enable-emacs
29
CONFIGURE_ARGS=	--enable-emacs
29
CONFIGURE_ENV=	CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
30
.endif
31
CONFIGURE_ENV+=	CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
30
		LDFLAGS="-L${X11BASE}/lib  -L${LOCALBASE}/lib"
32
		LDFLAGS="-L${X11BASE}/lib  -L${LOCALBASE}/lib"
31
33
32
OPTIONS=	GTK "Enable GTK support" off \
34
.if !defined(UIM_SLAVE)
33
		QT "Enable QT support" off \
34
		GNOME "Enable GNOME support" off \
35
		ANTHY "Enable Anthy support" off \
36
		CANNA "Enable Canna support" off \
37
		M17NLIB "Enable m17lib support" off \
38
		PRIME "Enable PRIME support" off \
39
		SCIM "Enable SCIM support" off \
40
		SKK "Enable SKK support" off
41
42
MAN1=		uim-xim.1
35
MAN1=		uim-xim.1
43
DOCSDIR_JA=	${PREFIX}/share/doc/ja/uim
36
DOCSDIR_JA=	${PREFIX}/share/doc/ja/uim
44
PLIST_SUB=	DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
37
PLIST_SUB=	DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
38
.endif
45
39
46
.include <bsd.port.pre.mk>
40
.include <bsd.port.pre.mk>
47
41
Lines 56-145 Link Here
56
CONFIGURE_ENV+=	INTLTOOL_PERL="${LOCALBASE}/bin/perl"
50
CONFIGURE_ENV+=	INTLTOOL_PERL="${LOCALBASE}/bin/perl"
57
.endif
51
.endif
58
52
59
.if defined(WITH_GTK)
53
.for _x in gtk2 qt gnome2 anthy canna m17nlib prime scim
60
USE_GNOME+=	gtk20
54
.if ${CONFIGURE_ARGS:M--with-${_x}} == ""
61
CONFIGURE_ARGS+=--with-gtk2
55
CONFIGURE_ARGS+=--without-${_x}
62
PLIST_SUB+=	GTK=""
56
.endif
63
.else
57
.endfor
64
CONFIGURE_ARGS+=--without-gtk2
58
.if ${CONFIGURE_ARGS:M--enable-applet} == ""
65
PLIST_SUB+=	GTK="@comment "
59
CONFIGURE_ARGS+=--disable-applet
66
.endif
67
68
.if defined(WITH_QT)
69
LIB_DEPENDS+=	qt-mt.3:${PORTSDIR}/x11-toolkits/qt33
70
CONFIGURE_ARGS+=--with-qt
71
CONFIGURE_ENV+=	QTDIR=${X11BASE}/lib QTINCDIR=${X11BASE}/include \
72
		CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include" LIBS="${LIBS} ${PTHREAD_LIBS} -L${X11BASE}/lib"
73
PLIST_SUB+=	QT=""
74
.else
75
CONFIGURE_ARGS+=--without-qt
76
PLIST_SUB+=	QT="@comment "
77
.endif
78
79
.if defined(WITH_GNOME)
80
USE_GNOME+=	gnomepanel
81
CONFIGURE_ARGS+=--with-gnome2 --enable-applet
82
PLIST_SUB+=	GNOME=""
83
.else
84
CONFIGURE_ARGS+=--without-gnome2 --disable-applet
85
PLIST_SUB+=	GNOME="@comment "
86
.endif
87
88
.if defined(WITH_ANTHY)
89
LIB_DEPENDS+=	anthy.1:${PORTSDIR}/japanese/anthy
90
CONFIGURE_ARGS+=--with-anthy
91
PLIST_SUB+=	ANTHY=""
92
.else
93
CONFIGURE_ARGS+=--without-anthy
94
PLIST_SUB+=	ANTHY="@comment "
95
.endif
96
97
.if defined(WITH_CANNA)
98
LIB_DEPENDS+=	canna.1:${PORTSDIR}/japanese/Canna
99
CONFIGURE_ARGS+=--with-canna
100
PLIST_SUB+=	CANNA=""
101
.else
102
CONFIGURE_ARGS+=--without-canna
103
PLIST_SUB+=	CANNA="@comment "
104
.endif
105
106
.if defined(WITH_M17NLIB)
107
LIB_DEPENDS+=	m17n.1:${PORTSDIR}/devel/m17n-lib
108
CONFIGURE_ARGS+=--with-m17nlib
109
PLIST_SUB+=	M17NLIB=""
110
.else
111
CONFIGURE_ARGS+=--without-m17nlib
112
PLIST_SUB+=	M17NLIB="@comment "
113
.endif
114
115
.if defined(WITH_PRIME)
116
BUILD_DEPENDS+=	prime:${PORTSDIR}/japanese/prime
117
RUN_DEPENDS+=	${BUILD_DEPENDS}
118
CONFIGURE_ARGS+=--with-prime
119
PLIST_SUB+=	PRIME=""
120
.else
121
CONFIGURE_ARGS+=--without-prime
122
PLIST_SUB+=	PRIME="@comment "
123
.endif
124
125
.if defined(WITH_SCIM)
126
USE_GCC=	3.4
127
LIB_DEPENDS+=	scim-1.0.9:${PORTSDIR}/textproc/scim
128
CONFIGURE_ARGS+=--with-scim
129
PLIST_SUB+=	SCIM=""
130
.else
131
CONFIGURE_ARGS+=--without-scim
132
PLIST_SUB+=	SCIM="@comment "
133
.endif
134
135
.if defined(WITH_SKK)
136
RUN_DEPENDS+=	${LOCALBASE}/share/skk/SKK-JISYO.L:${PORTSDIR}/japanese/skk-jisyo
137
.endif
60
.endif
138
61
139
post-patch:
62
post-patch:
140
	${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
63
	${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/scm/skk-custom.scm
141
64
142
.if !defined(NOPORTDOCS)
65
.if !defined(UIM_SLAVE) && !defined(NOPORTDOCS)
143
post-install:
66
post-install:
144
	${MKDIR} ${DOCSDIR}
67
	${MKDIR} ${DOCSDIR}
145
	${MKDIR} ${DOCSDIR_JA}
68
	${MKDIR} ${DOCSDIR_JA}
(-)pkg-plist (-38 lines)
Lines 1-19 Link Here
1
%%QT%%bin/uim-chardict-qt
2
bin/uim-el-agent
1
bin/uim-el-agent
3
bin/uim-fep
2
bin/uim-fep
4
bin/uim-fep-tick
3
bin/uim-fep-tick
5
%%GTK%%bin/uim-helper-toolbar-gtk
6
%%GTK%%bin/uim-helper-toolbar-gtk-systray
7
%%GTK%%bin/uim-im-switcher-gtk
8
%%QT%%bin/uim-im-switcher-qt
9
%%GTK%%bin/uim-input-pad-ja
10
bin/uim-module-manager
4
bin/uim-module-manager
11
%%GTK%%bin/uim-pref-gtk
12
%%QT%%bin/uim-pref-qt
13
bin/uim-sh
5
bin/uim-sh
14
%%GTK%%bin/uim-toolbar-gtk
15
%%GTK%%bin/uim-toolbar-gtk-systray
16
%%QT%%bin/uim-toolbar-qt
17
bin/uim-xim
6
bin/uim-xim
18
include/uim/plugin.h
7
include/uim/plugin.h
19
include/uim/uim-compat-scm.h
8
include/uim/uim-compat-scm.h
Lines 23-32 Link Here
23
include/uim/uim-scm.h
12
include/uim/uim-scm.h
24
include/uim/uim-util.h
13
include/uim/uim-util.h
25
include/uim/uim.h
14
include/uim/uim.h
26
%%GNOME%%libdata/bonobo/servers/GNOME_UimApplet.server
27
%%GTK%%lib/gtk-2.0/2.4.0/immodules/im-uim.a
28
%%GTK%%lib/gtk-2.0/2.4.0/immodules/im-uim.la
29
%%GTK%%lib/gtk-2.0/2.4.0/immodules/im-uim.so
30
lib/libuim-custom.a
15
lib/libuim-custom.a
31
lib/libuim-custom.la
16
lib/libuim-custom.la
32
lib/libuim-custom.so
17
lib/libuim-custom.so
Lines 35-67 Link Here
35
lib/libuim.la
20
lib/libuim.la
36
lib/libuim.so
21
lib/libuim.so
37
lib/libuim.so.1
22
lib/libuim.so.1
38
%%ANTHY%%lib/uim/plugin/libuim-anthy.a
39
%%ANTHY%%lib/uim/plugin/libuim-anthy.la
40
%%ANTHY%%lib/uim/plugin/libuim-anthy.so
41
%%CANNA%%lib/uim/plugin/libuim-canna.a
42
%%CANNA%%lib/uim/plugin/libuim-canna.la
43
%%CANNA%%lib/uim/plugin/libuim-canna.so
44
lib/uim/plugin/libuim-custom-enabler.a
23
lib/uim/plugin/libuim-custom-enabler.a
45
lib/uim/plugin/libuim-custom-enabler.la
24
lib/uim/plugin/libuim-custom-enabler.la
46
lib/uim/plugin/libuim-custom-enabler.so
25
lib/uim/plugin/libuim-custom-enabler.so
47
%%M17NLIB%%lib/uim/plugin/libuim-m17nlib.a
48
%%M17NLIB%%lib/uim/plugin/libuim-m17nlib.la
49
%%M17NLIB%%lib/uim/plugin/libuim-m17nlib.so
50
%%PRIME%%lib/uim/plugin/libuim-prime.a
51
%%PRIME%%lib/uim/plugin/libuim-prime.la
52
%%PRIME%%lib/uim/plugin/libuim-prime.so
53
%%SCIM%%lib/uim/plugin/libuim-scim.a
54
%%SCIM%%lib/uim/plugin/libuim-scim.la
55
%%SCIM%%lib/uim/plugin/libuim-scim.so
56
lib/uim/plugin/libuim-skk.a
26
lib/uim/plugin/libuim-skk.a
57
lib/uim/plugin/libuim-skk.la
27
lib/uim/plugin/libuim-skk.la
58
lib/uim/plugin/libuim-skk.so
28
lib/uim/plugin/libuim-skk.so
59
libdata/pkgconfig/uim.pc
29
libdata/pkgconfig/uim.pc
60
%%GTK%%libexec/uim-candwin-gtk
61
%%QT%%libexec/uim-candwin-qt
62
libexec/uim-helper-server
30
libexec/uim-helper-server
63
%%GNOME%%libexec/uim-helper-applet
64
%%GNOME%%libexec/uim-toolbar-applet
65
share/applications/uim.desktop
31
share/applications/uim.desktop
66
share/locale/fr/LC_MESSAGES/uim.mo
32
share/locale/fr/LC_MESSAGES/uim.mo
67
share/locale/ja/LC_MESSAGES/uim.mo
33
share/locale/ja/LC_MESSAGES/uim.mo
Lines 93-99 Link Here
93
%%DATADIR%%/hangul.scm
59
%%DATADIR%%/hangul.scm
94
%%DATADIR%%/hangul2.scm
60
%%DATADIR%%/hangul2.scm
95
%%DATADIR%%/hangul3.scm
61
%%DATADIR%%/hangul3.scm
96
%%GNOME%%%%DATADIR%%/helperdata/bushu.t
97
%%DATADIR%%/i18n.scm
62
%%DATADIR%%/i18n.scm
98
%%DATADIR%%/im-custom.scm
63
%%DATADIR%%/im-custom.scm
99
%%DATADIR%%/im.scm
64
%%DATADIR%%/im.scm
Lines 148-157 Link Here
148
@dirrm lib/uim/plugin
113
@dirrm lib/uim/plugin
149
@dirrm lib/uim
114
@dirrm lib/uim
150
@dirrmtry share/applications
115
@dirrmtry share/applications
151
%%GNOME%%@dirrm %%DATADIR%%/helperdata
152
%%PORTDOCS%%@dirrm %%DOCSDIR_JA%%
116
%%PORTDOCS%%@dirrm %%DOCSDIR_JA%%
153
%%PORTDOCS%%@dirrm %%DOCSDIR%%
117
%%PORTDOCS%%@dirrm %%DOCSDIR%%
154
@dirrm %%DATADIR%%/pixmaps
118
@dirrm %%DATADIR%%/pixmaps
155
@dirrm %%DATADIR%%
119
@dirrm %%DATADIR%%
156
%%GTK%%@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules
157
%%GTK%%@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules

Return to bug 95785