2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'cairo'.
|
|
|
|
pkgname=cairo
|
2013-08-27 04:43:13 +00:00
|
|
|
version=1.12.16
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-03-23 08:13:47 +00:00
|
|
|
configure_args="--disable-static --enable-tee"
|
2008-10-02 17:50:48 +00:00
|
|
|
short_desc="Vector graphics library with cross-device output support"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-05 22:41:36 +00:00
|
|
|
license="LGPL-2.1, MPL-1.1"
|
2012-06-05 22:22:13 +00:00
|
|
|
homepage="http://cairographics.org"
|
|
|
|
distfiles="${homepage}/releases/$pkgname-$version.tar.xz"
|
2013-08-27 04:43:13 +00:00
|
|
|
checksum=2505959eb3f1de3e1841023b61585bfd35684b9733c7b6a3643f4f4cbde6d846
|
2013-03-23 08:13:47 +00:00
|
|
|
long_desc="
|
|
|
|
Cairo is a vector graphics library with cross-device output support. Currently
|
|
|
|
supported output targets include the X Window System and in-memory image
|
|
|
|
buffers. PostScript and PDF file output is planned. Cairo is designed to
|
|
|
|
produce identical output on all output media while taking advantage of display
|
|
|
|
hardware acceleration when available (eg. through the X Render Extension).
|
|
|
|
|
|
|
|
Cairo provides a stateful user-level API with capabilities similar to the PDF
|
|
|
|
1.4 imaging model. Cairo provides operations including stroking and filling
|
|
|
|
Bezier cubic splines, transforming and compositing translucent images, and
|
|
|
|
antialiased text rendering."
|
2012-11-08 21:38:08 +00:00
|
|
|
|
2013-03-30 12:41:16 +00:00
|
|
|
hostmakedepends="which automake libtool pkg-config"
|
2013-04-30 08:31:13 +00:00
|
|
|
makedepends="libpng-devel>=1.6 fontconfig-devel pixman-devel>=0.28 libXrender-devel>=0.9.7_3 libglib-devel"
|
2013-03-23 08:13:47 +00:00
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-04-10 13:45:31 +00:00
|
|
|
|
|
|
|
# Package build options
|
2013-08-27 04:43:13 +00:00
|
|
|
build_options="gles2 opengl"
|
2013-04-10 13:45:31 +00:00
|
|
|
desc_option_gles2="Enable support for building the GLESv2 surface backend"
|
2013-08-27 04:43:13 +00:00
|
|
|
desc_option_opengl="Enable support for building the OpenGL surface backend"
|
2013-04-10 13:45:31 +00:00
|
|
|
|
|
|
|
# Enable gles2 by default on x86.
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
build_options_default="gles2"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_opengl" ]; then
|
|
|
|
configure_args+=" --enable-gl"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-gl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gles2" ]; then
|
|
|
|
configure_args+=" --enable-egl --enable-glesv2"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-egl --disable-glesv2"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
|
|
|
|
makedepends+=" MesaLib-devel"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cairo-devel_package() {
|
2013-04-30 08:31:13 +00:00
|
|
|
depends="fontconfig-devel glib-devel libpng-devel>=1.6 libXrender-devel>=0.9.7_3 pixman-devel cairo>=${version}"
|
2013-04-10 13:45:31 +00:00
|
|
|
short_desc+=" -- development files"
|
|
|
|
|
|
|
|
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
|
|
|
|
depends+=" MesaLib-devel"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pkg_install() {
|
2013-04-10 14:50:24 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-27 04:43:13 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 13:45:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
cairo_package() {
|
|
|
|
depends="pixman>=0.28"
|
2013-04-10 13:46:35 +00:00
|
|
|
pkg_install() {
|
2013-04-30 08:31:13 +00:00
|
|
|
vmove all
|
2013-04-10 13:45:31 +00:00
|
|
|
}
|
|
|
|
}
|