d40046d8131f31f2964a704636be73157b13f800
[openwrt/svn-archive/archive.git] / Xorg / app / 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 DEPENDS:=+libX11 +zlib +libfreetype +fontconfig +libmatchbox
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR) \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 LIBMB_LIBS="-L$(STAGING_DIR)/usr/lib -lfontconfig -lXrender -lz -lexpat -lfreetype -lXft -lmb -lX11 -lXext -lXau -lXdmcp -lpng12" \
38 all install
39 endef
40
41 define Package/matchbox/install
42 $(INSTALL_DIR) $(1)/
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 endef
45
46 $(eval $(call BuildPackage,matchbox))