void-packages/srcpkgs/cairo/template

47 lines
1.3 KiB
Plaintext
Raw Normal View History

# Template build file for 'cairo'.
pkgname=cairo
2014-10-14 16:17:35 +02:00
version=1.14.0
revision=2
build_style=gnu-configure
configure_args="--disable-static --disable-lto --enable-tee
$(vopt_if opengl '--enable-gl --enable-egl')
$(vopt_if gles2 '--enable-egl --enable-glesv2')"
short_desc="Vector graphics library with cross-device output support"
maintainer="Juan RP <xtraeme@gmail.com>"
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"
2014-10-14 16:17:35 +02:00
checksum=2cf5f81432e77ea4359af9dcd0f4faf37d015934501391c311bfd2d19a0134b7
2014-10-14 16:17:35 +02:00
hostmakedepends="automake libtool pkg-config"
makedepends="libpng-devel fontconfig-devel pixman-devel libXrender-devel libglib-devel"
pre_configure() {
autoreconf -fi
}
# Package build options
2013-08-27 06:43:13 +02:00
build_options="gles2 opengl"
# XXX
# On RaspberryPi do not use GL; weston needs rpi-firmware-pcfiles which
# conflicts with MesaLib-devel.
if [ "$XBPS_TARGET_MACHINE" != "armv6l" ]; then
build_options_default="opengl"
fi
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
makedepends+=" MesaLib-devel"
fi
cairo-devel_package() {
depends="${makedepends} cairo>=${version}_${revision}"
2014-02-18 15:35:59 +01:00
short_desc+=" - development files"
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"
}
}