40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template build file for 'cairo'.
|
|
pkgname=cairo
|
|
version=1.14.8
|
|
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@voidlinux.eu>"
|
|
license="LGPL-2.1, MPL-1.1"
|
|
homepage="http://cairographics.org"
|
|
distfiles="${homepage}/releases/$pkgname-$version.tar.xz"
|
|
checksum=d1f2d98ae9a4111564f6de4e013d639cf77155baf2556582295a0f00a9bc5e20
|
|
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libpng-devel fontconfig-devel pixman-devel libXrender-devel libglib-devel
|
|
$(vopt_if opengl MesaLib-devel) $(vopt_if gles2 MesaLib-devel)"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
# Package build options
|
|
build_options="gles2 opengl"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) build_options_default+=" opengl";;
|
|
esac
|
|
|
|
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
|
|
}
|
|
}
|