42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'cairo'
|
|
pkgname=cairo
|
|
version=1.15.14
|
|
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="${homepage}/snapshots/${pkgname}-${version}.tar.xz"
|
|
checksum=16566b6c015a761bb0b7595cf879b77f8de85f90b443119083c4c2769b93298d
|
|
|
|
# Package build options
|
|
build_options="gles2 opengl"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) 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
|
|
}
|
|
}
|