2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'cairo'.
|
|
|
|
pkgname=cairo
|
2013-08-27 06:43:13 +02:00
|
|
|
version=1.12.16
|
2014-09-07 17:40:04 +02:00
|
|
|
revision=7
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-09-08 09:28:09 +02:00
|
|
|
configure_args="--disable-static --disable-lto --enable-tee
|
|
|
|
$(vopt_if opengl '--enable-gl --enable-egl')
|
|
|
|
$(vopt_if gles2 '--enable-egl --enable-glesv2')"
|
2008-10-02 19:50:48 +02:00
|
|
|
short_desc="Vector graphics library with cross-device output support"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-05 23:41:36 +01:00
|
|
|
license="LGPL-2.1, MPL-1.1"
|
2012-06-06 00:22:13 +02:00
|
|
|
homepage="http://cairographics.org"
|
|
|
|
distfiles="${homepage}/releases/$pkgname-$version.tar.xz"
|
2013-08-27 06:43:13 +02:00
|
|
|
checksum=2505959eb3f1de3e1841023b61585bfd35684b9733c7b6a3643f4f4cbde6d846
|
2012-11-08 22:38:08 +01:00
|
|
|
|
2013-03-30 13:41:16 +01:00
|
|
|
hostmakedepends="which automake libtool pkg-config"
|
2013-04-30 10:31:13 +02:00
|
|
|
makedepends="libpng-devel>=1.6 fontconfig-devel pixman-devel>=0.28 libXrender-devel>=0.9.7_3 libglib-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="pixman>=0.28"
|
2013-03-23 09:13:47 +01:00
|
|
|
|
2013-03-24 10:21:58 +01:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-04-10 15:45:31 +02:00
|
|
|
|
|
|
|
# Package build options
|
2013-08-27 06:43:13 +02:00
|
|
|
build_options="gles2 opengl"
|
2014-09-05 09:25:55 +02:00
|
|
|
|
2014-09-07 17:40:04 +02:00
|
|
|
# XXX
|
|
|
|
# On RaspberryPi do not use GL; weston needs rpi-firmware-pcfiles which
|
|
|
|
# conflicts with MesaLib-devel.
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" != "armv6l" ]; then
|
2014-09-05 09:25:55 +02:00
|
|
|
build_options_default="opengl"
|
|
|
|
fi
|
2013-04-10 15:45:31 +02:00
|
|
|
|
|
|
|
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
|
2014-09-07 17:40:04 +02:00
|
|
|
makedepends+=" MesaLib-devel"
|
2013-04-10 15:45:31 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
cairo-devel_package() {
|
2014-09-05 00:57:22 +02:00
|
|
|
depends="${makedepends} cairo>=${version}_${revision}"
|
2014-02-18 15:35:59 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-10 15:45:31 +02:00
|
|
|
pkg_install() {
|
2013-04-10 16:50:24 +02:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-27 06:43:13 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 15:45:31 +02:00
|
|
|
}
|
|
|
|
}
|