2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=matchbox-window-manager
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://matchbox-project.org/sources/$(PKG_NAME)/$(PKG_VERSION)
17 PKG_MD5SUM:=3e158dcf57823b55c926d95b245500fb
23 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
24 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libiconv/lib \
25 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libintl/lib
27 include $(INCLUDE_DIR)/package.mk
29 define Package/matchbox-window-manager
30 TITLE:=matchbox window manager
33 SUBMENU:=window manager
34 DEPENDS:=+libX11 +zlib +libfreetype +fontconfig +libmatchbox
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR=$(PKG_INSTALL_DIR) \
40 LIBMB_LIBS="$(TARGET_LDFLAGS) -lfontconfig -lXrender \
41 -lz -lexpat -lfreetype -lXft -lmb -lX11 -lXext -lXau -lXdmcp \
46 define Package/matchbox-window-manager/install
47 $(INSTALL_DIR) $(1)/etc/matchbox
49 $(PKG_INSTALL_DIR)/etc/matchbox/kbdconfig \
52 $(INSTALL_DIR) $(1)/usr/bin
54 $(PKG_INSTALL_DIR)/usr/bin/* \
57 $(INSTALL_DIR) $(1)/usr/share/{matchbox,themes}
59 $(PKG_INSTALL_DIR)/usr/share/matchbox/* \
60 $(1)/usr/share/matchbox/
62 $(PKG_INSTALL_DIR)/usr/share/themes/* \
63 $(1)/usr/share/themes/
64 $(INSTALL_DIR) $(1)/etc/uci-defaults
66 ./files/uci-defaults/x11 \
67 $(1)/etc/uci-defaults/
70 define Package/matchbox-window-manager/postinst
72 [ -n "$${IPKG_INSTROOT}" ] && exit
77 $(eval $(call BuildPackage,matchbox-window-manager))