add matchbox-window-manager
[openwrt/svn-archive/archive.git] / XOrg / app / matchbox / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=matchbox-window-manager
12 PKG_VERSION:=1.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://matchbox-project.org/sources/matchbox-window-manager/$(PKG_VERSION)
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/matchbox
23 TITLE:=matchbox window manager
24 SECTION:=xorg-wm
25 CATEGORY:=Xorg
26 DEPENDS:=+xorg-server-essentials +zlib +libfreetype +fontconfig @DISPLAY_SUPPORT
27 endef
28
29 define Build/Compile
30 $(MAKE) -C $(PKG_BUILD_DIR) \
31 DESTDIR="$(PKG_INSTALL_DIR)" \
32 LIBMB_LIBS="-L$(STAGING_DIR)/usr/lib -lfontconfig -lXrender -lz -lexpat -lfreetype -lXft -lmb -lX11 -lXext -lXau -lXdmcp -lpng12" \
33 all install
34 endef
35
36 define Package/matchbox/install
37 $(INSTALL_DIR) $(1)/
38 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
39 endef
40
41 $(eval $(call BuildPackage,matchbox))