added <cython> and <python> as build dependencies
[openwrt/svn-archive/archive.git] / Xorg / wm / matchbox / Makefile
1 #
2 # Copyright (C) 2007-2008 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 TARGET_LDFLAGS+= \
21 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
22 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libiconv/lib \
23 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib/libintl/lib
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/matchbox
28 TITLE:=matchbox window manager
29 SECTION:=xorg-wm
30 CATEGORY:=Xorg
31 SUBMENU:=window manager
32 DEPENDS:=+libX11 +zlib +libfreetype +fontconfig +libmatchbox
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 DESTDIR="$(PKG_INSTALL_DIR)" \
38 LIBMB_LIBS="-L$(STAGING_DIR)/usr/lib -lfontconfig -lXrender -lz -lexpat -lfreetype -lXft -lmb -lX11 -lXext -lXau -lXdmcp -lpng12" \
39 all install
40 endef
41
42 define Package/matchbox/install
43 $(INSTALL_DIR) $(1)/
44 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
45 endef
46
47 $(eval $(call BuildPackage,matchbox))