cairo: updated to 1.16.0 / reworked configure opts

This commit is contained in:
5schatten 2019-05-12 19:24:32 +02:00
parent a2ca748afb
commit 49ee32eeca

View File

@ -1,87 +1,91 @@
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="cairo" PKG_NAME="cairo"
PKG_VERSION="1.14.10" PKG_VERSION="1.16.0"
PKG_SHA256="7e87878658f2c9951a14fc64114d4958c0e65ac47530b8ac3078b2ce41b66a09" PKG_SHA256="5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331"
PKG_LICENSE="LGPL" PKG_LICENSE="LGPL"
PKG_SITE="http://cairographics.org/" PKG_SITE="http://cairographics.org/"
PKG_URL="http://cairographics.org/releases/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_URL="http://cairographics.org/releases/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain zlib freetype fontconfig glib libpng pixman" PKG_DEPENDS_TARGET="toolchain zlib freetype fontconfig glib libpng pixman"
PKG_LONGDESC="Cairo is a vector graphics library with cross-device output support." PKG_LONGDESC="Cairo is a vector graphics library with cross-device output support."
PKG_TOOLCHAIN="configure" # ToDo PKG_TOOLCHAIN="configure"
if [ "$OPENGL" != "no" ]; then configure_package() {
PKG_DEPENDS_TARGET+=" $OPENGL" if [ "${DISPLAYSERVER}" = "x11" ]; then
fi PKG_DEPENDS_TARGET+=" libXrender libX11 mesa"
fi
if [ "$OPENGLES" != "no" ]; then if [ "${OPENGL_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" $OPENGLES" PKG_DEPENDS_TARGET+=" ${OPENGL}"
fi elif [ "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
}
if [ "$DISPLAYSERVER" = "x11" ]; then pre_configure_target() {
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET libXrender libX11 mesa" PKG_CONFIGURE_OPTS_TARGET="--disable-silent-rules \
PKG_CAIRO_CONFIG="--x-includes="$SYSROOT_PREFIX/usr/include" \ --enable-shared \
--x-libraries="$SYSROOT_PREFIX/usr/lib" \ --disable-static \
--enable-xlib \ --disable-gtk-doc \
--enable-xlib-xrender \ --enable-largefile \
--enable-gl \ --enable-atomic \
--enable-glx \ --disable-gcov \
--disable-glesv2 \ --disable-valgrind \
--disable-egl \ --disable-xcb \
--with-x" --disable-xlib-xcb \
else --disable-xcb-shm \
PKG_CAIRO_CONFIG="--disable-xlib \ --disable-qt \
--disable-xlib-xrender \ --disable-quartz \
--disable-gl \ --disable-quartz-font \
--disable-glx \ --disable-quartz-image \
--enable-glesv2 \ --disable-win32 \
--enable-egl \ --disable-win32-font \
--without-x" --disable-os2 \
fi --disable-beos \
--disable-cogl \
--disable-drm \
--disable-gallium \
--enable-png \
--disable-directfb \
--disable-vg \
--disable-wgl \
--disable-script \
--enable-ft \
--enable-fc \
--enable-ps \
--enable-pdf \
--enable-svg \
--disable-test-surfaces \
--disable-tee \
--disable-xml \
--enable-pthread \
--enable-gobject=yes \
--disable-full-testing \
--disable-trace \
--enable-interpreter \
--disable-symbol-lookup \
--enable-some-floating-point \
--with-gnu-ld"
PKG_CONFIGURE_OPTS_TARGET="$PKG_CAIRO_CONFIG \ if [ "${DISPLAYSERVER}" = "x11" ]; then
--disable-silent-rules \ PKG_CONFIGURE_OPTS_TARGET+=" --x-includes="${SYSROOT_PREFIX}/usr/include" \
--enable-shared \ --x-libraries="${SYSROOT_PREFIX}/usr/lib" \
--disable-static \ --enable-xlib \
--disable-gtk-doc \ --enable-xlib-xrender \
--enable-largefile \ --enable-gl \
--enable-atomic \ --enable-glx \
--disable-gcov \ --disable-glesv2 \
--disable-valgrind \ --disable-egl \
--disable-xcb \ --with-x"
--disable-xlib-xcb \ else
--disable-xcb-shm \ PKG_CONFIGURE_OPTS_TARGET+=" --disable-xlib \
--disable-qt \ --disable-xlib-xrender \
--disable-quartz \ --disable-gl \
--disable-quartz-font \ --disable-glx \
--disable-quartz-image \ --enable-glesv2 \
--disable-win32 \ --enable-egl \
--disable-win32-font \ --without-x"
--disable-skia \ fi
--disable-os2 \ }
--disable-beos \
--disable-cogl \
--disable-drm \
--disable-gallium \
--enable-png \
--disable-directfb \
--disable-vg \
--disable-wgl \
--disable-script \
--enable-ft \
--enable-fc \
--enable-ps \
--enable-pdf \
--enable-svg \
--disable-test-surfaces \
--disable-tee \
--disable-xml \
--enable-pthread \
--enable-gobject=yes \
--disable-full-testing \
--disable-trace \
--enable-interpreter \
--disable-symbol-lookup \
--enable-some-floating-point \
--with-gnu-ld"