Update pixman to 0.11.8 and some package cleanups
[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.11.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://cairographics.org/releases/
16 PKG_MD5SUM:=7b5db768c51337b5e5e954fc9c961cd3
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 EXTRA_LDFLAGS:="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
22 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/gtk-2.0/gdk
23
24 define Package/pixman
25 SECTION:=xorg-libs
26 CATEGORY:=Xorg
27 SUBMENU:=libraries
28 TITLE:=pixman
29 endef
30
31 define Package/pixman/description
32 pixman is a library that provides low-level pixel manipulation
33 features such as image compositing and trapezoid rasterization.
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR)
38 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 endef
45
46 define Package/pixman/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*so* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,pixman))