2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'cairo'.
|
|
|
|
pkgname=cairo
|
2014-10-14 14:17:35 +00:00
|
|
|
version=1.14.0
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-09-08 07:28:09 +00: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 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"
|
2014-10-14 14:17:35 +00:00
|
|
|
checksum=2cf5f81432e77ea4359af9dcd0f4faf37d015934501391c311bfd2d19a0134b7
|
2012-11-08 21:38:08 +00:00
|
|
|
|
2014-10-14 14:17:35 +00:00
|
|
|
hostmakedepends="automake libtool pkg-config"
|
|
|
|
makedepends="libpng-devel fontconfig-devel pixman-devel libXrender-devel 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"
|
2014-09-05 07:25:55 +00:00
|
|
|
|
2014-09-07 15:40:04 +00: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 07:25:55 +00:00
|
|
|
build_options_default="opengl"
|
|
|
|
fi
|
2013-04-10 13:45:31 +00:00
|
|
|
|
|
|
|
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
|
2014-09-07 15:40:04 +00:00
|
|
|
makedepends+=" MesaLib-devel"
|
2013-04-10 13:45:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cairo-devel_package() {
|
2014-09-04 22:57:22 +00:00
|
|
|
depends="${makedepends} cairo>=${version}_${revision}"
|
2014-02-18 14:35:59 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-10 13:45:31 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|