2008-11-16 23:48:21 +00:00
|
|
|
#
|
2010-03-24 04:49:34 +00:00
|
|
|
# Copyright (C) 2008-2010 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
|
2009-10-31 00:27:34 +00:00
|
|
|
PKG_VERSION:=1.8.8
|
|
|
|
PKG_RELEASE:=1
|
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/
|
2009-10-31 00:27:34 +00:00
|
|
|
PKG_MD5SUM:=d3e1a1035ae563812d4dd44a74fb0dd0
|
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
|
2009-11-12 01:06:35 +00:00
|
|
|
DEPENDS:=+fontconfig +libpng +libexpat +pixman \
|
|
|
|
+FEATURE_drawing-backend_DirectFB:DirectFB \
|
|
|
|
+FEATURE_drawing-backend_libX11:libX11
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://cairographics.org/
|
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"
|
2009-11-12 01:06:35 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-freetype=yes \
|
|
|
|
--disable-win32 \
|
|
|
|
--enable-xlib-xrender=no \
|
|
|
|
$(if $(CONFIG_FEATURE_drawing-backend_DirectFB), --enable-directfb, --disable-directfb) \
|
|
|
|
$(if $(CONFIG_FEATURE_drawing-backend_libX11), --enable-xlib --with-x, --disable-xlib --without-x)
|
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))
|