Advertisement
Guest User

Untitled

a guest
Jul 6th, 2018
1,525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. ################################################################################
  2. # This file is part of SIP-Online - http://www.sip-online.fr
  3. # Copyright (C) 2009-2018 SIP-Online (contact@sip-online.fr)
  4. #
  5. # LibreELEC is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # LibreELEC is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
  17. ################################################################################
  18.  
  19. PKG_NAME="librsvg"
  20. PKG_VERSION_MAJOR="2.40"
  21. PKG_VERSION="$PKG_VERSION_MAJOR.20"
  22. PKG_REV="1"
  23. PKG_ARCH="any"
  24. PKG_LICENSE="LGPL"
  25. PKG_SITE="https://wiki.gnome.org/action/show/Projects/LibRsvg"
  26. PKG_URL="http://ftp.gnome.org/pub/gnome/sources/$PKG_NAME/$PKG_VERSION_MAJOR/$PKG_NAME-$PKG_VERSION.tar.xz"
  27. PKG_DEPENDS_TARGET="curl:host librespot cairo freetype gdk-pixbuf libxml2 pango libcroco"
  28. PKG_PRIORITY="optional"
  29. PKG_SECTION="livetv-addon"
  30. PKG_SHORTDESC="librsvg is a library to render SVG files using cairo."
  31. PKG_LONGDESC="The rsvg library is an efficient renderer for Scalable Vector Graphics (SVG) pictures."
  32. PKG_MAINTAINER="SIP-Online (contact@sip-online.fr)"
  33.  
  34. PKG_IS_ADDON="no"
  35. PKG_AUTORECONF="yes"
  36.  
  37. PKG_CONFIGURE_OPTS_TARGET="--disable-pixbuf-loader --disable-tools --enable-introspection=no"
  38.  
  39. pre_configure_target() {
  40. . "$TOOLCHAIN/.cargo/env"
  41. }
  42.  
  43. post_makeinstall_target() {
  44. # cairo
  45. cp -PR $(get_build_dir cairo)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
  46.  
  47. # pango
  48. cp -PR $(get_build_dir pango)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
  49.  
  50. # gdk-pixbuf
  51. cp -PR $(get_build_dir gdk-pixbuf)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
  52.  
  53. # harfbuzz
  54. cp -PR $(get_build_dir harfbuzz)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
  55.  
  56. # pixman
  57. cp -PR $(get_build_dir pixman)/.no_install_pkg/usr/lib/* "$INSTALL/usr/lib"
  58. }
  59.  
  60. pre_install() {
  61. if [ -d "$PKG_BUILD/.install_pkg" ]; then
  62. if [ -d "$PKG_BUILD/.install_pkg_$PKG_SECTION" ]; then
  63. rm -r "$PKG_BUILD/.install_pkg_$PKG_SECTION"
  64. fi
  65.  
  66. mv "$PKG_BUILD/.install_pkg" "$PKG_BUILD/.install_pkg_$PKG_SECTION"
  67. fi
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement