- update to Xorg X11R7.4 and reorganization of the xorg-section
[openwrt/svn-archive/archive.git] / Xorg / lib / libmatchbox / 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 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libmatchbox
11 PKG_RELEASE:=1
12 PKG_VERSION:=1.9
13 PKG_SOURCE_URL:=http://matchbox-project.org/sources/libmatchbox/$(PKG_VERSION)
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_MD5SUM:=9f73e7515cc4679171a5db180dc1343b
16 PKG_BUILD_DIR=$(BUILD_DIR)/${PKG_NAME}-$(PKG_VERSION)
17 PKG_FIXUP:=libtool
18
19 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib/
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libmatchbox
24 SECTION:=xorg-libraries
25 CATEGORY:=Xorg
26 SUBMENU:=libraries
27 DEPENDS:=+libX11 +libXft +libpng +libjpeg +libXau +libXdmcp
28 TITLE:=libmatchbox
29 URL:=http://matchbox-project.org
30 endef
31
32 define Build/InstallDev
33 DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR)/ $(MAKE_FLAGS) install
34 endef
35
36 define Package/libmatchbox/install
37 $(INSTALL_DIR) $(1)/usr/lib
38 $(CP) $(PKG_BUILD_DIR)/libmb/.libs/libmb.so* $(1)/usr/lib/
39 endef
40
41 $(eval $(call BuildPackage,libmatchbox))