- update to Xorg X11R7.4 and reorganization of the xorg-section
[openwrt/svn-archive/archive.git] / Xorg / lib / pixman / 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_BASE_NAME:=pixman
11 PKG_NAME:=pixman
12 PKG_RELEASE:=2
13 PKG_VERSION:=0.12.0
14 PKG_SOURCE_URL:=http://cairographics.org/releases/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/${PKG_NAME}-$(PKG_VERSION)/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 EXTRA_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
21
22 define Package/pixman
23 SECTION:=xorg-lib
24 CATEGORY:=Xorg
25 SUBMENU:=lib
26 DEPENDS:=@DISPLAY_SUPPORT
27 TITLE:=pixman
28 URL:=http://xorg.freedesktop.org/
29 endef
30
31 define Build/Compile
32 $(call $(PKG_NAME)/Compile)
33 make -C $(PKG_BUILD_DIR)
34 DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
35 find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, --enable-malloc0returnsnull)
40 endef
41
42 define Package/pixman/install
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
45 endef
46
47 define Build/InstallDev
48 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
49 endef
50
51 $(eval $(call BuildPackage,pixman))