Lines 1-731
Link Here
|
1 |
#-*- tab-width: 4; -*- |
|
|
2 |
# ex:ts=4 |
3 |
# |
4 |
# $FreeBSD$ |
5 |
# $NetBSD: $ |
6 |
# |
7 |
# Please view me with 4 column tabs! |
8 |
|
9 |
# ======================= USERS ================================= |
10 |
# |
11 |
# There are no significant user-definable settings in here. |
12 |
# This file is a framework to make it easier to create GNOME ports. |
13 |
# |
14 |
# ======================= /USERS ================================ |
15 |
|
16 |
.if !defined(_POSTMKINCLUDED) && !defined(Gnome_Pre_Include) |
17 |
|
18 |
# Please make sure all changes to this file are passed through the maintainer. |
19 |
# Do not commit them yourself (unless of course you're the Port's Wraith ;). |
20 |
Gnome_Include_MAINTAINER= gnome@FreeBSD.org |
21 |
Gnome_Pre_Include= bsd.gnome.mk |
22 |
|
23 |
# This section defines possible names of GNOME components and all information |
24 |
# necessary for ports to use those components. |
25 |
|
26 |
# Ports can use this as follows: |
27 |
# |
28 |
# USE_GNOME= glib20 introspection:build |
29 |
# |
30 |
# .include <bsd.port.mk> |
31 |
# |
32 |
# As a result proper LIB_DEPENDS/RUN_DEPENDS will be added and CONFIGURE_ENV |
33 |
# and MAKE_ENV defined. |
34 |
# |
35 |
# |
36 |
# GCONF_SCHEMAS - Set the following to list of all the gconf schema files |
37 |
# that your port installs. These schema files and |
38 |
# %gconf.xml files will be automatically added to |
39 |
# the ${PLIST}. For example, if your port has |
40 |
# "etc/gconf/schemas/(foo.schemas and bar.schemas)", |
41 |
# add the following to your Makefile: |
42 |
# "GCONF_SCHEMAS=foo.schemas bar.schemas". |
43 |
# |
44 |
# GLIB_SCHEMAS - Set the following to list of all gsettings schema files |
45 |
# (*.gschema.xml) that your ports installs. The |
46 |
# schema files will be automatically added to |
47 |
# the ${PLIST}. For example, if your port has |
48 |
# "share/glib-2.0/schemas/(foo.gschema.xml and bar.gschema.xml)", |
49 |
# add the following to your Makefile: |
50 |
# "GLIB_SCHEMAS=foo.gschema.xml bar.gschema.xml". |
51 |
# |
52 |
# INSTALLS_OMF - If set, bsd.gnome.mk will automatically scan pkg-plist |
53 |
# file and add apropriate @exec/@unexec directives for |
54 |
# each .omf file found to track OMF registration database. |
55 |
# |
56 |
# INSTALLS_ICONS - If a GTK+ port installs Freedesktop-style icons to |
57 |
# ${LOCALBASE}/share/icons, then you should use this |
58 |
# macro. Using this macro ensures that icons are cached |
59 |
# and will display correctly. This macro isn't needed |
60 |
# for QT based applications, which use a different method. |
61 |
# |
62 |
|
63 |
# non-version specific components |
64 |
_USE_GNOME_ALL= esound intlhack intltool introspection \ |
65 |
referencehack gnomemimedata \ |
66 |
gnomeprefix |
67 |
|
68 |
# GNOME 1 components |
69 |
_USE_GNOME_ALL+= gdkpixbuf glib12 gtk12 |
70 |
|
71 |
# GNOME 2 components |
72 |
_USE_GNOME_ALL+= atk atspi cairo gal2 \ |
73 |
gdkpixbuf2 gconf2 glib20 \ |
74 |
gnomedocutils gnomesharp20 \ |
75 |
gnomespeech gnomevfs2 gtk-update-icon-cache gtk20 gtkhtml3 gtksharp10 \ |
76 |
gtksharp20 gtksourceview gtksourceview2 gvfs libartlgpl2 libbonobo \ |
77 |
libbonoboui libgda4 libglade2 libgnome \ |
78 |
libgnomecanvas libgnomekbd libgnomeprint libgnomeprintui \ |
79 |
libgnomeui libgsf libgtkhtml libidl librsvg2 libwnck \ |
80 |
libxml2 libxslt \ |
81 |
orbit2 pango pangox-compat pygnome2 pygobject pygtk2 \ |
82 |
pygtksourceview vte |
83 |
|
84 |
# GNOME 3 components |
85 |
_USE_GNOME_ALL+=dconf evolutiondataserver3 gnomecontrolcenter3 gnomedesktop3 \ |
86 |
gnomemenus3 gsound gtk30 gtkhtml4 gtksourceview3 libgda5 \ |
87 |
libgda5-ui libwnck3 metacity nautilus3 py3gobject3 \ |
88 |
pygobject3 vte3 |
89 |
|
90 |
# C++ bindings |
91 |
_USE_GNOME_ALL+=atkmm cairomm gconfmm26 glibmm gtkmm20 gtkmm24 \ |
92 |
gtkmm30 gtksourceviewmm3 libgdamm libgdamm5 \ |
93 |
libgtksourceviewmm libxml++26 libsigc++12 libsigc++20 \ |
94 |
pangomm |
95 |
|
96 |
GNOME_MAKEFILEIN?= Makefile.in |
97 |
SCROLLKEEPER_DIR= /var/db/rarian |
98 |
|
99 |
referencehack_PRE_PATCH= ${FIND} ${WRKSRC} -name "Makefile.in" -type f | ${XARGS} ${REINPLACE_CMD} -e \ |
100 |
"s|test \"\$$\$$installfiles\" = '\$$(srcdir)/html/\*'|:|" |
101 |
|
102 |
GNOME_HTML_DIR?= ${PREFIX}/share/doc |
103 |
GCONF_CONFIG_OPTIONS?= merged |
104 |
GCONF_CONFIG_DIRECTORY?=etc/gconf/gconf.xml.defaults |
105 |
GCONF_CONFIG_SOURCE?=xml:${GCONF_CONFIG_OPTIONS}:${PREFIX}/${GCONF_CONFIG_DIRECTORY} |
106 |
GNOME_LOCALSTATEDIR?= ${PREFIX}/share |
107 |
gnomeprefix_CONFIGURE_ENV=GTKDOC="false" |
108 |
gnomeprefix_CONFIGURE_ARGS=--localstatedir=${GNOME_LOCALSTATEDIR} \ |
109 |
--with-html-dir=${GNOME_HTML_DIR} \ |
110 |
--disable-gtk-doc \ |
111 |
--with-gconf-source=${GCONF_CONFIG_SOURCE} |
112 |
|
113 |
atkmm_DETECT= ${LOCALBASE}/libdata/pkgconfig/atkmm-1.6.pc |
114 |
atkmm_LIB_DEPENDS= libatkmm-1.6.so:${PORTSDIR}/accessibility/atkmm |
115 |
atkmm_USE_GNOME_IMPL= glibmm atk |
116 |
|
117 |
libxml++26_DETECT= ${LOCALBASE}/libdata/pkgconfig/libxml++-2.6.pc |
118 |
libxml++26_LIB_DEPENDS= libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 |
119 |
libxml++26_USE_GNOME_IMPL= glibmm libxml2 |
120 |
|
121 |
cairo_DETECT= ${LOCALBASE}/libdata/pkgconfig/cairo.pc |
122 |
cairo_LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo |
123 |
|
124 |
cairomm_DETECT= ${LOCALBASE}/libdata/pkgconfig/cairomm-1.0.pc |
125 |
cairomm_LIB_DEPENDS= libcairomm-1.0.so:${PORTSDIR}/graphics/cairomm |
126 |
cairomm_USE_GNOME_IMPL= cairo libxml++26 |
127 |
|
128 |
gconfmm26_DETECT= ${LOCALBASE}/libdata/pkgconfig/gconfmm-2.6.pc |
129 |
gconfmm26_LIB_DEPENDS= libgconfmm-2.6.so:${PORTSDIR}/devel/gconfmm26 |
130 |
gconfmm26_USE_GNOME_IMPL= glibmm gconf2 |
131 |
|
132 |
glibmm_DETECT= ${LOCALBASE}/libdata/pkgconfig/glibmm-2.4.pc |
133 |
glibmm_LIB_DEPENDS= libglibmm-2.4.so:${PORTSDIR}/devel/glibmm |
134 |
glibmm_USE_GNOME_IMPL= libsigc++20 glib20 |
135 |
|
136 |
gsound_DETECT= ${LOCALBASE}/libdata/pkgconfig/gsound.pc |
137 |
gsound_BUILD_DEPENDS= gsound-play:${PORTSDIR}/audio/gsound |
138 |
gsound_LIB_DEPENDS= libgsound.so:${PORTSDIR}/audio/gsound |
139 |
gsound_RUN_DEPENDS= gsound-play:${PORTSDIR}/audio/gsound |
140 |
gsound_USE_GNOME_IMPL= glib20 |
141 |
|
142 |
gtkmm20_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtkmm-2.0.pc |
143 |
gtkmm20_LIB_DEPENDS= libgtkmm-2.0.so:${PORTSDIR}/x11-toolkits/gtkmm20 |
144 |
gtkmm20_USE_GNOME_IMPL= libsigc++12 gtk20 |
145 |
|
146 |
gtkmm24_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtkmm-2.4.pc |
147 |
gtkmm24_LIB_DEPENDS= libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24 |
148 |
gtkmm24_USE_GNOME_IMPL= glibmm cairomm atkmm pangomm gtk20 |
149 |
|
150 |
gtkmm30_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtkmm-3.0.pc |
151 |
gtkmm30_LIB_DEPENDS= libgtkmm-3.0.so:${PORTSDIR}/x11-toolkits/gtkmm30 |
152 |
gtkmm30_USE_GNOME_IMPL= glibmm cairomm atkmm pangomm gtk30 |
153 |
|
154 |
gtksourceviewmm3_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtksourceviewmm-3.0.pc |
155 |
gtksourceviewmm3_LIB_DEPENDS= libgtksourceviewmm-3.0.so:${PORTSDIR}/x11-toolkits/gtksourceviewmm3 |
156 |
gtksourceviewmm3_USE_GNOME_IMPL= gtkmm30 gtksourceview3 |
157 |
|
158 |
libgdamm_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgdamm-4.0.pc |
159 |
libgdamm_LIB_DEPENDS= libgdamm-4.0.so:${PORTSDIR}/databases/libgdamm |
160 |
libgdamm_USE_GNOME_IMPL=libgda4 glibmm |
161 |
|
162 |
libgdamm5_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgdamm-5.0.pc |
163 |
libgdamm5_LIB_DEPENDS= libgdamm-5.0.so:${PORTSDIR}/databases/libgdamm5 |
164 |
libgdamm5_USE_GNOME_IMPL= libgda5 glibmm |
165 |
|
166 |
libgtksourceviewmm_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtksourceviewmm-2.0.pc |
167 |
libgtksourceviewmm_LIB_DEPENDS= libgtksourceviewmm-2.0.so:${PORTSDIR}/x11-toolkits/libgtksourceviewmm |
168 |
libgtksourceviewmm_USE_GNOME_IMPL= gtksourceview2 gtkmm24 |
169 |
|
170 |
libsigc++12_DETECT= ${LOCALBASE}/libdata/pkgconfig/sigc++-1.2.pc |
171 |
libsigc++12_LIB_DEPENDS= libsigc-1.2.so:${PORTSDIR}/devel/libsigc++12 |
172 |
|
173 |
libsigc++20_DETECT= ${LOCALBASE}/libdata/pkgconfig/sigc++-2.0.pc |
174 |
libsigc++20_LIB_DEPENDS= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 |
175 |
|
176 |
pangomm_DETECT= ${LOCALBASE}/libdata/pkgconfig/pangomm-1.4.pc |
177 |
pangomm_LIB_DEPENDS= libpangomm-1.4.so:${PORTSDIR}/x11-toolkits/pangomm |
178 |
pangomm_USE_GNOME_IMPL= pango glibmm cairomm |
179 |
|
180 |
ESD_CONFIG?= ${LOCALBASE}/bin/esd-config |
181 |
esound_LIB_DEPENDS= libesd.so:${PORTSDIR}/audio/esound |
182 |
esound_CONFIGURE_ENV= ESD_CONFIG="${ESD_CONFIG}" |
183 |
esound_MAKE_ENV= ESD_CONFIG="${ESD_CONFIG}" |
184 |
esound_DETECT= ${ESD_CONFIG} |
185 |
|
186 |
GLIB_CONFIG?= ${LOCALBASE}/bin/glib-config |
187 |
glib12_LIB_DEPENDS= libglib.so:${PORTSDIR}/devel/glib12 |
188 |
glib12_CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" |
189 |
glib12_MAKE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" |
190 |
glib12_DETECT= ${GLIB_CONFIG} |
191 |
|
192 |
GTK_CONFIG?= ${LOCALBASE}/bin/gtk-config |
193 |
gtk12_LIB_DEPENDS= libgtk.so:${PORTSDIR}/x11-toolkits/gtk12 |
194 |
gtk12_CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}" |
195 |
gtk12_MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}" |
196 |
gtk12_DETECT= ${GTK_CONFIG} |
197 |
gtk12_USE_GNOME_IMPL= glib12 |
198 |
|
199 |
GDK_PIXBUF_CONFIG?= ${LOCALBASE}/bin/gdk-pixbuf-config |
200 |
gdkpixbuf_LIB_DEPENDS= libgdk_pixbuf.so:${PORTSDIR}/graphics/gdk-pixbuf |
201 |
gdkpixbuf_CONFIGURE_ENV=GDK_PIXBUF_CONFIG="${GDK_PIXBUF_CONFIG}" |
202 |
gdkpixbuf_MAKE_ENV= GDK_PIXBUF_CONFIG="${GDK_PIXBUF_CONFIG}" |
203 |
gdkpixbuf_DETECT= ${GDK_PIXBUF_CONFIG} |
204 |
gdkpixbuf_USE_GNOME_IMPL=gtk12 |
205 |
|
206 |
gnomemimedata_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-mime-data-2.0.pc |
207 |
gnomemimedata_BUILD_DEPENDS=${gnomemimedata_DETECT}:${PORTSDIR}/misc/gnome-mime-data |
208 |
gnomemimedata_RUN_DEPENDS=${gnomemimedata_DETECT}:${PORTSDIR}/misc/gnome-mime-data |
209 |
|
210 |
glib20_LIB_DEPENDS= libglib-2.0.so:${PORTSDIR}/devel/glib20 |
211 |
glib20_DETECT= ${LOCALBASE}/libdata/pkgconfig/glib-2.0.pc |
212 |
|
213 |
atk_LIB_DEPENDS= libatk-1.0.so:${PORTSDIR}/accessibility/atk |
214 |
atk_DETECT= ${LOCALBASE}/libdata/pkgconfig/atk.pc |
215 |
atk_USE_GNOME_IMPL= glib20 |
216 |
|
217 |
dconf_BUILD_DEPENDS= dconf:${PORTSDIR}/devel/dconf |
218 |
dconf_LIB_DEPENDS= libdconf.so:${PORTSDIR}/devel/dconf |
219 |
dconf_RUN_DEPENDS= dconf:${PORTSDIR}/devel/dconf |
220 |
dconf_DETECT= ${LOCALBASE}/libdata/pkgconfig/dconf.pc |
221 |
dconf_USE_GNOME_IMPL= glib20 |
222 |
|
223 |
pango_LIB_DEPENDS= libpango-1.0.so:${PORTSDIR}/x11-toolkits/pango |
224 |
pango_DETECT= ${LOCALBASE}/libdata/pkgconfig/pango.pc |
225 |
pango_USE_GNOME_IMPL= glib20 |
226 |
|
227 |
pangox-compat_LIB_DEPENDS= libpangox-1.0.so:${PORTSDIR}/x11-toolkits/pangox-compat |
228 |
pangox-compat_DETECT= ${LOCALBASE}/libdata/pkgconfig/pangox.pc |
229 |
pangox-compat_USE_GNOME_IMPL= glib20 pango |
230 |
|
231 |
gdkpixbuf2_LIB_DEPENDS= libgdk_pixbuf-2.0.so:${PORTSDIR}/graphics/gdk-pixbuf2 |
232 |
gdkpixbuf2_DETECT= ${LOCALBASE}/libdata/pkgconfig/gdk-pixbuf-2.0.pc |
233 |
gdkpixbuf2_USE_GNOME_IMPL=glib20 |
234 |
|
235 |
gtk-update-icon-cache_BUILD_DEPENDS= gtk-update-icon-cache:${PORTSDIR}/graphics/gtk-update-icon-cache |
236 |
gtk-update-icon-cache_RUN_DEPENDS= gtk-update-icon-cache:${PORTSDIR}/graphics/gtk-update-icon-cache |
237 |
gtk-update-icon-cache_DETECT= ${LOCALBASE}/bin/gtk-update-icon-cache |
238 |
gtk-update-icon-cache_USE_GNOME_IMPL= atk pango gdkpixbuf2 |
239 |
|
240 |
gtk20_LIB_DEPENDS= libgtk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 |
241 |
gtk20_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtk+-x11-2.0.pc |
242 |
gtk20_USE_GNOME_IMPL= atk pango |
243 |
GTK2_VERSION= 2.10.0 |
244 |
|
245 |
gtk30_LIB_DEPENDS= libgtk-3.so:${PORTSDIR}/x11-toolkits/gtk30 |
246 |
gtk30_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtk+-3.0.pc |
247 |
gtk30_USE_GNOME_IMPL= atk pango |
248 |
GTK3_VERSION= 3.0.0 |
249 |
|
250 |
libidl_LIB_DEPENDS= libIDL-2.so:${PORTSDIR}/devel/libIDL |
251 |
libidl_DETECT= ${LOCALBASE}/libdata/pkgconfig/libIDL-2.0.pc |
252 |
libidl_USE_GNOME_IMPL= glib20 |
253 |
|
254 |
orbit2_LIB_DEPENDS= libORBit-2.so:${PORTSDIR}/devel/ORBit2 |
255 |
orbit2_DETECT= ${LOCALBASE}/libdata/pkgconfig/ORBit-2.0.pc |
256 |
orbit2_USE_GNOME_IMPL= libidl |
257 |
|
258 |
libglade2_LIB_DEPENDS= libglade-2.0.so:${PORTSDIR}/devel/libglade2 |
259 |
libglade2_DETECT= ${LOCALBASE}/libdata/pkgconfig/libglade-2.0.pc |
260 |
libglade2_USE_GNOME_IMPL=libxml2 gtk20 |
261 |
|
262 |
libxml2_BUILD_DEPENDS= xml2-config:${PORTSDIR}/textproc/libxml2 |
263 |
libxml2_LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2 |
264 |
libxml2_RUN_DEPENDS= xml2-config:${PORTSDIR}/textproc/libxml2 |
265 |
libxml2_DETECT= ${LOCALBASE}/libdata/pkgconfig/libxml-2.0.pc |
266 |
|
267 |
libxslt_BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt |
268 |
libxslt_LIB_DEPENDS= libxslt.so:${PORTSDIR}/textproc/libxslt |
269 |
libxslt_RUN_DEPENDS= ${libxslt_BUILD_DEPENDS} |
270 |
libxslt_DETECT= ${LOCALBASE}/libdata/pkgconfig/libxslt.pc |
271 |
libxslt_USE_GNOME_IMPL= libxml2 |
272 |
|
273 |
libbonobo_LIB_DEPENDS= libbonobo-2.so:${PORTSDIR}/devel/libbonobo |
274 |
libbonobo_DETECT= ${LOCALBASE}/libdata/pkgconfig/libbonobo-2.0.pc |
275 |
libbonobo_USE_GNOME_IMPL=libxml2 orbit2 |
276 |
|
277 |
introspection_DETECT= ${LOCALBASE}/libdata/pkgconfig/gobject-introspection-1.0.pc |
278 |
introspection_BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection |
279 |
introspection_LIB_DEPENDS= libgirepository-1.0.so:${PORTSDIR}/devel/gobject-introspection |
280 |
introspection_RUN_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection |
281 |
introspection_USE_GNOME_IMPL= glib20 |
282 |
introspection_MAKE_ENV= GI_SCANNER_DISABLE_CACHE=1 XDG_CACHE_HOME=${WRKDIR} |
283 |
|
284 |
gconf2_LIB_DEPENDS= libgconf-2.so:${PORTSDIR}/devel/gconf2 |
285 |
gconf2_DETECT= ${LOCALBASE}/libdata/pkgconfig/gconf-2.0.pc |
286 |
gconf2_USE_GNOME_IMPL= orbit2 libxml2 gtk20 |
287 |
|
288 |
gnomevfs2_LIB_DEPENDS= libgnomevfs-2.so:${PORTSDIR}/devel/gnome-vfs |
289 |
gnomevfs2_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-vfs-2.0.pc |
290 |
gnomevfs2_USE_GNOME_IMPL=gconf2 gnomemimedata |
291 |
|
292 |
libgnomecanvas_LIB_DEPENDS= libgnomecanvas-2.so:${PORTSDIR}/graphics/libgnomecanvas |
293 |
libgnomecanvas_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgnomecanvas-2.0.pc |
294 |
libgnomecanvas_USE_GNOME_IMPL= libglade2 libartlgpl2 |
295 |
|
296 |
libartlgpl2_LIB_DEPENDS= libart_lgpl_2.so:${PORTSDIR}/graphics/libart_lgpl |
297 |
libartlgpl2_DETECT= ${LOCALBASE}/libdata/pkgconfig/libart-2.0.pc |
298 |
|
299 |
libgnomeprint_LIB_DEPENDS= libgnomeprint-2-2.so:${PORTSDIR}/print/libgnomeprint |
300 |
libgnomeprint_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgnomeprint-2.2.pc |
301 |
libgnomeprint_USE_GNOME_IMPL= libbonobo libartlgpl2 gtk20 |
302 |
|
303 |
libgnomeprintui_LIB_DEPENDS= libgnomeprintui-2-2.so:${PORTSDIR}/x11-toolkits/libgnomeprintui |
304 |
libgnomeprintui_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgnomeprintui-2.2.pc |
305 |
libgnomeprintui_USE_GNOME_IMPL= libgnomeprint libgnomecanvas |
306 |
|
307 |
libgnome_LIB_DEPENDS= libgnome-2.so:${PORTSDIR}/x11/libgnome |
308 |
libgnome_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgnome-2.0.pc |
309 |
libgnome_USE_GNOME_IMPL=gnomevfs2 esound libbonobo |
310 |
|
311 |
libbonoboui_LIB_DEPENDS= libbonoboui-2.so:${PORTSDIR}/x11-toolkits/libbonoboui |
312 |
libbonoboui_DETECT= ${LOCALBASE}/libdata/pkgconfig/libbonoboui-2.0.pc |
313 |
libbonoboui_USE_GNOME_IMPL= libgnomecanvas libgnome |
314 |
|
315 |
libgnomeui_LIB_DEPENDS= libgnomeui-2.so:${PORTSDIR}/x11-toolkits/libgnomeui |
316 |
libgnomeui_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgnomeui-2.0.pc |
317 |
libgnomeui_USE_GNOME_IMPL= libbonoboui |
318 |
|
319 |
atspi_LIB_DEPENDS= libspi.so:${PORTSDIR}/accessibility/at-spi |
320 |
atspi_DETECT= ${LOCALBASE}/libdata/pkgconfig/cspi-1.0.pc |
321 |
atspi_USE_GNOME_IMPL= gtk20 libbonobo |
322 |
|
323 |
libgtkhtml_LIB_DEPENDS= libgtkhtml-2.so:${PORTSDIR}/www/libgtkhtml |
324 |
libgtkhtml_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgtkhtml-2.0.pc |
325 |
libgtkhtml_USE_GNOME_IMPL=libxslt gnomevfs2 |
326 |
|
327 |
gnomedesktop3_LIB_DEPENDS= libgnome-desktop-3.so:${PORTSDIR}/x11/gnome-desktop |
328 |
gnomedesktop3_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-desktop-3.0.pc |
329 |
gnomedesktop3_USE_GNOME_IMPL= gtk30 |
330 |
|
331 |
libwnck_LIB_DEPENDS= libwnck-1.so:${PORTSDIR}/x11-toolkits/libwnck |
332 |
libwnck_DETECT= ${LOCALBASE}/libdata/pkgconfig/libwnck-1.0.pc |
333 |
libwnck_USE_GNOME_IMPL= gtk20 |
334 |
|
335 |
libwnck3_LIB_DEPENDS= libwnck-3.so:${PORTSDIR}/x11-toolkits/libwnck3 |
336 |
libwnck3_DETECT= ${LOCALBASE}/libdata/pkgconfig/libwnck-3.0.pc |
337 |
libwnck3_USE_GNOME_IMPL=gtk30 |
338 |
|
339 |
vte_LIB_DEPENDS= libvte.so:${PORTSDIR}/x11-toolkits/vte |
340 |
vte_DETECT= ${LOCALBASE}/libdata/pkgconfig/vte.pc |
341 |
vte_USE_GNOME_IMPL= gtk20 |
342 |
|
343 |
vte3_LIB_DEPENDS= libvte-2.91.so:${PORTSDIR}/x11-toolkits/vte3 |
344 |
vte3_DETECT= ${LOCALBASE}/libdata/pkgconfig/vte-2.91.pc |
345 |
vte3_USE_GNOME_IMPL= gtk30 |
346 |
|
347 |
librsvg2_LIB_DEPENDS= librsvg-2.so:${PORTSDIR}/graphics/librsvg2 |
348 |
librsvg2_DETECT= ${LOCALBASE}/libdata/pkgconfig/librsvg-2.0.pc |
349 |
librsvg2_USE_GNOME_IMPL=libgsf gdkpixbuf2 pango |
350 |
|
351 |
nautilus3_LIB_DEPENDS= libnautilus-extension.so:${PORTSDIR}/x11-fm/nautilus |
352 |
nautilus3_DETECT= ${LOCALBASE}/share/gir-1.0/Nautilus-3.0.gir |
353 |
nautilus3_USE_GNOME_IMPL=gnomedesktop3 gvfs libxml2 |
354 |
|
355 |
metacity_LIB_DEPENDS= libmetacity-private.so:${PORTSDIR}/x11-wm/metacity |
356 |
metacity_DETECT= ${LOCALBASE}/libdata/pkgconfig/libmetacity-private.pc |
357 |
|
358 |
gal2_LIB_DEPENDS= libgal-2.4.so:${PORTSDIR}/x11-toolkits/gal2 |
359 |
gal2_DETECT= ${LOCALBASE}/libdata/pkgconfig/gal-2.4.pc |
360 |
gal2_USE_GNOME_IMPL=gnomeui libgnomeprintui |
361 |
|
362 |
gnomecontrolcenter3_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-keybindings.pc |
363 |
gnomecontrolcenter3_BUILD_DEPENDS= ${gnomecontrolcenter3_DETECT}:${PORTSDIR}/sysutils/gnome-control-center |
364 |
gnomecontrolcenter3_RUN_DEPENDS= ${gnomecontrolcenter3_DETECT}:${PORTSDIR}/sysutils/gnome-control-center |
365 |
gnomecontrolcenter3_USE_GNOME_IMPL= gnomedesktop3 |
366 |
|
367 |
libgda4_LIB_DEPENDS= libgda-4.0.so:${PORTSDIR}/databases/libgda4 |
368 |
libgda4_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgda-4.0.pc |
369 |
libgda4_USE_GNOME_IMPL= glib20 libxslt |
370 |
|
371 |
libgda5_LIB_DEPENDS= libgda-5.0.so:${PORTSDIR}/databases/libgda5 |
372 |
libgda5_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgda-5.0.pc |
373 |
libgda5_USE_GNOME_IMPL= glib20 libxslt |
374 |
|
375 |
libgda5-ui_LIB_DEPENDS= libgda-ui-5.0.so:${PORTSDIR}/databases/libgda5-ui |
376 |
libgda5-ui_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgda-ui-5.0.pc |
377 |
libgda5-ui_USE_GNOME_IMPL=glib20 libxslt libgda5 |
378 |
|
379 |
gtksourceview_LIB_DEPENDS= libgtksourceview-1.0.so:${PORTSDIR}/x11-toolkits/gtksourceview |
380 |
gtksourceview_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtksourceview-1.0.pc |
381 |
gtksourceview_USE_GNOME_IMPL=libgnome libgnomeprintui |
382 |
|
383 |
gtksourceview2_LIB_DEPENDS= libgtksourceview-2.0.so:${PORTSDIR}/x11-toolkits/gtksourceview2 |
384 |
gtksourceview2_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtksourceview-2.0.pc |
385 |
gtksourceview2_USE_GNOME_IMPL=gtk20 libxml2 |
386 |
|
387 |
gtksourceview3_LIB_DEPENDS= libgtksourceview-3.0.so:${PORTSDIR}/x11-toolkits/gtksourceview3 |
388 |
gtksourceview3_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtksoureview-3.0.pc |
389 |
gtksourceview3_USE_GNOME_IMPL=gtk30 libxml2 |
390 |
|
391 |
libgsf_LIB_DEPENDS= libgsf-1.so:${PORTSDIR}/devel/libgsf |
392 |
libgsf_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgsf-1.pc |
393 |
libgsf_USE_GNOME_IMPL= glib20 libxml2 |
394 |
|
395 |
pygobject_DETECT= ${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc |
396 |
pygobject_BUILD_DEPENDS= pygobject-codegen-2.0:${PORTSDIR}/devel/py-gobject |
397 |
pygobject_RUN_DEPENDS= pygobject-codegen-2.0:${PORTSDIR}/devel/py-gobject |
398 |
pygobject_USE_GNOME_IMPL= glib20 |
399 |
|
400 |
py3gobject3_DETECT= ${LOCALBASE}/share/py3gobject3/.keep |
401 |
py3gobject3_BUILD_DEPENDS= py3?-gobject3>=0:${PORTSDIR}/devel/py3-gobject3 |
402 |
py3gobject3_RUN_DEPENDS= py3?-gobject3>=0:${PORTSDIR}/devel/py3-gobject3 |
403 |
py3gobject3_USE_GNOME_IMPL= glib20 |
404 |
|
405 |
pygobject3_DETECT= ${LOCALBASE}/share/pygobject3/.keep |
406 |
pygobject3_BUILD_DEPENDS= py2?-gobject3>=0:${PORTSDIR}/devel/py-gobject3 |
407 |
pygobject3_RUN_DEPENDS= py2?-gobject3>=0:${PORTSDIR}/devel/py-gobject3 |
408 |
pygobject3_USE_GNOME_IMPL= glib20 |
409 |
|
410 |
pygtk2_DETECT= ${LOCALBASE}/libdata/pkgconfig/pygtk-2.0.pc |
411 |
pygtk2_BUILD_DEPENDS= ${pygtk2_DETECT}:${PORTSDIR}/x11-toolkits/py-gtk2 |
412 |
pygtk2_RUN_DEPENDS= ${pygtk2_DETECT}:${PORTSDIR}/x11-toolkits/py-gtk2 |
413 |
pygtk2_USE_GNOME_IMPL= libglade2 pygobject |
414 |
|
415 |
pygnome2_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-python-2.0.pc |
416 |
pygnome2_BUILD_DEPENDS= ${pygnome2_DETECT}:${PORTSDIR}/x11-toolkits/py-gnome2 |
417 |
pygnome2_RUN_DEPENDS= ${pygnome2_DETECT}:${PORTSDIR}/x11-toolkits/py-gnome2 |
418 |
pygnome2_USE_GNOME_IMPL=libgnomeui pygtk2 |
419 |
|
420 |
intltool_DETECT= ${LOCALBASE}/bin/intltool-extract |
421 |
intltool_BUILD_DEPENDS= ${intltool_DETECT}:${PORTSDIR}/textproc/intltool |
422 |
|
423 |
intlhack_PRE_PATCH= ${FIND} ${WRKSRC} -name "intltool-merge.in" | ${XARGS} ${REINPLACE_CMD} \ |
424 |
's|mkdir $$lang or|mkdir $$lang, 0777 or| ; \ |
425 |
s|^push @INC, "/.*|push @INC, "${LOCALBASE}/share/intltool";| ; \ |
426 |
s|/usr/bin/iconv|${ICONV_CMD}|g ; \ |
427 |
s|unpack *[(]'"'"'U\*'"'"'|unpack ('"'"'C*'"'"'|' ; \ |
428 |
${FIND} ${WRKSRC} -name configure | ${XARGS} ${REINPLACE_CMD} \ |
429 |
's/DATADIRNAME=lib/DATADIRNAME=share/' |
430 |
intlhack_USE_GNOME_IMPL=intltool |
431 |
|
432 |
gtkhtml3_LIB_DEPENDS= libgtkhtml-3.14.so:${PORTSDIR}/www/gtkhtml3 |
433 |
gtkhtml3_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgtkhtml-3.14.pc |
434 |
gtkhtml3_USE_GNOME_IMPL=libglade2 |
435 |
|
436 |
gtkhtml4_LIB_DEPENDS= libgtkhtml-4.0.so:${PORTSDIR}/www/gtkhtml4 |
437 |
gtkhtml4_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgtkhtml-4.0.pc |
438 |
gtkhtml4_USE_GNOME_IMPL=gtk30 libxml2 |
439 |
|
440 |
gnomespeech_LIB_DEPENDS=libgnomespeech.so:${PORTSDIR}/accessibility/gnome-speech |
441 |
gnomespeech_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-speech-1.0.pc |
442 |
gnomespeech_USE_GNOME_IMPL=libbonobo |
443 |
|
444 |
evolutiondataserver3_LIB_DEPENDS= libedataserver-1.2.so:${PORTSDIR}/databases/evolution-data-server |
445 |
evolutiondataserver3_DETECT= ${LOCALBASE}/libdata/pkgconfig/libedataserverui-3.0.pc |
446 |
evolutiondataserver3_USE_GNOME_IMPL= libxml2 gtk30 |
447 |
|
448 |
gnomemenus3_BUILD_DEPENDS= gnome-menus>=3.2.0:${PORTSDIR}/x11/gnome-menus |
449 |
gnomemenus3_RUN_DEPENDS= gnome-menus>=3.2.0:${PORTSDIR}/x11/gnome-menus |
450 |
gnomemenus3_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgnome-menu-3.0.pc |
451 |
gnomemenus3_USE_GNOME_IMPL= glib20 |
452 |
|
453 |
gnomedocutils_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-doc-utils.pc |
454 |
gnomedocutils_BUILD_DEPENDS= ${gnomedocutils_DETECT}:${PORTSDIR}/textproc/gnome-doc-utils |
455 |
gnomedocutils_RUN_DEPENDS= ${gnomedocutils_DETECT}:${PORTSDIR}/textproc/gnome-doc-utils |
456 |
gnomedocutils_USE_GNOME_IMPL= libxslt |
457 |
|
458 |
gtksharp10_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtk-sharp.pc |
459 |
gtksharp10_BUILD_DEPENDS= ${gtksharp10_DETECT}:${PORTSDIR}/x11-toolkits/gtk-sharp10 |
460 |
gtksharp10_RUN_DEPENDS= ${gtksharp10_DETECT}:${PORTSDIR}/x11-toolkits/gtk-sharp10 |
461 |
gtksharp10_USE_GNOME_IMPL= gtk20 |
462 |
|
463 |
gtksharp20_DETECT= ${LOCALBASE}/libdata/pkgconfig/gtk-sharp-2.0.pc |
464 |
gtksharp20_BUILD_DEPENDS= ${gtksharp20_DETECT}:${PORTSDIR}/x11-toolkits/gtk-sharp20 |
465 |
gtksharp20_RUN_DEPENDS= ${gtksharp20_DETECT}:${PORTSDIR}/x11-toolkits/gtk-sharp20 |
466 |
gtksharp20_USE_GNOME_IMPL= gtk20 |
467 |
|
468 |
gnomesharp20_DETECT= ${LOCALBASE}/libdata/pkgconfig/gnome-sharp-2.0.pc |
469 |
gnomesharp20_BUILD_DEPENDS= ${gnomesharp20_DETECT}:${PORTSDIR}/x11-toolkits/gnome-sharp20 |
470 |
gnomesharp20_RUN_DEPENDS= ${gnomesharp20_DETECT}:${PORTSDIR}/x11-toolkits/gnome-sharp20 |
471 |
gnomesharp20_USE_GNOME_IMPL= gnomevfs2 gtkhtml3 gtksharp20 librsvg2 vte |
472 |
|
473 |
libgnomekbd_DETECT= ${LOCALBASE}/libdata/pkgconfig/libgnomekbd.pc |
474 |
libgnomekbd_LIB_DEPENDS= libgnomekbd.so:${PORTSDIR}/x11/libgnomekbd |
475 |
libgnomekbd_USE_GNOME_IMPL= gtk30 libxml2 |
476 |
|
477 |
pygtksourceview_DETECT= ${LOCALBASE}/libdata/pkgconfig/pygtksourceview-2.0.pc |
478 |
pygtksourceview_BUILD_DEPENDS= ${pygtksourceview_DETECT}:${PORTSDIR}/x11-toolkits/py-gtksourceview |
479 |
pygtksourceview_RUN_DEPENDS= ${pygtksourceview_DETECT}:${PORTSDIR}/x11-toolkits/py-gtksourceview |
480 |
pygtksourceview_USE_GNOME_IMPL= gtksourceview2 pygtk2 |
481 |
|
482 |
gvfs_DETECT= ${LOCALBASE}/lib/gvfs/libgvfscommon.so |
483 |
gvfs_BUILD_DEPENDS= gvfs>=0:${PORTSDIR}/devel/gvfs |
484 |
gvfs_RUN_DEPENDS= gvfs>=0:${PORTSDIR}/devel/gvfs |
485 |
gvfs_USE_GNOME_IMPL= glib20 |
486 |
|
487 |
.if defined(INSTALLS_ICONS) |
488 |
USE_GNOME+= gtk-update-icon-cache |
489 |
.endif |
490 |
|
491 |
# End component definition section |
492 |
|
493 |
# This section defines tests for optional software. These work off four |
494 |
# types of variables: WANT_GNOME, WITH_GNOME, HAVE_GNOME and USE_GNOME. |
495 |
# The logic of this is that a port can WANT support for a package; a user |
496 |
# specifies if they want ports compiled WITH certain features; this section |
497 |
# tests if we HAVE these features; and the port is then free to USE them. |
498 |
|
499 |
# The logic of this section is like this: |
500 |
# |
501 |
# .if defined(WANT_GNOME) && !defined(WITHOUT_GNOME) |
502 |
# .for foo in ALL_GNOME_COMPONENTS |
503 |
# .if defined(WITH_GNOME) |
504 |
# HAVE_GNOME += foo |
505 |
# .elif (foo installed) |
506 |
# HAVE_GNOME += foo |
507 |
# .else |
508 |
# Print option message |
509 |
# .endif |
510 |
# .endfor |
511 |
# .endif |
512 |
# |
513 |
# Although it appears a little more convoluted in the tests. |
514 |
|
515 |
# Ports can make use of this like so: |
516 |
# |
517 |
# WANT_GNOME= yes |
518 |
# |
519 |
# .include <bsd.port.pre.mk> |
520 |
# |
521 |
# .if ${HAVE_GNOME:Mfoo}!="" |
522 |
# ... Do some things ... |
523 |
# USE_GNOME= foo |
524 |
# .else |
525 |
# ... Do some other things ... |
526 |
# .endif |
527 |
|
528 |
# We also check each component to see if it has a desktop requirement. If |
529 |
# it does, and its requirement disagrees with the user's chosen desktop, |
530 |
# do not add the component to the HAVE_GNOME list. |
531 |
|
532 |
_USE_GNOME_SAVED:=${USE_GNOME} |
533 |
HAVE_GNOME?= |
534 |
.if (defined(WANT_GNOME) && !defined(WITHOUT_GNOME)) |
535 |
. for component in ${_USE_GNOME_ALL} |
536 |
. if exists(${${component}_DETECT}) |
537 |
HAVE_GNOME+= ${component} |
538 |
. elif defined(WITH_GNOME) |
539 |
. if ${WITH_GNOME}=="yes" || ${WITH_GNOME:M${component}}!="" \ |
540 |
|| ${WITH_GNOME}=="1" |
541 |
HAVE_GNOME+= ${component} |
542 |
. endif |
543 |
. endif |
544 |
. endfor |
545 |
.elif defined(WITHOUT_GNOME) |
546 |
. if ${WITHOUT_GNOME}!="yes" && ${WITHOUT_GNOME}!="1" |
547 |
. for component in ${_USE_GNOME_ALL} |
548 |
. if ${WITHOUT_GNOME:M${component}}=="" |
549 |
. if exists(${${component}_DETECT}) |
550 |
HAVE_GNOME+= ${component} |
551 |
. endif |
552 |
. endif |
553 |
. endfor |
554 |
. endif |
555 |
.endif |
556 |
|
557 |
.endif |
558 |
# End of optional part. |
559 |
|
560 |
.if defined(_POSTMKINCLUDED) && !defined(Gnome_Post_Include) |
561 |
|
562 |
Gnome_Post_Include= bsd.gnome.mk |
563 |
|
564 |
.if !defined(Gnome_Pre_Include) |
565 |
.error The Pre include part of bsd.gnome.mk part is not included. Did you forget WANT_GNOME=yes before bsd.port.pre.mk? |
566 |
.endif |
567 |
|
568 |
.if defined(USE_GNOME) |
569 |
# First of all expand all USE_GNOME_IMPL recursively |
570 |
. for component in ${_USE_GNOME_ALL} |
571 |
. for subcomponent in ${${component}_USE_GNOME_IMPL} |
572 |
${component}_USE_GNOME_IMPL+=${${subcomponent}_USE_GNOME_IMPL} |
573 |
. endfor |
574 |
. endfor |
575 |
|
576 |
# Then use already expanded USE_GNOME_IMPL to expand USE_GNOME. |
577 |
# Also, check to see if each component has a desktop requirement. If it does, |
578 |
# and if the user's chosen desktop is not of the same version, mark the |
579 |
# port as IGNORE. |
580 |
. for component in ${USE_GNOME:C/^([^:]+).*/\1/} |
581 |
. if ${_USE_GNOME_ALL:M${component}}=="" |
582 |
IGNORE= cannot install: Unknown component ${component} |
583 |
. endif |
584 |
_USE_GNOME+= ${${component}_USE_GNOME_IMPL} ${component} |
585 |
. endfor |
586 |
|
587 |
# Setup the GTK+ API version for pixbuf loaders, input method modules, |
588 |
# and theme engines. |
589 |
PLIST_SUB+= GTK2_VERSION="${GTK2_VERSION}" \ |
590 |
GTK3_VERSION="${GTK3_VERSION}" |
591 |
|
592 |
# Set USE_CSTD for all ports that depend on glib12 |
593 |
.if defined(_USE_GNOME) && !empty(_USE_GNOME:Mglib12) |
594 |
USE_CSTD= gnu89 |
595 |
.endif |
596 |
|
597 |
.if defined(_USE_GNOME) && empty(_USE_GNOME:Mglib20:u) && defined(GLIB_SCHEMAS) |
598 |
IGNORE= GLIB_SCHEMAS is set, but needs USE_GNOME=glib20 to work |
599 |
.endif |
600 |
|
601 |
.if defined(_USE_GNOME) && empty(_USE_GNOME:Mgconf2:u) && defined(GCONF_SCHEMAS) |
602 |
IGNORE= GCONF_SCHEMAS is set, but needs USE_GNOME=gconf2 to work |
603 |
.endif |
604 |
|
605 |
# Then traverse through all components, check which of them |
606 |
# exist in ${_USE_GNOME} and set variables accordingly |
607 |
.ifdef _USE_GNOME |
608 |
|
609 |
. for component in ${_USE_GNOME:O:u} |
610 |
. if defined(${component}_PATCH_DEPENDS) |
611 |
PATCH_DEPENDS+= ${${component}_PATCH_DEPENDS} |
612 |
. endif |
613 |
|
614 |
. if defined(${component}_DETECT) |
615 |
. if ${USE_GNOME:M${component}\:build}!="" |
616 |
BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} |
617 |
. elif ${USE_GNOME:M${component}\:run}!="" |
618 |
RUN_DEPENDS+= ${${component}_RUN_DEPENDS} |
619 |
. else |
620 |
. if defined(${component}_LIB_DEPENDS) |
621 |
LIB_DEPENDS+= ${${component}_LIB_DEPENDS} |
622 |
. else |
623 |
BUILD_DEPENDS+= ${${component}_BUILD_DEPENDS} |
624 |
RUN_DEPENDS+= ${${component}_RUN_DEPENDS} |
625 |
. endif |
626 |
. endif |
627 |
. endif |
628 |
|
629 |
. if defined(${component}_CONFIGURE_ARGS) |
630 |
CONFIGURE_ARGS+=${${component}_CONFIGURE_ARGS} |
631 |
. endif |
632 |
|
633 |
. if defined(${component}_CONFIGURE_ENV) |
634 |
CONFIGURE_ENV+= ${${component}_CONFIGURE_ENV} |
635 |
. endif |
636 |
|
637 |
. if defined(${component}_MAKE_ENV) |
638 |
MAKE_ENV+= ${${component}_MAKE_ENV} |
639 |
. endif |
640 |
|
641 |
. if !defined(CONFIGURE_TARGET) && defined(${component}_CONFIGURE_TARGET) |
642 |
CONFIGURE_TARGET= ${${component}_CONFIGURE_TARGET} |
643 |
. endif |
644 |
|
645 |
. if defined(${component}_PRE_PATCH) |
646 |
GNOME_PRE_PATCH+= ; ${${component}_PRE_PATCH} |
647 |
. endif |
648 |
. endfor |
649 |
.endif |
650 |
|
651 |
. if defined(GCONF_SCHEMAS) |
652 |
MAKE_ENV+= GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
653 |
. endif |
654 |
.endif |
655 |
|
656 |
.if defined(GNOME_PRE_PATCH) |
657 |
|
658 |
pre-patch: gnome-pre-patch |
659 |
|
660 |
gnome-pre-patch: |
661 |
@${GNOME_PRE_PATCH:C/^;//1} |
662 |
.endif |
663 |
|
664 |
.if defined(WANT_GNOME) |
665 |
USE_GNOME?= |
666 |
. if ${_USE_GNOME_SAVED}==${USE_GNOME} |
667 |
PLIST_SUB+= GNOME:="@comment " NOGNOME:="" |
668 |
. else |
669 |
PLIST_SUB+= GNOME:="" NOGNOME:="@comment " |
670 |
. endif |
671 |
.endif |
672 |
|
673 |
.if defined(USE_GNOME_SUBR) |
674 |
GNOME_SUBR= ${LOCALBASE}/etc/gnome.subr |
675 |
RUN_DEPENDS+= ${GNOME_SUBR}:${PORTSDIR}/sysutils/gnome_subr |
676 |
SUB_LIST+= GNOME_SUBR=${GNOME_SUBR} |
677 |
.endif |
678 |
|
679 |
.if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF) || defined(INSTALLS_ICONS) \ |
680 |
|| defined(GLIB_SCHEMAS) |
681 |
post-install: gnome-post-install |
682 |
|
683 |
gnome-post-install: |
684 |
. if defined(GCONF_SCHEMAS) |
685 |
@for i in ${GCONF_SCHEMAS}; do \ |
686 |
${ECHO_CMD} "@postunexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-uninstall-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ |
687 |
>> ${TMPPLIST}; \ |
688 |
${ECHO_CMD} "etc/gconf/schemas/$${i}" >> ${TMPPLIST}; \ |
689 |
${ECHO_CMD} "@postexec env GCONF_CONFIG_SOURCE=xml:${GCONF_CONFIG_OPTIONS}:%D/${GCONF_CONFIG_DIRECTORY} HOME=${WRKDIR} gconftool-2 --makefile-install-rule %D/etc/gconf/schemas/$${i} > /dev/null || /usr/bin/true" \ |
690 |
>> ${TMPPLIST}; \ |
691 |
done |
692 |
. endif |
693 |
|
694 |
# we put the @unexec behind the plist schema entry, because it compiles files |
695 |
# in the directory. So we should remove the port file first before recompiling. |
696 |
. if defined(GLIB_SCHEMAS) |
697 |
@for i in ${GLIB_SCHEMAS}; do \ |
698 |
${ECHO_CMD} "share/glib-2.0/schemas/$${i}" >> ${TMPPLIST}; \ |
699 |
done |
700 |
@${ECHO_CMD} "@glib-schemas" >> ${TMPPLIST}; |
701 |
.endif |
702 |
|
703 |
. if defined(INSTALLS_OMF) |
704 |
@for i in `${GREP} "\.omf$$" ${TMPPLIST}`; do \ |
705 |
${ECHO_CMD} "@postexec scrollkeeper-install -q %D/$${i} 2>/dev/null || /usr/bin/true" \ |
706 |
>> ${TMPPLIST}; \ |
707 |
${ECHO_CMD} "@postunexec scrollkeeper-uninstall -q %D/$${i} 2>/dev/null || /usr/bin/true" \ |
708 |
>> ${TMPPLIST}; \ |
709 |
done |
710 |
. endif |
711 |
|
712 |
. if defined(INSTALLS_ICONS) |
713 |
@${RM} -f ${TMPPLIST}.icons1 |
714 |
@for i in `${GREP} "^share/icons/.*/" ${TMPPLIST} | ${CUT} -d / -f 1-3 | ${SORT} -u`; do \ |
715 |
${ECHO_CMD} "@rmtry $${i}/icon-theme.cache" \ |
716 |
>> ${TMPPLIST}.icons1; \ |
717 |
${ECHO_CMD} "@postexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \ |
718 |
>> ${TMPPLIST}; \ |
719 |
${ECHO_CMD} "@postunexec ${LOCALBASE}/bin/gtk-update-icon-cache -q -f %D/$${i} 2>/dev/null || /usr/bin/true" \ |
720 |
>> ${TMPPLIST}; \ |
721 |
done |
722 |
@if test -f ${TMPPLIST}.icons1; then \ |
723 |
${CAT} ${TMPPLIST}.icons1 ${TMPPLIST} > ${TMPPLIST}.icons2; \ |
724 |
${RM} -f ${TMPPLIST}.icons1; \ |
725 |
${MV} -f ${TMPPLIST}.icons2 ${TMPPLIST}; \ |
726 |
fi |
727 |
. endif |
728 |
.endif |
729 |
|
730 |
.endif |
731 |
# End of use part. |