summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-12 11:31:06 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-08-12 11:31:06 +0000
commit54f3d3330cbc8770a65b5a5213af9d2afbef7d81 (patch)
tree58da7fe4a8fc30dd38eb13b69c36fba5ba0255f6
parent9ec80630a1921c6652d7e42924e960db9bff5980 (diff)
downloadbuildroot-novena-54f3d3330cbc8770a65b5a5213af9d2afbef7d81.tar.gz
buildroot-novena-54f3d3330cbc8770a65b5a5213af9d2afbef7d81.zip
Add matchbox package
-rw-r--r--package/Config.in1
-rw-r--r--package/matchbox/Config.in44
-rw-r--r--package/matchbox/matchbox.mk693
-rw-r--r--package/matchbox/mb-applet-kbd-wrapper.sh8
-rw-r--r--package/matchbox/mbdesktop_modules9
5 files changed, 755 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 573823b2d..401739879 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -338,6 +338,7 @@ source "package/gtk2-engines/Config.in"
source "package/fontconfig/Config.in"
source "package/freetype/Config.in"
comment "X Window managers"
+source "package/matchbox/Config.in"
source "package/metacity/Config.in"
comment "X applications"
source "package/dillo/Config.in"
diff --git a/package/matchbox/Config.in b/package/matchbox/Config.in
new file mode 100644
index 000000000..bd9a2c7f8
--- /dev/null
+++ b/package/matchbox/Config.in
@@ -0,0 +1,44 @@
+config BR2_PACKAGE_MATCHBOX
+ bool "MatchBox Window Manager"
+ default n
+ select BR2_PACKAGE_X11SERVER
+ select BR2_PACKAGE_FONTCONFIG
+ select BR2_PACKAGE_X11R7_LIBXDAMAGE
+ select BR2_PACKAGE_X11R7_LIBXCURSOR
+ help
+
+ http://projects.o-hand.com/matchbox
+
+config BR2_PACKAGE_MATCHBOX_SNOTIFY
+ bool "Enable Matchbox Startup Notification"
+ depends BR2_PACKAGE_MATCHBOX
+ select BR2_PACKAGE_X11R7_LIBXSM
+ default n
+ help
+
+ Compiles http://www.freedesktop.org/Software/startup-notification and its support in MatchBox
+
+config BR2_PACKAGE_MATCHBOX_PANEL
+ bool "Matchbox Panel"
+ depends BR2_PACKAGE_MATCHBOX
+ default n
+ help
+
+ A flexible always present 'window bar' for holding application launchers"
+
+config BR2_PACKAGE_MATCHBOX_DESKTOP
+ bool "Matchbox Desktop"
+ depends BR2_PACKAGE_MATCHBOX
+ default n
+ help
+
+ A PDA style application launcher or 'item browser'.
+
+config BR2_PACKAGE_MATCHBOX_KEYBOARD
+ bool "Metchbox Virtual Keyboard"
+ depends BR2_PACKAGE_MATCHBOX
+ select BR2_PACKAGE_X11R7_LIBXTST
+ default n
+ help
+
+ Virtual Keyboard (developement version from CVS)
diff --git a/package/matchbox/matchbox.mk b/package/matchbox/matchbox.mk
new file mode 100644
index 000000000..f3ca97def
--- /dev/null
+++ b/package/matchbox/matchbox.mk
@@ -0,0 +1,693 @@
+#############################################################
+#
+# MatchBox WM
+#
+#############################################################
+MATCHBOX_SITE:=http://matchbox-project.org/sources/
+MATCHBOX_CAT:=$(BZCAT)
+
+MATCHBOX_LIB_VERSION:=1.9
+MATCHBOX_LIB_SOURCE:=libmatchbox-$(MATCHBOX_LIB_VERSION).tar.bz2
+MATCHBOX_LIB_DIR:=$(BUILD_DIR)/libmatchbox-$(MATCHBOX_LIB_VERSION)
+
+MATCHBOX_SNOTIFY_VERSION:=0.9
+MATCHBOX_SNOTIFY_SOURCE:=startup-notification-$(MATCHBOX_SNOTIFY_VERSION).tar.bz2
+MATCHBOX_SNOTIFY_DIR:=$(BUILD_DIR)/startup-notification-$(MATCHBOX_SNOTIFY_VERSION)
+#MATCHBOX_SNOTIFY_SITE:=http://www.freedesktop.org/software/startup-notification/releases
+MATCHBOX_SNOTIFY_SITE:=http://ftp.gnome.org/pub/GNOME/sources/startup-notification/$(MATCHBOX_SNOTIFY_VERSION)
+MATCHBOX_SNOTIFY_CAT:=$(BZCAT)
+MATCHBOX_SNOTIFY_BIN:=libstartup-notification-1.so
+
+MATCHBOX_WM_MAJORVER:=1.2
+MATCHBOX_WM_MINORVER:=
+#MATCHBOX_WM_VERSION:=$(MATCHBOX_WM_MAJORVER).$(MATCHBOX_WM_MINORVER)
+MATCHBOX_WM_VERSION:=$(MATCHBOX_WM_MAJORVER)
+MATCHBOX_WM_BIN:=matchbox-window-manager
+MATCHBOX_WM_SOURCE:=$(MATCHBOX_WM_BIN)-$(MATCHBOX_WM_VERSION).tar.bz2
+MATCHBOX_WM_DIR:=$(BUILD_DIR)/$(MATCHBOX_WM_BIN)-$(MATCHBOX_WM_VERSION)
+
+MATCHBOX_CN_MAJORVER:=0.9
+MATCHBOX_CN_MINORVER:=1
+MATCHBOX_CN_VERSION:=$(MATCHBOX_CN_MAJORVER).$(MATCHBOX_CN_MINORVER)
+MATCHBOX_CN_BIN:=matchbox-common
+MATCHBOX_CN_SOURCE:=$(MATCHBOX_CN_BIN)-$(MATCHBOX_CN_VERSION).tar.bz2
+MATCHBOX_CN_DIR:=$(BUILD_DIR)/$(MATCHBOX_CN_BIN)-$(MATCHBOX_CN_VERSION)
+
+MATCHBOX_PL_MAJORVER:=0.9
+MATCHBOX_PL_MINORVER:=3
+MATCHBOX_PL_VERSION:=$(MATCHBOX_PL_MAJORVER).$(MATCHBOX_PL_MINORVER)
+MATCHBOX_PL_BIN:=matchbox-panel
+MATCHBOX_PL_SOURCE:=$(MATCHBOX_PL_BIN)-$(MATCHBOX_PL_VERSION).tar.bz2
+MATCHBOX_PL_DIR:=$(BUILD_DIR)/$(MATCHBOX_PL_BIN)-$(MATCHBOX_PL_VERSION)
+
+MATCHBOX_SM_MAJORVER:=0.1
+MATCHBOX_SM_MINORVER:=
+MATCHBOX_SM_VERSION:=$(MATCHBOX_SM_MAJORVER)$(MATCHBOX_SM_MINORVER)
+MATCHBOX_SM_BIN:=mb-applet-startup-monitor
+MATCHBOX_SM_SOURCE:=$(MATCHBOX_SM_BIN)-$(MATCHBOX_SM_VERSION).tar.bz2
+MATCHBOX_SM_DIR:=$(BUILD_DIR)/$(MATCHBOX_SM_BIN)-$(MATCHBOX_SM_VERSION)
+
+MATCHBOX_DP_MAJORVER:=0.9
+MATCHBOX_DP_MINORVER:=1
+MATCHBOX_DP_VERSION:=$(MATCHBOX_DP_MAJORVER).$(MATCHBOX_DP_MINORVER)
+MATCHBOX_DP_BIN:=matchbox-desktop
+MATCHBOX_DP_SOURCE:=$(MATCHBOX_DP_BIN)-$(MATCHBOX_DP_VERSION).tar.bz2
+MATCHBOX_DP_DIR:=$(BUILD_DIR)/$(MATCHBOX_DP_BIN)-$(MATCHBOX_DP_VERSION)
+
+MATCHBOX_FK_MAJORVER:=0.1
+MATCHBOX_FK_MINORVER:=
+#MATCHBOX_FK_VERSION:=$(MATCHBOX_FK_MAJORVER).$(MATCHBOX_FK_MINORVER)
+MATCHBOX_FK_VERSION:=$(MATCHBOX_FK_MAJORVER)
+MATCHBOX_FK_BIN:=libfakekey
+MATCHBOX_FK_SOURCE:=$(MATCHBOX_FK_BIN)-$(MATCHBOX_FK_VERSION).tar.bz2
+MATCHBOX_FK_DIR:=$(BUILD_DIR)/$(MATCHBOX_FK_BIN)-$(MATCHBOX_FK_VERSION)
+
+MATCHBOX_KB_MAJORVER:=0.1
+MATCHBOX_KB_MINORVER:=
+#MATCHBOX_KB_VERSION:=$(MATCHBOX_KB_MAJORVER).$(MATCHBOX_KB_MINORVER)
+MATCHBOX_KB_VERSION:=$(MATCHBOX_KB_MAJORVER)
+MATCHBOX_KB_BIN:=matchbox-keyboard
+MATCHBOX_KB_SOURCE:=$(MATCHBOX_KB_BIN)-$(MATCHBOX_KB_VERSION).tar.bz2
+MATCHBOX_KB_DIR:=$(BUILD_DIR)/$(MATCHBOX_KB_BIN)-$(MATCHBOX_KB_VERSION)
+
+#############################################################
+
+$(DL_DIR)/$(MATCHBOX_LIB_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/libmatchbox/$(MATCHBOX_LIB_VERSION)/$(MATCHBOX_LIB_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_SNOTIFY_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SNOTIFY_SITE)/$(MATCHBOX_SNOTIFY_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_WM_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_WM_BIN)/$(MATCHBOX_WM_MAJORVER)/$(MATCHBOX_WM_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_SM_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_SM_BIN)/$(MATCHBOX_SM_MAJORVER)/$(MATCHBOX_SM_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_DM_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_SM_BIN)/$(MATCHBOX_SM_MAJORVER)/$(MATCHBOX_SM_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_CN_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_CN_BIN)/$(MATCHBOX_CN_MAJORVER)/$(MATCHBOX_CN_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_PL_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_PL_BIN)/$(MATCHBOX_PL_MAJORVER)/$(MATCHBOX_PL_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_DP_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_DP_BIN)/$(MATCHBOX_DP_MAJORVER)/$(MATCHBOX_DP_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_FK_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_FK_BIN)/$(MATCHBOX_FK_MAJORVER)/$(MATCHBOX_FK_SOURCE)
+
+$(DL_DIR)/$(MATCHBOX_KB_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MATCHBOX_SITE)/$(MATCHBOX_KB_BIN)/$(MATCHBOX_KB_MAJORVER)/$(MATCHBOX_KB_SOURCE)
+
+
+matchbox-source: $(DL_DIR)/$(MATCHBOX_LIB_SOURCE) $(DL_DIR)/$(MATCHBOX_WM_SOURCE)
+
+matchbox-panel-source: $(DL_DIR)/$(MATCHBOX_CN_SOURCE) $(DL_DIR)/$(MATCHBOX_PL_SOURCE)
+
+matchbox-desktop-source: $(DL_DIR)/$(MATCHBOX_DP_SOURCE)
+
+matchbox-keyboard-source: $(DL_DIR)/$(MATCHBOX_FK_SOURCE) $(DL_DIR)/$(MATCHBOX_KB_SOURCE)
+
+$(MATCHBOX_LIB_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_LIB_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_LIB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_LIB_DIR)/.unpacked
+
+$(MATCHBOX_SNOTIFY_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_SNOTIFY_SOURCE)
+ $(MATCHBOX_SNOTIFY_CAT) $(DL_DIR)/$(MATCHBOX_SNOTIFY_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_SNOTIFY_DIR)/.unpacked
+
+$(MATCHBOX_WM_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_WM_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_WM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_WM_DIR)/.unpacked
+
+$(MATCHBOX_SM_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_SM_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_SM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_SM_DIR)/.unpacked
+
+$(MATCHBOX_CN_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_CN_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_CN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_CN_DIR)/.unpacked
+
+$(MATCHBOX_PL_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_PL_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_PL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_PL_DIR)/.unpacked
+
+$(MATCHBOX_DP_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_DP_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_DP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(SED) 's:mbfolder\.png:mbtasks\.png:g' $(MATCHBOX_DP_DIR)/modules/tasks.c
+ touch $(MATCHBOX_DP_DIR)/.unpacked
+
+$(MATCHBOX_FK_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_FK_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_FK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_FK_DIR)/.unpacked
+
+$(MATCHBOX_KB_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_KB_SOURCE)
+ $(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_KB_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MATCHBOX_KB_DIR)/.unpacked
+
+#############################################################
+
+MATCHBOX_LIB_OPTS:=
+MATCHBOX_LIB_DEPS:=
+
+MATCHBOX_WM_OPTS:=
+MATCHBOX_WM_DEPS:=x11r7-libxdamage
+MATCHBOX_WM_DEPS+=x11r7-libxcursor
+
+ifeq ($(strip $(BR2_PACKAGE_X11R7_LIBXCOMPOSITE)),y)
+ifeq ($(strip $(BR2_PACKAGE_X11R7_LIBXPM)),y)
+ MATCHBOX_WM_OPTS+=--enable-composite
+ MATCHBOX_WM_DEPS+=x11r7-libxcomposite
+ MATCHBOX_WM_DEPS+=x11r7-libxpm
+ MATCHBOX_LIB_DEPS+=x11r7-libxpm
+endif
+endif
+
+MATCHBOX_SNOTIFY_OPTS:=
+MATCHBOX_SNOTIFY_DEPS:=
+MATCHBOX_PANEL_DEPS:=
+
+ifeq ($(strip $(BR2_PACKAGE_MATCHBOX_SNOTIFY)),y)
+ MATCHBOX_SNOTIFY_OPTS+=--enable-startup-notification
+ MATCHBOX_SNOTIFY_DEPS+=x11r7-libxsm
+ MATCHBOX_SNOTIFY_DEPS+=$(TARGET_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)
+ MATCHBOX_PANEL_DEPS+=$(TARGET_DIR)/usr/bin/$(MATCHBOX_SM_BIN)
+else
+ MATCHBOX_SNOTIFY_OPTS+=--disable-startup-notification
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_JPEG)),y)
+ MATCHBOX_LIB_OPTS+=--enable-jpeg
+ MATCHBOX_LIB_DEPS+=jpeg
+else
+ MATCHBOX_LIB_OPTS+=--disable-jpeg
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_LIBPNG)),y)
+ MATCHBOX_LIB_OPTS+=--enable-png
+ MATCHBOX_LIB_DEPS+=libpng
+else
+ MATCHBOX_LIB_OPTS+=--disable-png
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_PANGO)),y)
+ MATCHBOX_LIB_OPTS+=--enable-pango
+ MATCHBOX_LIB_DEPS+=pango
+else
+ MATCHBOX_LIB_OPTS+=--disable-pango
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_X11R7_LIBXFT2)),y)
+ MATCHBOX_LIB_OPTS+=--enable-xft
+ MATCHBOX_LIB_DEPS+=x11r7-libxft2
+ #MATCHBOX_WM_OPTS+=--enable-standalone-xft
+ MATCHBOX_WM_DEPS+=x11r7-libxft2
+else
+ MATCHBOX_LIB_OPTS+=--disable-xft
+ #MATCHBOX_WM_OPTS+=--disable-standalone-xft
+endif
+
+
+$(MATCHBOX_LIB_DIR)/.configured: $(MATCHBOX_LIB_DIR)/.unpacked
+ (cd $(MATCHBOX_LIB_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --disable-doxygen-docs \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ $(MATCHBOX_LIB_OPTS) \
+ );
+ touch $(MATCHBOX_LIB_DIR)/.configured
+
+$(MATCHBOX_SNOTIFY_DIR)/.configured: $(MATCHBOX_SNOTIFY_DIR)/.unpacked
+ (cd $(MATCHBOX_SNOTIFY_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ lf_cv_sane_realloc=no \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ );
+ touch $(MATCHBOX_SNOTIFY_DIR)/.configured
+
+$(MATCHBOX_WM_DIR)/.configured: $(MATCHBOX_WM_DIR)/.unpacked
+ (cd $(MATCHBOX_WM_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ $(MATCHBOX_WM_OPTS) \
+ $(MATCHBOX_SNOTIFY_OPTS) \
+ );
+ touch $(MATCHBOX_WM_DIR)/.configured
+
+$(MATCHBOX_SM_DIR)/.configured: $(MATCHBOX_SM_DIR)/.unpacked
+ (cd $(MATCHBOX_SM_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ $(MATCHBOX_SNOTIFY_OPTS) \
+ );
+ touch $(MATCHBOX_SM_DIR)/.configured
+
+$(MATCHBOX_CN_DIR)/.configured: $(MATCHBOX_CN_DIR)/.unpacked
+ (cd $(MATCHBOX_CN_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ );
+ touch $(MATCHBOX_CN_DIR)/.configured
+
+$(MATCHBOX_PL_DIR)/.configured: $(MATCHBOX_PL_DIR)/.unpacked
+ (cd $(MATCHBOX_PL_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ $(MATCHBOX_SNOTIFY_OPTS) \
+ );
+ touch $(MATCHBOX_PL_DIR)/.configured
+
+$(MATCHBOX_DP_DIR)/.configured: $(MATCHBOX_DP_DIR)/.unpacked
+ (cd $(MATCHBOX_DP_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ $(MATCHBOX_SNOTIFY_OPTS) \
+ );
+ touch $(MATCHBOX_DP_DIR)/.configured
+
+$(MATCHBOX_FK_DIR)/.configured: $(MATCHBOX_FK_DIR)/.unpacked
+ (cd $(MATCHBOX_FK_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ );
+ $(SED) 's:^SUBDIRS = fakekey src tests.*:SUBDIRS = fakekey src:g' $(MATCHBOX_FK_DIR)/Makefile
+ touch $(MATCHBOX_FK_DIR)/.configured
+
+$(MATCHBOX_KB_DIR)/.configured: $(MATCHBOX_KB_DIR)/.unpacked
+ (cd $(MATCHBOX_KB_DIR); \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
+ LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --disable-static \
+ --prefix=$(STAGING_DIR)/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --datadir=/usr/share/matchbox \
+ --libdir=$(STAGING_DIR)/usr/lib \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-expat \
+ --with-expat-includes=$(STAGING_DIR)/usr/include \
+ --with-expat-lib=$(STAGING_DIR)/usr/lib \
+ --with-x \
+ --x-includes=$(STAGING_DIR)/usr/include \
+ --x-libraries=$(STAGING_DIR)/usr/lib \
+ );
+ touch $(MATCHBOX_KB_DIR)/.configured
+
+$(MATCHBOX_LIB_DIR)/.compiled: $(MATCHBOX_LIB_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_LIB_DIR)
+ touch $(MATCHBOX_LIB_DIR)/.compiled
+
+$(MATCHBOX_SNOTIFY_DIR)/.compiled: $(MATCHBOX_SNOTIFY_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_SNOTIFY_DIR)
+ touch $(MATCHBOX_SNOTIFY_DIR)/.compiled
+
+$(MATCHBOX_WM_DIR)/.compiled: $(MATCHBOX_WM_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_WM_DIR)
+ touch $(MATCHBOX_WM_DIR)/.compiled
+
+$(MATCHBOX_SM_DIR)/.compiled: $(MATCHBOX_SM_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_SM_DIR)
+ touch $(MATCHBOX_SM_DIR)/.compiled
+
+$(MATCHBOX_CN_DIR)/.compiled: $(MATCHBOX_CN_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_CN_DIR)
+ touch $(MATCHBOX_CN_DIR)/.compiled
+
+$(MATCHBOX_PL_DIR)/.compiled: $(MATCHBOX_PL_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_PL_DIR)
+ touch $(MATCHBOX_PL_DIR)/.compiled
+
+$(MATCHBOX_DP_DIR)/.compiled: $(MATCHBOX_DP_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_DP_DIR)
+ touch $(MATCHBOX_DP_DIR)/.compiled
+
+$(MATCHBOX_FK_DIR)/.compiled: $(MATCHBOX_FK_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_FK_DIR)
+ touch $(MATCHBOX_FK_DIR)/.compiled
+
+$(MATCHBOX_KB_DIR)/.compiled: $(MATCHBOX_KB_DIR)/.configured
+ $(MAKE) -C $(MATCHBOX_KB_DIR)
+ touch $(MATCHBOX_KB_DIR)/.compiled
+
+$(STAGING_DIR)/usr/lib/libmb.so: $(MATCHBOX_LIB_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_LIB_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN): $(MATCHBOX_SNOTIFY_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_SNOTIFY_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/bin/$(MATCHBOX_WM_BIN): $(MATCHBOX_WM_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_WM_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/bin/$(MATCHBOX_SM_BIN): $(MATCHBOX_SM_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_SM_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/bin/matchbox-session: $(MATCHBOX_CN_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_CN_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/bin/$(MATCHBOX_PL_BIN): $(MATCHBOX_PL_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_PL_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/bin/$(MATCHBOX_DP_BIN): $(MATCHBOX_DP_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_DP_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so: $(MATCHBOX_FK_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_FK_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(STAGING_DIR)/usr/bin/$(MATCHBOX_KB_BIN): $(MATCHBOX_KB_DIR)/.compiled
+ $(MAKE) -C $(MATCHBOX_KB_DIR) DESTDIR=$(STAGING_DIR) \
+ prefix=/usr \
+ localstatedir=/var \
+ datadir=/usr/share/matchbox \
+ libdir=/usr/lib \
+ includedir=/usr/include \
+ install
+
+$(TARGET_DIR)/usr/lib/libmb.so: $(STAGING_DIR)/usr/lib/libmb.so
+ cp -dpf $(STAGING_DIR)/usr/lib/libmb.so* $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libmb.so
+
+$(TARGET_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN): $(STAGING_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)
+ cp -dpf $(STAGING_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)* $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/$(MATCHBOX_SNOTIFY_BIN)
+
+$(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
+ cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_WM_BIN) $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
+ cp -dpf $(STAGING_DIR)/usr/bin/matchbox-remote $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/matchbox-remote
+ cp -af $(STAGING_DIR)/etc/matchbox/ $(TARGET_DIR)/etc/
+ cp -af $(STAGING_DIR)/usr/share/matchbox $(TARGET_DIR)/usr/share/
+
+$(TARGET_DIR)/usr/bin/$(MATCHBOX_SM_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_SM_BIN)
+ cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_SM_BIN) $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/$(MATCHBOX_SM_BIN)
+ mkdir -p $(TARGET_DIR)/usr/share/matchbox/pixmaps/
+ cp -af $(STAGING_DIR)/usr/share/matchbox/pixmaps/hourglass-*.png $(TARGET_DIR)/usr/share/matchbox/pixmaps/
+
+$(TARGET_DIR)/usr/bin/matchbox-session: $(STAGING_DIR)/usr/bin/matchbox-session
+ cp -dpf $(STAGING_DIR)/usr/bin/matchbox-session $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/matchbox-session
+ cp -af $(STAGING_DIR)/etc/matchbox/ $(TARGET_DIR)/etc/
+ cp -af $(STAGING_DIR)/usr/share/matchbox $(TARGET_DIR)/usr/share/
+
+$(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_PL_BIN)
+ cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_PL_BIN) $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN)
+ cp -dpf $(STAGING_DIR)/usr/bin/mb-applet-* $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/mb-applet-*
+ cp -af $(STAGING_DIR)/usr/share/matchbox/* $(TARGET_DIR)/usr/share/matchbox/
+
+$(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
+ cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_DP_BIN) $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
+ cp -dpf $(STAGING_DIR)/usr/lib/dotdesktop.so $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/dotdesktop.so
+ cp -dpf $(STAGING_DIR)/usr/lib/simplefilebrowser.so $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/simplefilebrowser.so
+ cp -dpf $(STAGING_DIR)/usr/lib/tasks.so $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/tasks.so
+ cp -af $(STAGING_DIR)/usr/share/matchbox/* $(TARGET_DIR)/usr/share/matchbox/
+ cp -f ./package/matchbox/mbdesktop_modules $(TARGET_DIR)/etc/matchbox/
+
+$(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so: $(STAGING_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so
+ cp -dpf $(STAGING_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so* $(TARGET_DIR)/usr/lib/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so
+
+$(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
+ cp -dpf $(STAGING_DIR)/usr/bin/$(MATCHBOX_KB_BIN) $(TARGET_DIR)/usr/bin/
+ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
+ mkdir -p $(TARGET_DIR)/usr/share/matchbox/pixmaps/
+ cp -dpf $(STAGING_DIR)/usr/share/matchbox/pixmaps/matchbox-keyboard.png $(TARGET_DIR)/usr/share/matchbox/pixmaps/
+ cp -af $(STAGING_DIR)/usr/share/matchbox/matchbox-keyboard $(TARGET_DIR)/usr/share/matchbox/
+ cp -dpf ./package/matchbox/mb-applet-kbd-wrapper.sh $(TARGET_DIR)/usr/bin/
+
+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)
+
+matchbox-panel: uclibc matchbox $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN) $(TARGET_DIR)/usr/bin/matchbox-session $(MATCHBOX_PANEL_DEPS)
+
+matchbox-desktop: uclibc matchbox $(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
+
+matchbox-keyboard: uclibc matchbox x11r7-libxtst $(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).so $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
+
+matchbox-clean:
+ rm -f $(TARGET_DIR)/usr/lib/libmb.*
+ rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
+ $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_WM_DIR) uninstall
+ -$(MAKE) -C $(MATCHBOX_WM_DIR) clean
+ $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_LIB_DIR) uninstall
+ -$(MAKE) -C $(MATCHBOX_LIB_DIR) clean
+
+matchbox-panel-clean:
+ rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN)
+ rm -f $(TARGET_DIR)/usr/bin/matchbox-session
+ $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_PL_DIR) uninstall
+ -$(MAKE) -C $(MATCHBOX_PL_DIR) clean
+ $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_CN_DIR) uninstall
+ -$(MAKE) -C $(MATCHBOX_CN_DIR) clean
+
+matchbox-desktop-clean:
+ rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_DP_BIN)
+ $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_DP_DIR) uninstall
+ -$(MAKE) -C $(MATCHBOX_DP_DIR) clean
+
+matchbox-keyboard-clean:
+ rm -f $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN)
+ rm -f $(TARGET_DIR)/usr/lib/$(MATCHBOX_FK_BIN).*
+ $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_KB_DIR) uninstall
+ -$(MAKE) -C $(MATCHBOX_KB_DIR) clean
+ $(MAKE) DESTDIR=$(STAGING_DIR) CC=$(TARGET_CC) -C $(MATCHBOX_FK_DIR) uninstall
+ -$(MAKE) -C $(MATCHBOX_FK_DIR) clean
+
+matchbox-dirclean:
+ rm -rf $(MATCHBOX_WM_DIR)
+ rm -rf $(MATCHBOX_LIB_DIR)
+ rm -rf $(MATCHBOX_SNOTIFY_DIR)
+
+matchbox-panel-dirclean:
+ rm -rf $(MATCHBOX_PL_DIR)
+ rm -rf $(MATCHBOX_CN_DIR)
+
+matchbox-desktop-dirclean:
+ rm -rf $(MATCHBOX_DP_DIR)
+
+matchbox-keyboard-dirclean:
+ rm -rf $(MATCHBOX_KB_DIR)
+ rm -rf $(MATCHBOX_FK_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MATCHBOX)),y)
+TARGETS+=matchbox
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_MATCHBOX_PANEL)),y)
+TARGETS+=matchbox-panel
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_MATCHBOX_DESKTOP)),y)
+TARGETS+=matchbox-desktop
+endif
+
+ifeq ($(strip $(BR2_PACKAGE_MATCHBOX_KEYBOARD)),y)
+TARGETS+=matchbox-keyboard
+endif
diff --git a/package/matchbox/mb-applet-kbd-wrapper.sh b/package/matchbox/mb-applet-kbd-wrapper.sh
new file mode 100644
index 000000000..be202b5d6
--- /dev/null
+++ b/package/matchbox/mb-applet-kbd-wrapper.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+
+killall matchbox-keyboard
+if [ ! $? -eq 0 ]
+then
+ matchbox-keyboard &
+fi
diff --git a/package/matchbox/mbdesktop_modules b/package/matchbox/mbdesktop_modules
new file mode 100644
index 000000000..8206dad1f
--- /dev/null
+++ b/package/matchbox/mbdesktop_modules
@@ -0,0 +1,9 @@
+# This file lists the 'plug-ins' with any arguments to be loaded by
+# matchbox-desktop.
+#
+# It can be overridden on a per-user basis by copying this file to ~/.matchbox/
+# and editing.
+
+/usr/lib/tasks.so
+/usr/lib/dotdesktop.so
+# /usr/lib/simplefilebrowser.so /