2022-09-04 21:43:37 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="gdk-pixbuf"
|
2023-01-07 23:34:43 +00:00
|
|
|
PKG_VERSION="2.42.10"
|
|
|
|
PKG_SHA256="ee9b6c75d13ba096907a2e3c6b27b61bcd17f5c7ebeab5a5b439d2f2e39fe44b"
|
2022-09-04 21:43:37 +00:00
|
|
|
PKG_LICENSE="OSS"
|
|
|
|
PKG_SITE="http://www.gtk.org/"
|
|
|
|
PKG_URL="https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/${PKG_VERSION:0:4}/gdk-pixbuf-${PKG_VERSION}.tar.xz"
|
2023-01-07 23:34:43 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain glib libjpeg-turbo libpng jasper shared-mime-info tiff zlib"
|
2022-09-04 21:43:37 +00:00
|
|
|
PKG_DEPENDS_CONFIG="shared-mime-info"
|
|
|
|
PKG_LONGDESC="GdkPixbuf is a a GNOME library for image loading and manipulation."
|
|
|
|
|
|
|
|
configure_package() {
|
2023-01-07 23:34:43 +00:00
|
|
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" libX11"
|
2022-09-04 21:43:37 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2023-01-07 23:34:43 +00:00
|
|
|
PKG_MESON_OPTS_TARGET="--wrap-mode=nodownload \
|
|
|
|
-Dgtk_doc=false \
|
2022-09-04 21:43:37 +00:00
|
|
|
-Ddocs=false \
|
|
|
|
-Dintrospection=disabled \
|
|
|
|
-Dman=false \
|
|
|
|
-Drelocatable=false \
|
2023-01-07 23:34:43 +00:00
|
|
|
-Dinstalled_tests=false \
|
|
|
|
-Dtests=false"
|
2022-09-04 21:43:37 +00:00
|
|
|
|
2023-01-07 23:34:43 +00:00
|
|
|
if [ "${DISPLAYSERVER}" != "x11" ]; then
|
2022-09-04 21:43:37 +00:00
|
|
|
PKG_MESON_OPTS_TARGET+=" -Dbuiltin_loaders=all"
|
|
|
|
fi
|
|
|
|
}
|
2023-01-07 23:34:43 +00:00
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/gdk-pixbuf-2.0/2.10.0/
|
|
|
|
cp ${PKG_DIR}/config/* ${INSTALL}/usr/lib/gdk-pixbuf-2.0/2.10.0/
|
|
|
|
}
|