970fd2e71cd6caac5484103ecb4fb593b29f68d5
[openwrt/svn-archive/archive.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 EXTRA_LDFLAGS:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
22
23 define Package/pixman
24 SECTION:=xorg-libs
25 CATEGORY:=Xorg
26 SUBMENU:=libraries
27 TITLE:=pixman
28 DEPENDS:=+xorg-server-essentials +gtk2.10.14
29 endef
30
31 define Build/Configure
32 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
33 if [ -x $(CONFIGURE_CMD) ]; then \
34 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
35 $(CONFIGURE_VARS) \
36 $(CONFIGURE_CMD) \
37 $(CONFIGURE_ARGS_XTRA) \
38 $(CONFIGURE_ARGS) ;\
39 fi \
40 )
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR)
45 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)
50 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
51 endef
52
53 define Package/pixman/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,pixman))