void-packages/srcpkgs/cairo/template
2019-01-07 16:10:21 +01:00

41 lines
1.2 KiB
Bash

# Template file for 'cairo'
pkgname=cairo
version=1.16.0
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-tee
$(vopt_if opengl '--enable-gl --enable-egl')
$(vopt_if gles2 '--enable-egl --enable-glesv2')"
hostmakedepends="pkg-config"
makedepends="fontconfig-devel freetype-devel libglib-devel libpng-devel libX11-devel
libxcb-devel libXext-devel libXrender-devel lzo-devel pixman-devel zlib-devel
$(vopt_if opengl MesaLib-devel) $(vopt_if gles2 MesaLib-devel)"
short_desc="Vector graphics library with cross-device output support"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="LGPL-2.1-or-later, MPL-1.1"
homepage="https://cairographics.org"
distfiles="https://cairographics.org/releases/cairo-${version}.tar.xz"
checksum=5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
# Package build options
build_options="gles2 opengl"
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*|ppc64*) build_options_default+=" opengl";;
esac
do_check() {
# tests get stuck at check-TESTS
:
}
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
}
}