mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
cairo: update to 1.17.8 and meson
breaking changes in 1.17.8: - migrate to meson - drop GL and GLES drawing support news: - https://www.cairographics.org/news/cairo-1.17.8/
This commit is contained in:
parent
1de182f5d8
commit
727fdb8b72
@ -3,103 +3,41 @@
|
||||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="cairo"
|
||||
PKG_VERSION="1.17.6"
|
||||
PKG_SHA256="4eebc4c2bad0402bc3f501db184417094657d111fb6c06f076a82ea191fe1faf"
|
||||
PKG_VERSION="1.17.8"
|
||||
PKG_SHA256="5b10c8892d1b58d70d3f0ba5b47863a061262fa56b9dc7944161f8c8b783bc64"
|
||||
PKG_LICENSE="LGPL"
|
||||
PKG_SITE="https://cairographics.org/"
|
||||
PKG_URL="https://download.gnome.org/sources/cairo/$(get_pkg_version_maj_min)/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
PKG_URL="https://cairographics.org/snapshots/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain zlib freetype fontconfig glib libpng pixman"
|
||||
PKG_LONGDESC="Cairo is a vector graphics library with cross-device output support."
|
||||
PKG_TOOLCHAIN="configure"
|
||||
|
||||
configure_package() {
|
||||
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
||||
PKG_DEPENDS_TARGET+=" libXrender libX11 mesa"
|
||||
fi
|
||||
|
||||
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGL}"
|
||||
elif [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
||||
fi
|
||||
}
|
||||
|
||||
pre_configure_target() {
|
||||
PKG_CONFIGURE_OPTS_TARGET="--disable-silent-rules \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-gtk-doc \
|
||||
--enable-largefile \
|
||||
--enable-atomic \
|
||||
--disable-gcov \
|
||||
--disable-valgrind \
|
||||
--disable-xcb \
|
||||
--disable-xlib-xcb \
|
||||
--disable-xcb-shm \
|
||||
--disable-qt \
|
||||
--disable-quartz \
|
||||
--disable-quartz-font \
|
||||
--disable-quartz-image \
|
||||
--disable-win32 \
|
||||
--disable-win32-font \
|
||||
--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-rpath \
|
||||
--disable-trace \
|
||||
--enable-interpreter \
|
||||
--disable-symbol-lookup \
|
||||
--enable-some-floating-point \
|
||||
--with-gnu-ld"
|
||||
PKG_MESON_OPTS_TARGET="-Ddwrite=disabled \
|
||||
-Dfontconfig=enabled \
|
||||
-Dfreetype=enabled \
|
||||
-Dpng=enabled \
|
||||
-Dquartz=disabled \
|
||||
-Dtee=disabled \
|
||||
-Dxcb=disabled \
|
||||
-Dxlib-xcb=disabled \
|
||||
-Dxml=disabled \
|
||||
-Dzlib=enabled \
|
||||
-Dtests=disabled \
|
||||
-Dgtk2-utils=disabled \
|
||||
-Dglib=enabled \
|
||||
-Dspectre=disabled \
|
||||
-Dsymbol-lookup=disabled \
|
||||
-Dgtk_doc=false"
|
||||
|
||||
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --x-includes="${SYSROOT_PREFIX}/usr/include" \
|
||||
--x-libraries="${SYSROOT_PREFIX}/usr/lib" \
|
||||
--enable-xlib \
|
||||
--enable-xlib-xrender \
|
||||
--with-x"
|
||||
PKG_MESON_OPTS_TARGET+=" -Dxlib=enabled"
|
||||
else
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-xlib \
|
||||
--disable-xlib-xrender \
|
||||
--without-x"
|
||||
fi
|
||||
|
||||
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --enable-gl \
|
||||
--enable-glx \
|
||||
--disable-glesv2 \
|
||||
--disable-egl"
|
||||
elif [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-gl \
|
||||
--disable-glx \
|
||||
--enable-glesv2 \
|
||||
--enable-egl"
|
||||
else
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-gl \
|
||||
--disable-glx \
|
||||
--disable-glesv2 \
|
||||
--disable-egl"
|
||||
PKG_MESON_OPTS_TARGET+=" -Dxlib=disabled"
|
||||
fi
|
||||
}
|
||||
|
||||
post_configure_target() {
|
||||
libtool_remove_rpath libtool
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user