mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 17:59:45 +00:00
43 lines
1.5 KiB
Makefile
43 lines
1.5 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="cairo"
|
|
PKG_VERSION="1.18.0"
|
|
PKG_SHA256="243a0736b978a33dee29f9cca7521733b78a65b5418206fef7bd1c3d4cf10b64"
|
|
PKG_LICENSE="LGPL"
|
|
PKG_SITE="https://cairographics.org/"
|
|
PKG_URL="https://cairographics.org/releases/${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."
|
|
|
|
configure_package() {
|
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
|
PKG_DEPENDS_TARGET+=" libXrender libX11 mesa"
|
|
fi
|
|
}
|
|
|
|
pre_configure_target() {
|
|
PKG_MESON_OPTS_TARGET="-Ddwrite=disabled \
|
|
-Dfontconfig=enabled \
|
|
-Dfreetype=enabled \
|
|
-Dpng=enabled \
|
|
-Dquartz=disabled \
|
|
-Dtee=disabled \
|
|
-Dxcb=disabled \
|
|
-Dxlib-xcb=disabled \
|
|
-Dzlib=enabled \
|
|
-Dtests=disabled \
|
|
-Dgtk2-utils=disabled \
|
|
-Dglib=enabled \
|
|
-Dspectre=disabled \
|
|
-Dsymbol-lookup=disabled \
|
|
-Dgtk_doc=false"
|
|
|
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
|
PKG_MESON_OPTS_TARGET+=" -Dxlib=enabled"
|
|
else
|
|
PKG_MESON_OPTS_TARGET+=" -Dxlib=disabled"
|
|
fi
|
|
}
|