[librsvg] Fix for macOS (#11722)

* fix librsvg

* fix for linux dependencies

* fix for linux dependencies (retry)

* increase control port version

Co-authored-by: Angel Sánchez <angelsanchez@inedit.com>
This commit is contained in:
angelmixu 2020-06-05 21:09:14 +02:00 committed by GitHub
parent ec7c7afbe7
commit f3c92f82d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View File

@ -5,11 +5,19 @@ find_package(unofficial-cairo CONFIG REQUIRED)
find_package(unofficial-libcroco CONFIG REQUIRED)
find_package(unofficial-glib CONFIG REQUIRED)
find_package(LibXml2 REQUIRED)
find_library(PANGO_LIB pango-1.0)
find_library(PANGO_CAIRO_LIB pangocairo-1.0)
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
find_library(PANGO_LIB pango-1.0)
find_library(PANGO_CAIRO_LIB pangocairo-1.0)
find_library(GDK_PIXBUF_LIB gdk_pixbuf-2.0)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
find_library(PANGO_LIB pango-1.0)
find_library(PANGO_CAIRO_LIB pangocairo-1.0)
find_library(GDK_PIXBUF_LIB gdk_pixbuf-2)
else()
find_library(PANGO_LIB pango-1)
find_library(PANGO_CAIRO_LIB pangocairo-1)
find_library(PANGO_FT2_LIB pangoft2-1)
find_library(FONTCONFIG_LIB fontconfig)
find_library(GDK_PIXBUF_LIB gdk_pixbuf-2)
endif()
@ -112,6 +120,8 @@ target_link_libraries(rsvg-2.40 PRIVATE
${PANGO_LIB}
${PANGO_CAIRO_LIB}
${GDK_PIXBUF_LIB}
${PANGO_FT2_LIB}
${FONTCONFIG_LIB}
)
target_link_libraries(pixbufloader-svg PRIVATE
rsvg-2.40

View File

@ -1,4 +1,4 @@
Source: librsvg
Version: 2.40.20
Version: 2.40.20-1
Description: A small library to render Scalable Vector Graphics (SVG)
Build-Depends: cairo, pango, gdk-pixbuf, libcroco