df1ada0b4710fc0b17551263adea20a733aab4a1
[packages.git] / XOrg / lib / pixman / Makefile
1
2 # Copyright (C) 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pixman
11 PKG_VERSION:=0.10.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:= http://cairographics.org/releases/
16 PKG_FIXUP = libtool
17 PKG_MD5SUM:=41804ac38025102dcc9891dfd4a3d105
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/pixman
22   SECTION:=xorg-libs
23   CATEGORY:=Xorg
24   SUBMENU:=libraries
25   TITLE:=pixman
26   DEPENDS:=+xorg-server-essentials 
27 endef
28
29 define Build/Configure
30         (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
31                 if [ -x $(CONFIGURE_CMD) ]; then \
32                         $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
33                         $(CONFIGURE_VARS) \
34                         $(CONFIGURE_CMD) \
35                         $(CONFIGURE_ARGS_XTRA) \
36                         $(CONFIGURE_ARGS) ;\
37                 fi \
38         )
39 endef
40
41 define Build/Compile
42         $(MAKE) -C $(PKG_BUILD_DIR)
43         $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
44 endef
45
46 define Build/InstallDev
47         $(INSTALL_DIR) $(1)
48         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
49 endef
50
51 define Package/pixman/Install
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,pixman))