2008-11-16 23:48:21 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2008-2009 OpenWrt.org
|
2007-10-04 19:02:05 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cairo
|
2008-12-16 20:49:55 +00:00
|
|
|
PKG_VERSION:=1.8.6
|
2009-01-04 00:06:33 +00:00
|
|
|
PKG_RELEASE:=5
|
2007-10-04 19:02:05 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2008-05-15 21:08:09 +00:00
|
|
|
PKG_SOURCE_URL:=http://cairographics.org/releases/
|
2008-12-16 20:49:55 +00:00
|
|
|
PKG_MD5SUM:=4e64139ef6f668df24450f3b81dd0771
|
2008-09-01 23:21:08 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2007-10-04 19:02:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-11-16 23:48:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2007-10-04 19:02:05 +00:00
|
|
|
define Package/cairo
|
|
|
|
SECTION:=xorg-libs
|
|
|
|
CATEGORY:=Xorg
|
|
|
|
SUBMENU:=libraries
|
2008-09-01 23:21:08 +00:00
|
|
|
TITLE:=Multi-platform 2D graphics library
|
2008-11-16 19:31:42 +00:00
|
|
|
DEPENDS:=+fontconfig +libpng +libexpat +pixman
|
2007-10-04 19:02:05 +00:00
|
|
|
endef
|
|
|
|
|
2008-09-01 23:21:08 +00:00
|
|
|
define Package/cairo/description
|
|
|
|
Cairo is a 2D graphics library. The cairo API provides operations similar
|
|
|
|
to the drawing operators of PostScript and PDF. Operations in cairo
|
|
|
|
include stroking and filling cubic Bézier splines, transforming and
|
|
|
|
compositing translucent images, and antialiased text rendering. All
|
|
|
|
drawing operations can be transformed by any affine transformation
|
|
|
|
(scale, rotation, shear, etc.).
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_VARS+=FONTCONFIG_LIBS="-lfreetype -lfontconfig -lz -lexpat"
|
|
|
|
CONFIGURE_ARGS+=--enable-freetype=yes
|
2009-04-29 12:56:17 +00:00
|
|
|
TARGET_CFLAGS+=$(TARGET_LDFLAGS)
|
2007-10-04 19:02:05 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-09-01 23:21:08 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
|
2008-09-01 23:21:08 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/cairo/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/cairo/* $(1)/usr/include/cairo/
|
2007-10-04 19:02:05 +00:00
|
|
|
endef
|
|
|
|
|
2008-05-24 17:11:10 +00:00
|
|
|
define Package/cairo/install
|
2008-09-01 23:21:08 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
|
2007-10-04 19:02:05 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,cairo))
|