View | Details | Raw Unified | Return to bug 205432 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 205432