Cleanup libmatchbox package.
[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:=1
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_BUILD_DIR=$(BUILD_DIR)/${PKG_NAME}-$(PKG_VERSION)
18 PKG_FIXUP:=libtool
19
20 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib/
21
22 include $(INCLUDE_DIR)/package.mk
23
24 PKG_INSTALL:=1
25
26 define Package/libmatchbox
27 SECTION:=xorg-libraries
28 CATEGORY:=Xorg
29 SUBMENU:=libraries
30 DEPENDS:=+libX11 +libXft +libpng +libjpeg +libXext +pango
31 TITLE:=libmatchbox
32 URL:=http://matchbox-project.org
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-pango \
38 --enable-jpeg \
39 --enable-png \
40 --enable-Xft \
41 )
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include/libmb
46 $(INSTALL_DATA) \
47 $(PKG_INSTALL_DIR)/usr/include/libmb/*.h \
48 $(1)/usr/include/libmb/
49 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
50 $(INSTALL_DATA) \
51 $(PKG_INSTALL_DIR)/usr/lib/libmb.{so*,a,la} \
52 $(1)/usr/lib/
53 $(INSTALL_DATA) \
54 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
55 $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/libmatchbox/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(INSTALL_DATA) \
61 $(PKG_INSTALL_DIR)/usr/lib/libmb.so* \
62 $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libmatchbox))