distribution/packages/graphics/librsvg/package.mk
2023-03-15 15:20:28 +00:00

22 lines
1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2021-present Frank Hartung (supervisedthinking (@) gmail.com)
PKG_NAME="librsvg"
PKG_VERSION="2.40.21"
PKG_SHA256="f7628905f1cada84e87e2b14883ed57d8094dca3281d5bcb24ece4279e9a92ba"
PKG_LICENSE="LGPL-2.1"
PKG_SITE="https://gitlab.gnome.org/GNOME/librsvg"
PKG_URL="https://download.gnome.org/sources/librsvg/${PKG_VERSION:0:4}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain gdk-pixbuf pango libcroco"
PKG_LONGDESC="This is librsvg - A small library to render Scalable Vector Graphics (SVG), associated with the GNOME Project."
pre_configure_target() {
PKG_CONFIGURE_OPTS_TARGET="ac_cv_path_GDK_PIXBUF_QUERYLOADERS="${SYSROOT_PREFIX}/usr/bin/gdk-pixbuf-query-loaders" \
--enable-installed-tests=no \
--disable-tools \
--enable-introspection=no"
}
pre_make_target() {
sed -e "s:^GLIB_MKENUMS =.*:GLIB_MKENUMS = ${SYSROOT_PREFIX}/usr/bin/glib-mkenums:g" -i ${PKG_BUILD}/.${TARGET_NAME}/Makefile
}