2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'cairo'.
|
|
|
|
pkgname=cairo
|
2015-03-11 13:24:36 +01:00
|
|
|
version=1.14.2
|
2015-06-05 02:27:14 +02:00
|
|
|
revision=3
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-09-08 09:28:09 +02:00
|
|
|
configure_args="--disable-static --disable-lto --enable-tee
|
|
|
|
$(vopt_if opengl '--enable-gl --enable-egl')
|
|
|
|
$(vopt_if gles2 '--enable-egl --enable-glesv2')"
|
2008-10-02 19:50:48 +02:00
|
|
|
short_desc="Vector graphics library with cross-device output support"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-11-05 23:41:36 +01:00
|
|
|
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"
|
2015-03-11 13:24:36 +01:00
|
|
|
checksum=c919d999ddb1bbbecd4bbe65299ca2abd2079c7e13d224577895afa7005ecceb
|
2012-11-08 22:38:08 +01:00
|
|
|
|
2015-05-15 17:31:00 +02:00
|
|
|
desc_option_ultimate="Enable ultimate patchset"
|
|
|
|
|
2014-10-14 16:17:35 +02:00
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2015-03-11 13:24:36 +01:00
|
|
|
makedepends="libpng-devel fontconfig-devel pixman-devel libXrender-devel libglib-devel
|
|
|
|
$(vopt_if opengl MesaLib-devel) $(vopt_if gles2 MesaLib-devel)"
|
2013-03-23 09:13:47 +01:00
|
|
|
|
2015-05-15 17:31:00 +02:00
|
|
|
if [ ${build_option_ultimate} ]; then
|
2015-08-20 12:21:48 +02:00
|
|
|
_ultimate_version="2015-08-01"
|
2015-05-15 17:31:00 +02:00
|
|
|
_ultimate_wrksrc="${XBPS_BUILDDIR}/fontconfig-ultimate-${_ultimate_version}"
|
|
|
|
distfiles+=" https://github.com/bohoomil/fontconfig-ultimate/archive/${_ultimate_version}.tar.gz"
|
2015-08-20 12:21:48 +02:00
|
|
|
checksum+=" 19b3eac37f589a651e90507680c80e19bcb2ed4e3e6c63da7ca3c6e22bb209e9"
|
2015-05-15 17:31:00 +02:00
|
|
|
post_extract() {
|
|
|
|
msg_normal "Applying ultimate patchset"
|
|
|
|
for P in ${_ultimate_wrksrc}/${pkgname}/*.patch; do
|
|
|
|
patch -p1 < $P
|
|
|
|
done
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2013-03-24 10:21:58 +01:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
2013-04-10 15:45:31 +02:00
|
|
|
|
|
|
|
# Package build options
|
2015-05-15 17:31:00 +02:00
|
|
|
build_options="gles2 opengl ultimate"
|
2014-09-05 09:25:55 +02:00
|
|
|
|
2015-03-11 13:24:36 +01:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2015-05-15 17:31:00 +02:00
|
|
|
i686*|x86_64*) build_options_default+=" opengl";;
|
2015-03-11 13:24:36 +01:00
|
|
|
esac
|
2013-04-10 15:45:31 +02:00
|
|
|
|
|
|
|
cairo-devel_package() {
|
2014-09-05 00:57:22 +02:00
|
|
|
depends="${makedepends} cairo>=${version}_${revision}"
|
2014-02-18 15:35:59 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-10 15:45:31 +02:00
|
|
|
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"
|
2013-04-10 15:45:31 +02:00
|
|
|
}
|
|
|
|
}
|