source: packages/Xorg/lib/cairo/Makefile @ 21419

Last change on this file since 21419 was 21419, checked in by mirko, 7 years ago

adjust dependencies regarding previous name change "DirectFB" -> "directfb"

File size: 2.0 KB
Line 
1#
2# Copyright (C) 2008-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=cairo
11PKG_VERSION:=1.8.8
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://cairographics.org/releases/
16PKG_MD5SUM:=d3e1a1035ae563812d4dd44a74fb0dd0
17PKG_FIXUP:=libtool
18
19include $(INCLUDE_DIR)/package.mk
20
21PKG_INSTALL:=1
22
23define Package/cairo
24  SECTION:=xorg-libraries
25  CATEGORY:=Xorg
26  SUBMENU:=libraries
27  TITLE:=Multi-platform 2D graphics library
28  DEPENDS:=+fontconfig +libpng +libexpat +pixman \
29  +FEATURE_drawing-backend_DirectFB:directfb \
30  +FEATURE_drawing-backend_libX11:libX11
31  URL:=http://cairographics.org/
32endef
33
34define Package/cairo/description
35Cairo is a 2D graphics library. The cairo API provides operations similar
36to the drawing operators of PostScript and PDF. Operations in cairo
37include stroking and filling cubic Bézier splines, transforming and
38compositing translucent images, and antialiased text rendering. All
39drawing operations can be transformed by any affine transformation
40(scale, rotation, shear, etc.).
41endef
42
43CONFIGURE_VARS+=FONTCONFIG_LIBS="-lfreetype -lfontconfig -lz -lexpat"
44
45CONFIGURE_ARGS+= \
46        --enable-freetype=yes \
47        --disable-win32 \
48        --enable-xlib-xrender=no \
49        $(if $(CONFIG_FEATURE_drawing-backend_DirectFB), --enable-directfb, --disable-directfb) \
50        $(if $(CONFIG_FEATURE_drawing-backend_libX11), --enable-xlib --with-x, --disable-xlib --without-x)
51
52define Build/InstallDev
53        $(INSTALL_DIR) $(1)/usr/lib/
54        $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
55        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
56        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
57        $(INSTALL_DIR) $(1)/usr/include/cairo/
58        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/cairo/* $(1)/usr/include/cairo/
59endef
60
61define Package/cairo/install
62        $(INSTALL_DIR) $(1)/usr/lib/
63        $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
64endef
65
66$(eval $(call BuildPackage,cairo))
Note: See TracBrowser for help on using the repository browser.