- update to Xorg X11R7.4 and reorganization of the xorg-section
[openwrt/svn-archive/archive.git] / Xorg / lib / cairo / 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:=cairo
11 PKG_VERSION:=1.6.4
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:=a198d509f9e3a35b78de8bb02174ebb9
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/cairo
22 SECTION:=xorg-libs
23 CATEGORY:=Xorg
24 SUBMENU:=libraries
25 TITLE:=Multi-platform 2D graphics library
26 DEPENDS:=+fontconfig +libpng +libexpat +pixman
27 endef
28
29 define Package/cairo/description
30 Cairo is a 2D graphics library. The cairo API provides operations similar
31 to the drawing operators of PostScript and PDF. Operations in cairo
32 include stroking and filling cubic B├ęzier splines, transforming and
33 compositing translucent images, and antialiased text rendering. All
34 drawing operations can be transformed by any affine transformation
35 (scale, rotation, shear, etc.).
36 endef
37
38 CONFIGURE_VARS+=FONTCONFIG_LIBS="-lfreetype -lfontconfig -lz -lexpat"
39 CONFIGURE_ARGS+=--enable-freetype=yes
40 TARGET_CFLAGS+=-L$(STAGING_DIR)/usr/lib
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR)
44 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/lib/
49 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la} $(1)/usr/lib/
50 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
51 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
52 $(INSTALL_DIR) $(1)/usr/include/cairo/
53 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/cairo/* $(1)/usr/include/cairo/
54 endef
55
56 define Package/cairo/install
57 $(INSTALL_DIR) $(1)/usr/lib/
58 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,cairo))