2 # Copyright (C) 2007-2009 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)
22 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
23 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libiconv/lib \
24 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libintl/lib
26 include $(INCLUDE_DIR)/package.mk
28 define Package/matchbox-window-manager
29 TITLE:=matchbox window manager
32 SUBMENU:=window manager
33 DEPENDS:=+libX11 +zlib +libfreetype +fontconfig +libmatchbox
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 DESTDIR=$(PKG_INSTALL_DIR) \
39 LIBMB_LIBS="$(TARGET_LDFLAGS) -lfontconfig -lXrender \
40 -lz -lexpat -lfreetype -lXft -lmb -lX11 -lXext -lXau -lXdmcp \
45 define Package/matchbox-window-manager/install
46 $(INSTALL_DIR) $(1)/etc/matchbox
48 $(PKG_INSTALL_DIR)/etc/matchbox/kbdconfig \
51 $(INSTALL_DIR) $(1)/usr/bin
53 $(PKG_INSTALL_DIR)/usr/bin/* \
56 $(INSTALL_DIR) $(1)/usr/share/{matchbox,themes}
58 $(PKG_INSTALL_DIR)/usr/share/matchbox/* \
59 $(1)/usr/share/matchbox/
61 $(PKG_INSTALL_DIR)/usr/share/themes/* \
62 $(1)/usr/share/themes/
63 $(INSTALL_DIR) $(1)/etc/uci-defaults
65 ./files/uci-defaults/x11 \
66 $(1)/etc/uci-defaults/
69 define Package/matchbox-window-manager/postinst
71 [ -n "$${IPKG_INSTROOT}" ] && exit
76 $(eval $(call BuildPackage,matchbox-window-manager))