bump version
[buildroot.git] / package / matchbox / matchbox.mk
blob316559ff72a9af89a436cd354c302fc0a50dd28d
1 #############################################################
3 # MatchBox WM
5 #############################################################
6 MATCHBOX_SITE:=http://matchbox-project.org/sources/
7 MATCHBOX_CAT:=$(BZCAT)
9 MATCHBOX_LIB_VERSION:=1.9
10 MATCHBOX_LIB_SOURCE:=libmatchbox-$(MATCHBOX_LIB_VERSION).tar.bz2
11 MATCHBOX_LIB_DIR:=$(BUILD_DIR)/libmatchbox-$(MATCHBOX_LIB_VERSION)
13 MATCHBOX_SNOTIFY_VERSION:=0.9
14 MATCHBOX_SNOTIFY_SOURCE:=startup-notification-$(MATCHBOX_SNOTIFY_VERSION).tar.bz2
15 MATCHBOX_SNOTIFY_DIR:=$(BUILD_DIR)/startup-notification-$(MATCHBOX_SNOTIFY_VERSION)
16 #MATCHBOX_SNOTIFY_SITE:=http://www.freedesktop.org/software/startup-notification/releases
17 MATCHBOX_SNOTIFY_SITE:=http://ftp.gnome.org/pub/GNOME/sources/startup-notification/$(MATCHBOX_SNOTIFY_VERSION)
18 MATCHBOX_SNOTIFY_CAT:=$(BZCAT)
19 MATCHBOX_SNOTIFY_BIN:=libstartup-notification-1.so
21 MATCHBOX_WM_MAJORVER:=1.2
22 MATCHBOX_WM_MINORVER:=
23 #MATCHBOX_WM_VERSION:=$(MATCHBOX_WM_MAJORVER).$(MATCHBOX_WM_MINORVER)
24 MATCHBOX_WM_VERSION:=$(MATCHBOX_WM_MAJORVER)
25 MATCHBOX_WM_BIN:=matchbox-window-manager
26 MATCHBOX_WM_SOURCE:=$(MATCHBOX_WM_BIN)-$(MATCHBOX_WM_VERSION).tar.bz2
27 MATCHBOX_WM_DIR:=$(BUILD_DIR)/$(MATCHBOX_WM_BIN)-$(MATCHBOX_WM_VERSION)
29 MATCHBOX_CN_MAJORVER:=0.9
30 MATCHBOX_CN_MINORVER:=1
31 MATCHBOX_CN_VERSION:=$(MATCHBOX_CN_MAJORVER).$(MATCHBOX_CN_MINORVER)
32 MATCHBOX_CN_BIN:=matchbox-common
33 MATCHBOX_CN_SOURCE:=$(MATCHBOX_CN_BIN)-$(MATCHBOX_CN_VERSION).tar.bz2
34 MATCHBOX_CN_DIR:=$(BUILD_DIR)/$(MATCHBOX_CN_BIN)-$(MATCHBOX_CN_VERSION)
36 MATCHBOX_PL_MAJORVER:=0.9
37 MATCHBOX_PL_MINORVER:=3
38 MATCHBOX_PL_VERSION:=$(MATCHBOX_PL_MAJORVER).$(MATCHBOX_PL_MINORVER)
39 MATCHBOX_PL_BIN:=matchbox-panel
40 MATCHBOX_PL_SOURCE:=$(MATCHBOX_PL_BIN)-$(MATCHBOX_PL_VERSION).tar.bz2
41 MATCHBOX_PL_DIR:=$(BUILD_DIR)/$(MATCHBOX_PL_BIN)-$(MATCHBOX_PL_VERSION)
43 MATCHBOX_SM_MAJORVER:=0.1
44 MATCHBOX_SM_MINORVER:=
45 MATCHBOX_SM_VERSION:=$(MATCHBOX_SM_MAJORVER)$(MATCHBOX_SM_MINORVER)
46 MATCHBOX_SM_BIN:=mb-applet-startup-monitor
47 MATCHBOX_SM_SOURCE:=$(MATCHBOX_SM_BIN)-$(MATCHBOX_SM_VERSION).tar.bz2
48 MATCHBOX_SM_DIR:=$(BUILD_DIR)/$(MATCHBOX_SM_BIN)-$(MATCHBOX_SM_VERSION)
50 MATCHBOX_DP_MAJORVER:=0.9
51 MATCHBOX_DP_MINORVER:=1
52 MATCHBOX_DP_VERSION:=$(MATCHBOX_DP_MAJORVER).$(MATCHBOX_DP_MINORVER)
53 MATCHBOX_DP_BIN:=matchbox-desktop
54 MATCHBOX_DP_SOURCE:=$(MATCHBOX_DP_BIN)-$(MATCHBOX_DP_VERSION).tar.bz2
55 MATCHBOX_DP_DIR:=$(BUILD_DIR)/$(MATCHBOX_DP_BIN)-$(MATCHBOX_DP_VERSION)
57 MATCHBOX_FK_MAJORVER:=0.1
58 MATCHBOX_FK_MINORVER:=
59 #MATCHBOX_FK_VERSION:=$(MATCHBOX_FK_MAJORVER).$(MATCHBOX_FK_MINORVER)
60 MATCHBOX_FK_VERSION:=$(MATCHBOX_FK_MAJORVER)
61 MATCHBOX_FK_BIN:=libfakekey
62 MATCHBOX_FK_SOURCE:=$(MATCHBOX_FK_BIN)-$(MATCHBOX_FK_VERSION).tar.bz2
63 MATCHBOX_FK_DIR:=$(BUILD_DIR)/$(MATCHBOX_FK_BIN)-$(MATCHBOX_FK_VERSION)
65 MATCHBOX_KB_MAJORVER:=0.1
66 MATCHBOX_KB_MINORVER:=
67 #MATCHBOX_KB_VERSION:=$(MATCHBOX_KB_MAJORVER).$(MATCHBOX_KB_MINORVER)
68 MATCHBOX_KB_VERSION:=$(MATCHBOX_KB_MAJORVER)
69 MATCHBOX_KB_BIN:=matchbox-keyboard
70 MATCHBOX_KB_SOURCE:=$(MATCHBOX_KB_BIN)-$(MATCHBOX_KB_VERSION).tar.bz2
71 MATCHBOX_KB_DIR:=$(BUILD_DIR)/$(MATCHBOX_KB_BIN)-$(MATCHBOX_KB_VERSION)
73 #############################################################
75 $(DL_DIR)/$(MATCHBOX_LIB_SOURCE):
76 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/libmatchbox/$(MATCHBOX_LIB_VERSION)/$(MATCHBOX_LIB_SOURCE)
78 $(DL_DIR)/$(MATCHBOX_SNOTIFY_SOURCE):
79 $(WGET) -P $(DL_DIR) $(MATCHBOX_SNOTIFY_SITE)/$(MATCHBOX_SNOTIFY_SOURCE)
81 $(DL_DIR)/$(MATCHBOX_WM_SOURCE):
82 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_WM_BIN)/$(MATCHBOX_WM_MAJORVER)/$(MATCHBOX_WM_SOURCE)
84 $(DL_DIR)/$(MATCHBOX_SM_SOURCE):
85 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_SM_BIN)/$(MATCHBOX_SM_MAJORVER)/$(MATCHBOX_SM_SOURCE)
87 #$(DL_DIR)/$(MATCHBOX_DM_SOURCE):
88 # $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_SM_BIN)/$(MATCHBOX_SM_MAJORVER)/$(MATCHBOX_SM_SOURCE)
90 $(DL_DIR)/$(MATCHBOX_CN_SOURCE):
91 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_CN_BIN)/$(MATCHBOX_CN_MAJORVER)/$(MATCHBOX_CN_SOURCE)
93 $(DL_DIR)/$(MATCHBOX_PL_SOURCE):
94 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_PL_BIN)/$(MATCHBOX_PL_MAJORVER)/$(MATCHBOX_PL_SOURCE)
96 $(DL_DIR)/$(MATCHBOX_DP_SOURCE):
97 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_DP_BIN)/$(MATCHBOX_DP_MAJORVER)/$(MATCHBOX_DP_SOURCE)
99 $(DL_DIR)/$(MATCHBOX_FK_SOURCE):
100 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_FK_BIN)/$(MATCHBOX_FK_MAJORVER)/$(MATCHBOX_FK_SOURCE)
102 $(DL_DIR)/$(MATCHBOX_KB_SOURCE):
103 $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_KB_BIN)/$(MATCHBOX_KB_MAJORVER)/$(MATCHBOX_KB_SOURCE)
106 matchbox-source: $(DL_DIR)/$(MATCHBOX_LIB_SOURCE) $(DL_DIR)/$(MATCHBOX_WM_SOURCE)
108 matchbox-panel-source: $(DL_DIR)/$(MATCHBOX_CN_SOURCE) $(DL_DIR)/$(MATCHBOX_PL_SOURCE)
110 matchbox-desktop-source: $(DL_DIR)/$(MATCHBOX_DP_SOURCE)
112 matchbox-keyboard-source: $(DL_DIR)/$(MATCHBOX_FK_SOURCE) $(DL_DIR)/$(MATCHBOX_KB_SOURCE)
114 $(MATCHBOX_LIB_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_LIB_SOURCE)
115 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_LIB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
116 touch $(MATCHBOX_LIB_DIR)/.unpacked
118 $(MATCHBOX_SNOTIFY_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_SNOTIFY_SOURCE)
119 $(MATCHBOX_SNOTIFY_CAT) $(DL_DIR)/$(MATCHBOX_SNOTIFY_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
120 touch $(MATCHBOX_SNOTIFY_DIR)/.unpacked
122 $(MATCHBOX_WM_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_WM_SOURCE)
123 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_WM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
124 touch $(MATCHBOX_WM_DIR)/.unpacked
126 $(MATCHBOX_SM_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_SM_SOURCE)
127 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_SM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
128 touch $(MATCHBOX_SM_DIR)/.unpacked
130 $(MATCHBOX_CN_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_CN_SOURCE)
131 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_CN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
132 touch $(MATCHBOX_CN_DIR)/.unpacked
134 $(MATCHBOX_PL_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_PL_SOURCE)
135 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_PL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
136 touch $(MATCHBOX_PL_DIR)/.unpacked
138 $(MATCHBOX_DP_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_DP_SOURCE)
139 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_DP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
140 $(SED) 's:mbfolder\.png:mbtasks\.png:g' $(MATCHBOX_DP_DIR)/modules/tasks.c
141 touch $(MATCHBOX_DP_DIR)/.unpacked
143 $(MATCHBOX_FK_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_FK_SOURCE)
144 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_FK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
145 touch $(MATCHBOX_FK_DIR)/.unpacked
147 $(MATCHBOX_KB_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_KB_SOURCE)
148 $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_KB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
149 touch $(MATCHBOX_KB_DIR)/.unpacked
151 #############################################################
153 MATCHBOX_LIB_OPTS:=
154 MATCHBOX_LIB_DEPS:=
156 MATCHBOX_WM_OPTS:=
157 MATCHBOX_WM_DEPS:=xlib_libXdamage
158 MATCHBOX_WM_DEPS+=xlib_libXcursor
160 ifeq ($(BR2_PACKAGE_X11R7_LIBXCOMPOSITE),y)
161 ifeq ($(BR2_PACKAGE_X11R7_LIBXPM),y)
162 MATCHBOX_WM_OPTS+=--enable-composite
163 MATCHBOX_WM_DEPS+=xlib_libXcomposite
164 MATCHBOX_WM_DEPS+=xlib_libXpm
165 MATCHBOX_LIB_DEPS+=xlib_libXpm
166 endif
167 endif
169 MATCHBOX_SNOTIFY_OPTS:=
170 MATCHBOX_SNOTIFY_DEPS:=
171 MATCHBOX_PANEL_DEPS:=
173 ifeq ($(BR2_PACKAGE_MATCHBOX_SNOTIFY),y)
174 MATCHBOX_SNOTIFY_OPTS+=--enable-startup-notification
175 MATCHBOX_SNOTIFY_DEPS+=xlib_libSM
176 MATCHBOX_SNOTIFY_DEPS+=$(TARGET_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)
177 MATCHBOX_PANEL_DEPS+=$(TARGET_DIR)/usr/bin/$(MATCHBOX_SM_BIN)
178 else
179 MATCHBOX_SNOTIFY_OPTS+=--disable-startup-notification
180 endif
182 ifeq ($(BR2_PACKAGE_JPEG),y)
183 MATCHBOX_LIB_OPTS+=--enable-jpeg
184 MATCHBOX_LIB_DEPS+=jpeg
185 else
186 MATCHBOX_LIB_OPTS+=--disable-jpeg
187 endif
189 ifeq ($(BR2_PACKAGE_LIBPNG),y)
190 MATCHBOX_LIB_OPTS+=--enable-png
191 MATCHBOX_LIB_DEPS+=libpng
192 else
193 MATCHBOX_LIB_OPTS+=--disable-png
194 endif
196 ifeq ($(BR2_PACKAGE_PANGO),y)
197 MATCHBOX_LIB_OPTS+=--enable-pango
198 MATCHBOX_LIB_DEPS+=pango
199 else
200 MATCHBOX_LIB_OPTS+=--disable-pango
201 endif
203 ifeq ($(BR2_PACKAGE_X11R7_LIBXFT2),y)
204 MATCHBOX_LIB_OPTS+=--enable-xft
205 MATCHBOX_LIB_DEPS+=xlib_libXft2
206 #MATCHBOX_WM_OPTS+=--enable-standalone-xft
207 MATCHBOX_WM_DEPS+=xlib_libXft2
208 else
209 MATCHBOX_LIB_OPTS+=--disable-xft
210 #MATCHBOX_WM_OPTS+=--disable-standalone-xft
211 endif
214 $(MATCHBOX_LIB_DIR)/.configured: $(MATCHBOX_LIB_DIR)/.unpacked
215 (cd $(MATCHBOX_LIB_DIR); rm -f config.cache; \
216 $(TARGET_CONFIGURE_OPTS) \
217 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
218 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
219 ./configure \
220 --target=$(GNU_TARGET_NAME) \
221 --host=$(GNU_TARGET_NAME) \
222 --build=$(GNU_HOST_NAME) \
223 --disable-static \
224 --prefix=$(STAGING_DIR)/usr \
225 --sysconfdir=/etc \
226 --localstatedir=/var \
227 --datadir=/usr/share/matchbox \
228 --libdir=$(STAGING_DIR)/usr/lib \
229 --includedir=$(STAGING_DIR)/usr/include \
230 --enable-expat \
231 --disable-doxygen-docs \
232 --with-expat-includes=$(STAGING_DIR)/usr/include \
233 --with-expat-lib=$(STAGING_DIR)/usr/lib \
234 --with-x \
235 --x-includes=$(STAGING_DIR)/usr/include/X11 \
236 --x-libraries=$(STAGING_DIR)/usr/lib \
237 $(MATCHBOX_LIB_OPTS) \
239 touch $(MATCHBOX_LIB_DIR)/.configured
241 $(MATCHBOX_SNOTIFY_DIR)/.configured: $(MATCHBOX_SNOTIFY_DIR)/.unpacked
242 (cd $(MATCHBOX_SNOTIFY_DIR); rm -f config.cache; \
243 $(TARGET_CONFIGURE_OPTS) \
244 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
245 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
246 lf_cv_sane_realloc=no \
247 ./configure \
248 --target=$(GNU_TARGET_NAME) \
249 --host=$(GNU_TARGET_NAME) \
250 --build=$(GNU_HOST_NAME) \
251 --disable-static \
252 --prefix=$(STAGING_DIR)/usr \
253 --sysconfdir=/etc \
254 --localstatedir=/var \
255 --datadir=/usr/share \
256 --libdir=$(STAGING_DIR)/usr/lib \
257 --includedir=$(STAGING_DIR)/usr/include \
258 --with-x \
259 --x-includes=$(STAGING_DIR)/usr/include/X11 \
260 --x-libraries=$(STAGING_DIR)/usr/lib \
262 touch $(MATCHBOX_SNOTIFY_DIR)/.configured
264 $(MATCHBOX_WM_DIR)/.configured: $(MATCHBOX_WM_DIR)/.unpacked
265 (cd $(MATCHBOX_WM_DIR); rm -f config.cache; \
266 $(TARGET_CONFIGURE_OPTS) \
267 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
268 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
269 ./configure \
270 --target=$(GNU_TARGET_NAME) \
271 --host=$(GNU_TARGET_NAME) \
272 --build=$(GNU_HOST_NAME) \
273 --disable-static \
274 --prefix=$(STAGING_DIR)/usr \
275 --sysconfdir=/etc \
276 --localstatedir=/var \
277 --datadir=/usr/share/matchbox \
278 --libdir=$(STAGING_DIR)/usr/lib \
279 --includedir=$(STAGING_DIR)/usr/include \
280 --enable-expat \
281 --with-expat-includes=$(STAGING_DIR)/usr/include \
282 --with-expat-lib=$(STAGING_DIR)/usr/lib \
283 --with-x \
284 --x-includes=$(STAGING_DIR)/usr/include/X11 \
285 --x-libraries=$(STAGING_DIR)/usr/lib \
286 $(MATCHBOX_WM_OPTS) \
287 $(MATCHBOX_SNOTIFY_OPTS) \
289 touch $(MATCHBOX_WM_DIR)/.configured
291 $(MATCHBOX_SM_DIR)/.configured: $(MATCHBOX_SM_DIR)/.unpacked
292 (cd $(MATCHBOX_SM_DIR); rm -f config.cache; \
293 $(TARGET_CONFIGURE_OPTS) \
294 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
295 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
296 ./configure \
297 --target=$(GNU_TARGET_NAME) \
298 --host=$(GNU_TARGET_NAME) \
299 --build=$(GNU_HOST_NAME) \
300 --disable-static \
301 --prefix=$(STAGING_DIR)/usr \
302 --sysconfdir=/etc \
303 --localstatedir=/var \
304 --datadir=/usr/share/matchbox \
305 --libdir=$(STAGING_DIR)/usr/lib \
306 --includedir=$(STAGING_DIR)/usr/include \
307 --enable-expat \
308 --with-expat-includes=$(STAGING_DIR)/usr/include \
309 --with-expat-lib=$(STAGING_DIR)/usr/lib \
310 --with-x \
311 --x-includes=$(STAGING_DIR)/usr/include/X11 \
312 --x-libraries=$(STAGING_DIR)/usr/lib \
313 $(MATCHBOX_SNOTIFY_OPTS) \
315 touch $(MATCHBOX_SM_DIR)/.configured
317 $(MATCHBOX_CN_DIR)/.configured: $(MATCHBOX_CN_DIR)/.unpacked
318 (cd $(MATCHBOX_CN_DIR); rm -f config.cache; \
319 $(TARGET_CONFIGURE_OPTS) \
320 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
321 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
322 ./configure \
323 --target=$(GNU_TARGET_NAME) \
324 --host=$(GNU_TARGET_NAME) \
325 --build=$(GNU_HOST_NAME) \
326 --disable-static \
327 --prefix=$(STAGING_DIR)/usr \
328 --sysconfdir=/etc \
329 --localstatedir=/var \
330 --datadir=/usr/share/matchbox \
331 --libdir=$(STAGING_DIR)/usr/lib \
332 --includedir=$(STAGING_DIR)/usr/include \
333 --enable-expat \
334 --with-expat-includes=$(STAGING_DIR)/usr/include \
335 --with-expat-lib=$(STAGING_DIR)/usr/lib \
336 --with-x \
337 --x-includes=$(STAGING_DIR)/usr/include/X11 \
338 --x-libraries=$(STAGING_DIR)/usr/lib \
340 touch $(MATCHBOX_CN_DIR)/.configured
342 $(MATCHBOX_PL_DIR)/.configured: $(MATCHBOX_PL_DIR)/.unpacked
343 (cd $(MATCHBOX_PL_DIR); rm -f config.cache; \
344 $(TARGET_CONFIGURE_OPTS) \
345 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
346 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
347 ./configure \
348 --target=$(GNU_TARGET_NAME) \
349 --host=$(GNU_TARGET_NAME) \
350 --build=$(GNU_HOST_NAME) \
351 --disable-static \
352 --prefix=$(STAGING_DIR)/usr \
353 --sysconfdir=/etc \
354 --localstatedir=/var \
355 --datadir=/usr/share/matchbox \
356 --libdir=$(STAGING_DIR)/usr/lib \
357 --includedir=$(STAGING_DIR)/usr/include \
358 --enable-expat \
359 --with-expat-includes=$(STAGING_DIR)/usr/include \
360 --with-expat-lib=$(STAGING_DIR)/usr/lib \
361 --with-x \
362 --x-includes=$(STAGING_DIR)/usr/include/X11 \
363 --x-libraries=$(STAGING_DIR)/usr/lib \
364 $(MATCHBOX_SNOTIFY_OPTS) \
366 touch $(MATCHBOX_PL_DIR)/.configured
368 $(MATCHBOX_DP_DIR)/.configured: $(MATCHBOX_DP_DIR)/.unpacked
369 (cd $(MATCHBOX_DP_DIR); rm -f config.cache; \
370 $(TARGET_CONFIGURE_OPTS) \
371 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
372 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
373 ./configure \
374 --target=$(GNU_TARGET_NAME) \
375 --host=$(GNU_TARGET_NAME) \
376 --build=$(GNU_HOST_NAME) \
377 --disable-static \
378 --prefix=$(STAGING_DIR)/usr \
379 --sysconfdir=/etc \
380 --localstatedir=/var \
381 --datadir=/usr/share/matchbox \
382 --libdir=$(STAGING_DIR)/usr/lib \
383 --includedir=$(STAGING_DIR)/usr/include \
384 --enable-expat \
385 --with-expat-includes=$(STAGING_DIR)/usr/include \
386 --with-expat-lib=$(STAGING_DIR)/usr/lib \
387 --with-x \
388 --x-includes=$(STAGING_DIR)/usr/include/X11 \
389 --x-libraries=$(STAGING_DIR)/usr/lib \
390 $(MATCHBOX_SNOTIFY_OPTS) \
392 touch $(MATCHBOX_DP_DIR)/.configured
394 $(MATCHBOX_FK_DIR)/.configured: $(MATCHBOX_FK_DIR)/.unpacked
395 (cd $(MATCHBOX_FK_DIR); rm -f config.cache; \
396 $(TARGET_CONFIGURE_OPTS) \
397 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
398 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
399 ./configure \
400 --target=$(GNU_TARGET_NAME) \
401 --host=$(GNU_TARGET_NAME) \
402 --build=$(GNU_HOST_NAME) \
403 --disable-static \
404 --prefix=$(STAGING_DIR)/usr \
405 --sysconfdir=/etc \
406 --localstatedir=/var \
407 --datadir=/usr/share/matchbox \
408 --libdir=$(STAGING_DIR)/usr/lib \
409 --includedir=$(STAGING_DIR)/usr/include \
410 --enable-expat \
411 --with-expat-includes=$(STAGING_DIR)/usr/include \
412 --with-expat-lib=$(STAGING_DIR)/usr/lib \
413 --with-x \
414 --x-includes=$(STAGING_DIR)/usr/include/X11 \
415 --x-libraries=$(STAGING_DIR)/usr/lib \
417 $(SED) 's:^SUBDIRS = fakekey src tests.*:SUBDIRS = fakekey src:g' $(MATCHBOX_FK_DIR)/Makefile
418 touch $(MATCHBOX_FK_DIR)/.configured
420 $(MATCHBOX_KB_DIR)/.configured: $(MATCHBOX_KB_DIR)/.unpacked
421 (cd $(MATCHBOX_KB_DIR); rm -f config.cache; \
422 $(TARGET_CONFIGURE_OPTS) \
423 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
424 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
425 ./configure \
426 --target=$(GNU_TARGET_NAME) \
427 --host=$(GNU_TARGET_NAME) \
428 --build=$(GNU_HOST_NAME) \
429 --disable-static \
430 --prefix=$(STAGING_DIR)/usr \
431 --sysconfdir=/etc \
432 --localstatedir=/var \
433 --datadir=/usr/share/matchbox \
434 --libdir=$(STAGING_DIR)/usr/lib \
435 --includedir=$(STAGING_DIR)/usr/include \
436 --enable-expat \
437 --with-expat-includes=$(STAGING_DIR)/usr/include \
438 --with-expat-lib=$(STAGING_DIR)/usr/lib \
439 --with-x \
440 --x-includes=$(STAGING_DIR)/usr/include/X11 \
441 --x-libraries=$(STAGING_DIR)/usr/lib \
443 touch $(MATCHBOX_KB_DIR)/.configured
445 $(MATCHBOX_LIB_DIR)/.compiled: $(MATCHBOX_LIB_DIR)/.configured
446 $(MAKE) -C $(MATCHBOX_LIB_DIR)
447 touch $(MATCHBOX_LIB_DIR)/.compiled
449 $(MATCHBOX_SNOTIFY_DIR)/.compiled: $(MATCHBOX_SNOTIFY_DIR)/.configured
450 $(MAKE) -C $(MATCHBOX_SNOTIFY_DIR)
451 touch $(MATCHBOX_SNOTIFY_DIR)/.compiled
453 $(MATCHBOX_WM_DIR)/.compiled: $(MATCHBOX_WM_DIR)/.configured
454 $(MAKE) -C $(MATCHBOX_WM_DIR)
455 touch $(MATCHBOX_WM_DIR)/.compiled
457 $(MATCHBOX_SM_DIR)/.compiled: $(MATCHBOX_SM_DIR)/.configured
458 $(MAKE) -C $(MATCHBOX_SM_DIR)
459 touch $(MATCHBOX_SM_DIR)/.compiled
461 $(MATCHBOX_CN_DIR)/.compiled: $(MATCHBOX_CN_DIR)/.configured
462 $(MAKE) -C $(MATCHBOX_CN_DIR)
463 touch $(MATCHBOX_CN_DIR)/.compiled
465 $(MATCHBOX_PL_DIR)/.compiled: $(MATCHBOX_PL_DIR)/.configured
466 $(MAKE) -C $(MATCHBOX_PL_DIR)
467 touch $(MATCHBOX_PL_DIR)/.compiled
469 $(MATCHBOX_DP_DIR)/.compiled: $(MATCHBOX_DP_DIR)/.configured
470 $(MAKE) -C $(MATCHBOX_DP_DIR)
471 touch $(MATCHBOX_DP_DIR)/.compiled
473 $(MATCHBOX_FK_DIR)/.compiled: $(MATCHBOX_FK_DIR)/.configured
474 $(MAKE) -C $(MATCHBOX_FK_DIR)
475 touch $(MATCHBOX_FK_DIR)/.compiled
477 $(MATCHBOX_KB_DIR)/.compiled: $(MATCHBOX_KB_DIR)/.configured
478 $(MAKE) -C $(MATCHBOX_KB_DIR)
479 touch $(MATCHBOX_KB_DIR)/.compiled
481 $(STAGING_DIR)/usr/lib/libmb.so: $(MATCHBOX_LIB_DIR)/.compiled
482 $(MAKE) -C $(MATCHBOX_LIB_DIR) DESTDIR=$(STAGING_DIR) \
483 prefix=/usr \
484 localstatedir=/var \
485 datadir=/usr/share/matchbox \
486 libdir=/usr/lib \
487 includedir=/usr/include \
488 install
490 $(STAGING_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN): $(MATCHBOX_SNOTIFY_DIR)/.compiled
491 $(MAKE) -C $(MATCHBOX_SNOTIFY_DIR) DESTDIR=$(STAGING_DIR) \
492 prefix=/usr \
493 localstatedir=/var \
494 datadir=/usr/share \
495 libdir=/usr/lib \
496 includedir=/usr/include \
497 install
499 $(STAGING_DIR)/usr/bin/$(MATCHBOX_WM_BIN): $(MATCHBOX_WM_DIR)/.compiled
500 $(MAKE) -C $(MATCHBOX_WM_DIR) DESTDIR=$(STAGING_DIR) \
501 prefix=/usr \
502 localstatedir=/var \
503 datadir=/usr/share/matchbox \
504 libdir=/usr/lib \
505 includedir=/usr/include \
506 install
508 $(STAGING_DIR)/usr/bin/$(MATCHBOX_SM_BIN): $(MATCHBOX_SM_DIR)/.compiled
509 $(MAKE) -C $(MATCHBOX_SM_DIR) DESTDIR=$(STAGING_DIR) \
510 prefix=/usr \
511 localstatedir=/var \
512 datadir=/usr/share/matchbox \
513 libdir=/usr/lib \
514 includedir=/usr/include \
515 install
517 $(STAGING_DIR)/usr/bin/matchbox-session: $(MATCHBOX_CN_DIR)/.compiled
518 $(MAKE) -C $(MATCHBOX_CN_DIR) DESTDIR=$(STAGING_DIR) \
519 prefix=/usr \
520 localstatedir=/var \
521 datadir=/usr/share/matchbox \
522 libdir=/usr/lib \
523 includedir=/usr/include \
524 install
526 $(STAGING_DIR)/usr/bin/$(MATCHBOX_PL_BIN): $(MATCHBOX_PL_DIR)/.compiled
527 $(MAKE) -C $(MATCHBOX_PL_DIR) DESTDIR=$(STAGING_DIR) \
528 prefix=/usr \
529 localstatedir=/var \
530 datadir=/usr/share/matchbox \
531 libdir=/usr/lib \
532 includedir=/usr/include \
533 install
535 $(STAGING_DIR)/usr/bin/$(MATCHBOX_DP_BIN): $(MATCHBOX_DP_DIR)/.compiled
536 $(MAKE) -C $(MATCHBOX_DP_DIR) DESTDIR=$(STAGING_DIR) \
537 prefix=/usr \
538 localstatedir=/var \
539 datadir=/usr/share/matchbox \
540 libdir=/usr/lib \
541 includedir=/usr/include \
542 install
544 $(STAGING_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so: $(MATCHBOX_FK_DIR)/.compiled
545 $(MAKE) -C $(MATCHBOX_FK_DIR) DESTDIR=$(STAGING_DIR) \
546 prefix=/usr \
547 localstatedir=/var \
548 datadir=/usr/share/matchbox \
549 libdir=/usr/lib \
550 includedir=/usr/include \
551 install
553 $(STAGING_DIR)/usr/bin/$(MATCHBOX_KB_BIN): $(MATCHBOX_KB_DIR)/.compiled
554 $(MAKE) -C $(MATCHBOX_KB_DIR) DESTDIR=$(STAGING_DIR) \
555 prefix=/usr \
556 localstatedir=/var \
557 datadir=/usr/share/matchbox \
558 libdir=/usr/lib \
559 includedir=/usr/include \
560 install
562 $(TARGET_DIR)/usr/lib/libmb.so: $(STAGING_DIR)/usr/lib/libmb.so
563 cp -dpf $(STAGING_DIR)/usr/lib/libmb.so* $(TARGET_DIR)/usr/lib/
564 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libmb.so
566 $(TARGET_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN): $(STAGING_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)
567 cp -dpf $(STAGING_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)* $(TARGET_DIR)/usr/lib/
568 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)
570 $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
571 cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_WM_BIN) $(TARGET_DIR)/usr/bin/
572 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
573 cp -dpf $(STAGING_DIR)/usr/bin/matchbox-remote $(TARGET_DIR)/usr/bin/
574 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/matchbox-remote
575 cp -af $(STAGING_DIR)/etc/matchbox/ $(TARGET_DIR)/etc/
576 cp -af $(STAGING_DIR)/usr/share/matchbox $(TARGET_DIR)/usr/share/
578 $(TARGET_DIR)/usr/bin/$(MATCHBOX_SM_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_SM_BIN)
579 cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_SM_BIN) $(TARGET_DIR)/usr/bin/
580 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/$(MATCHBOX_SM_BIN)
581 mkdir -p $(TARGET_DIR)/usr/share/matchbox/pixmaps/
582 cp -af $(STAGING_DIR)/usr/share/matchbox/pixmaps/hourglass-*.png $(TARGET_DIR)/usr/share/matchbox/pixmaps/
584 $(TARGET_DIR)/usr/bin/matchbox-session: $(STAGING_DIR)/usr/bin/matchbox-session
585 cp -dpf $(STAGING_DIR)/usr/bin/matchbox-session $(TARGET_DIR)/usr/bin/
586 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/matchbox-session
587 cp -af $(STAGING_DIR)/etc/matchbox/ $(TARGET_DIR)/etc/
588 cp -af $(STAGING_DIR)/usr/share/matchbox $(TARGET_DIR)/usr/share/
590 $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_PL_BIN)
591 cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_PL_BIN) $(TARGET_DIR)/usr/bin/
592 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN)
593 cp -dpf $(STAGING_DIR)/usr/bin/mb-applet-* $(TARGET_DIR)/usr/bin/
594 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/mb-applet-*
595 cp -af $(STAGING_DIR)/usr/share/matchbox/* $(TARGET_DIR)/usr/share/matchbox/
597 $(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
598 cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_DP_BIN) $(TARGET_DIR)/usr/bin/
599 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
600 cp -dpf $(STAGING_DIR)/usr/lib/dotdesktop.so $(TARGET_DIR)/usr/lib/
601 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/dotdesktop.so
602 cp -dpf $(STAGING_DIR)/usr/lib/simplefilebrowser.so $(TARGET_DIR)/usr/lib/
603 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/simplefilebrowser.so
604 cp -dpf $(STAGING_DIR)/usr/lib/tasks.so $(TARGET_DIR)/usr/lib/
605 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/tasks.so
606 cp -af $(STAGING_DIR)/usr/share/matchbox/* $(TARGET_DIR)/usr/share/matchbox/
607 cp -f ./package/matchbox/mbdesktop_modules $(TARGET_DIR)/etc/matchbox/
609 $(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so: $(STAGING_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so
610 cp -dpf $(STAGING_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so* $(TARGET_DIR)/usr/lib/
611 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so
613 $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
614 cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_KB_BIN) $(TARGET_DIR)/usr/bin/
615 -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
616 mkdir -p $(TARGET_DIR)/usr/share/matchbox/pixmaps/
617 cp -dpf $(STAGING_DIR)/usr/share/matchbox/pixmaps/matchbox-keyboard.png $(TARGET_DIR)/usr/share/matchbox/pixmaps/
618 cp -af $(STAGING_DIR)/usr/share/matchbox/matchbox-keyboard $(TARGET_DIR)/usr/share/matchbox/
619 cp -dpf ./package/matchbox/mb-applet-kbd-wrapper.sh $(TARGET_DIR)/usr/bin/
621 matchbox: uclibc expat $(MATCHBOX_WM_DEPS) $(MATCHBOX_SNOTIFY_DEPS) $(MATCHBOX_LIB_DEPS) $(TARGET_DIR)/usr/lib/libmb.so $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
623 matchbox-panel: uclibc matchbox $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN) $(TARGET_DIR)/usr/bin/matchbox-session $(MATCHBOX_PANEL_DEPS)
625 matchbox-desktop: uclibc matchbox $(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
627 matchbox-keyboard: uclibc matchbox xlib_libXtst $(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
629 matchbox-clean:
630 rm -f $(TARGET_DIR)/usr/lib/libmb.*
631 rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
632 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_WM_DIR) uninstall
633 -$(MAKE) -C $(MATCHBOX_WM_DIR) clean
634 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_LIB_DIR) uninstall
635 -$(MAKE) -C $(MATCHBOX_LIB_DIR) clean
637 matchbox-panel-clean:
638 rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN)
639 rm -f $(TARGET_DIR)/usr/bin/matchbox-session
640 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_PL_DIR) uninstall
641 -$(MAKE) -C $(MATCHBOX_PL_DIR) clean
642 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_CN_DIR) uninstall
643 -$(MAKE) -C $(MATCHBOX_CN_DIR) clean
645 matchbox-desktop-clean:
646 rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
647 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_DP_DIR) uninstall
648 -$(MAKE) -C $(MATCHBOX_DP_DIR) clean
650 matchbox-keyboard-clean:
651 rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
652 rm -f $(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).*
653 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_KB_DIR) uninstall
654 -$(MAKE) -C $(MATCHBOX_KB_DIR) clean
655 $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_FK_DIR) uninstall
656 -$(MAKE) -C $(MATCHBOX_FK_DIR) clean
658 matchbox-dirclean:
659 rm -rf $(MATCHBOX_WM_DIR)
660 rm -rf $(MATCHBOX_LIB_DIR)
661 rm -rf $(MATCHBOX_SNOTIFY_DIR)
663 matchbox-panel-dirclean:
664 rm -rf $(MATCHBOX_PL_DIR)
665 rm -rf $(MATCHBOX_CN_DIR)
667 matchbox-desktop-dirclean:
668 rm -rf $(MATCHBOX_DP_DIR)
670 matchbox-keyboard-dirclean:
671 rm -rf $(MATCHBOX_KB_DIR)
672 rm -rf $(MATCHBOX_FK_DIR)
674 #############################################################
676 # Toplevel Makefile options
678 #############################################################
679 ifeq ($(BR2_PACKAGE_MATCHBOX),y)
680 TARGETS+=matchbox
681 endif
683 ifeq ($(BR2_PACKAGE_MATCHBOX_PANEL),y)
684 TARGETS+=matchbox-panel
685 endif
687 ifeq ($(BR2_PACKAGE_MATCHBOX_DESKTOP),y)
688 TARGETS+=matchbox-desktop
689 endif
691 ifeq ($(BR2_PACKAGE_MATCHBOX_KEYBOARD),y)
692 TARGETS+=matchbox-keyboard
693 endif