void-packages/srcpkgs/cairo/template

52 lines
1.4 KiB
Plaintext
Raw Normal View History

# Template build file for 'cairo'.
pkgname=cairo
2013-08-27 06:43:13 +02:00
version=1.12.16
revision=6
build_style=gnu-configure
configure_args="--disable-static --disable-lto --enable-tee --enable-egl
$(vopt_enable opengl gl) $(vopt_enable gles2 glesv2)"
short_desc="Vector graphics library with cross-device output support"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1, MPL-1.1"
2012-06-06 00:22:13 +02:00
homepage="http://cairographics.org"
distfiles="${homepage}/releases/$pkgname-$version.tar.xz"
2013-08-27 06:43:13 +02:00
checksum=2505959eb3f1de3e1841023b61585bfd35684b9733c7b6a3643f4f4cbde6d846
2013-03-30 13:41:16 +01:00
hostmakedepends="which automake libtool pkg-config"
2013-04-30 10:31:13 +02:00
makedepends="libpng-devel>=1.6 fontconfig-devel pixman-devel>=0.28 libXrender-devel>=0.9.7_3 libglib-devel"
depends="pixman>=0.28"
pre_configure() {
autoreconf -fi
}
# Package build options
2013-08-27 06:43:13 +02:00
build_options="gles2 opengl"
# On RaspberryPi use GLES, otherwise GL.
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
build_options_default="gles2"
else
build_options_default="opengl"
fi
if [ "$build_option_opengl" -o "$build_option_gles2" ]; then
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
# rpi use native GLES/EGL implementation
makedepends+=" rpi-firmware-pcfiles"
else
makedepends+=" MesaLib-devel"
fi
fi
cairo-devel_package() {
depends="${makedepends} cairo>=${version}_${revision}"
2014-02-18 15:35:59 +01:00
short_desc+=" - development files"
pkg_install() {
2013-04-10 16:50:24 +02:00
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
2013-08-27 06:43:13 +02:00
vmove "usr/lib/*.so"
}
}