Retain symlinks. $(INSTALL_*) copys the contens of a file, so if we want to keep
[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.8.6
12 PKG_RELEASE:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://cairographics.org/releases/
16 PKG_MD5SUM:=4e64139ef6f668df24450f3b81dd0771
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 PKG_INSTALL:=1
22
23 define Package/cairo
24 SECTION:=xorg-libs
25 CATEGORY:=Xorg
26 SUBMENU:=libraries
27 TITLE:=Multi-platform 2D graphics library
28 DEPENDS:=+fontconfig +libpng +libexpat +pixman
29 endef
30
31 define Package/cairo/description
32 Cairo is a 2D graphics library. The cairo API provides operations similar
33 to the drawing operators of PostScript and PDF. Operations in cairo
34 include stroking and filling cubic B├ęzier splines, transforming and
35 compositing translucent images, and antialiased text rendering. All
36 drawing operations can be transformed by any affine transformation
37 (scale, rotation, shear, etc.).
38 endef
39
40 CONFIGURE_VARS+=FONTCONFIG_LIBS="-lfreetype -lfontconfig -lz -lexpat"
41 CONFIGURE_ARGS+=--enable-freetype=yes
42 TARGET_CFLAGS+=-L$(STAGING_DIR)/usr/lib
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/lib/
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
47 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
48 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
49 $(INSTALL_DIR) $(1)/usr/include/cairo/
50 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/cairo/* $(1)/usr/include/cairo/
51 endef
52
53 define Package/cairo/install
54 $(INSTALL_DIR) $(1)/usr/lib/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,cairo))