[package] update faifa to r55, patch from Raphael Huck.
[openwrt/svn-archive/archive.git] / Xorg / lib / libmatchbox / 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:=libmatchbox
12 PKG_RELEASE:=2
13 PKG_VERSION:=1.9
14 PKG_SOURCE_URL:=http://matchbox-project.org/sources/libmatchbox/$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_MD5SUM:=9f73e7515cc4679171a5db180dc1343b
17 PKG_FIXUP:=libtool
18
19 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib/
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PKG_INSTALL:=1
24
25 define Package/libmatchbox
26 SECTION:=xorg-libraries
27 CATEGORY:=Xorg
28 SUBMENU:=libraries
29 DEPENDS:=+libX11 +libXft +libpng +libjpeg +libXext +pango
30 TITLE:=libmatchbox
31 URL:=http://matchbox-project.org
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default, \
36 --enable-pango \
37 --enable-jpeg \
38 --enable-png \
39 --enable-Xft \
40 )
41 endef
42
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include/libmb
45 $(INSTALL_DATA) \
46 $(PKG_INSTALL_DIR)/usr/include/libmb/*.h \
47 $(1)/usr/include/libmb/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49 $(CP) \
50 $(PKG_INSTALL_DIR)/usr/lib/libmb.{so*,a,la} \
51 $(1)/usr/lib/
52 $(INSTALL_DATA) \
53 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
54 $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/libmatchbox/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/lib/libmb.so* \
61 $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libmatchbox))