Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # This file is part of SIP-Online - http://www.sip-online.fr
- # Copyright (C) 2009-2018 SIP-Online (contact@sip-online.fr)
- #
- # LibreELEC is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 2 of the License, or
- # (at your option) any later version.
- #
- # LibreELEC is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
- ################################################################################
- PKG_NAME="librsvg"
- PKG_VERSION_MAJOR="2.40"
- PKG_VERSION="$PKG_VERSION_MAJOR.20"
- PKG_REV="1"
- PKG_ARCH="any"
- PKG_LICENSE="LGPL"
- PKG_SITE="https://wiki.gnome.org/action/show/Projects/LibRsvg"
- PKG_URL="http://ftp.gnome.org/pub/gnome/sources/$PKG_NAME/$PKG_VERSION_MAJOR/$PKG_NAME-$PKG_VERSION.tar.xz"
- PKG_DEPENDS_TARGET="curl:host librespot cairo freetype gdk-pixbuf libxml2 pango libcroco"
- PKG_PRIORITY="optional"
- PKG_SECTION="livetv-addon"
- PKG_SHORTDESC="librsvg is a library to render SVG files using cairo."
- PKG_LONGDESC="The rsvg library is an efficient renderer for Scalable Vector Graphics (SVG) pictures."
- PKG_MAINTAINER="SIP-Online (contact@sip-online.fr)"
- PKG_IS_ADDON="no"
- PKG_AUTORECONF="yes"
- PKG_CONFIGURE_OPTS_TARGET="--disable-pixbuf-loader --disable-tools --enable-introspection=no"
- pre_configure_target() {
- . "$TOOLCHAIN/.cargo/env"
- }
- post_makeinstall_target() {
- # cairo
- cp -PR $(get_build_dir cairo)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
- # pango
- cp -PR $(get_build_dir pango)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
- # gdk-pixbuf
- cp -PR $(get_build_dir gdk-pixbuf)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
- # harfbuzz
- cp -PR $(get_build_dir harfbuzz)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
- # pixman
- cp -PR $(get_build_dir pixman)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
- }
- pre_install() {
- if [ -d "$PKG_BUILD/.install_pkg" ]; then
- if [ -d "$PKG_BUILD/.install_pkg_$PKG_SECTION" ]; then
- rm -r "$PKG_BUILD/.install_pkg_$PKG_SECTION"
- fi
- mv "$PKG_BUILD/.install_pkg" "$PKG_BUILD/.install_pkg_$PKG_SECTION"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement