55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
# Template build file for 'cairo'.
|
|
pkgname=cairo
|
|
version=1.14.6
|
|
revision=2
|
|
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=613cb38447b76a93ff7235e17acd55a78b52ea84a9df128c3f2257f8eaa7b252
|
|
|
|
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)"
|
|
|
|
if [ ${build_option_ultimate} ]; then
|
|
_ultimate_version="2015-11-30"
|
|
_ultimate_wrksrc="${XBPS_BUILDDIR}/fontconfig-ultimate-${_ultimate_version}"
|
|
distfiles+=" https://github.com/bohoomil/fontconfig-ultimate/archive/${_ultimate_version}.tar.gz"
|
|
checksum+=" e6846c4d8c51b4095f78c3588cc7ced29f0a4aa9e3a4b4aac597beca58604f21"
|
|
post_extract() {
|
|
msg_normal "Applying ultimate patchset"
|
|
for P in ${_ultimate_wrksrc}/${pkgname}/*.patch; do
|
|
patch -p1 < $P
|
|
done
|
|
}
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
# Package build options
|
|
build_options="gles2 opengl ultimate"
|
|
desc_option_ultimate="Enable ultimate patchset"
|
|
|
|
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"
|
|
}
|
|
}
|