42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'cairo'
|
|
pkgname=cairo
|
|
version=1.16.0
|
|
revision=2
|
|
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="Enno Boland <gottox@voidlinux.org>"
|
|
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*|ppc*) 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
|
|
}
|
|
}
|