void-packages/srcpkgs/cairo/template
2014-10-14 16:17:46 +02:00

46 lines
1.3 KiB
Text

# Template build file for 'cairo'.
pkgname=cairo
version=1.14.0
revision=1
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"
homepage="http://cairographics.org"
distfiles="${homepage}/releases/$pkgname-$version.tar.xz"
checksum=2cf5f81432e77ea4359af9dcd0f4faf37d015934501391c311bfd2d19a0134b7
hostmakedepends="automake libtool pkg-config"
makedepends="libpng-devel fontconfig-devel pixman-devel libXrender-devel libglib-devel"
pre_configure() {
autoreconf -fi
}
# Package build options
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}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}