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} |