[librsvg] Remove -lm from the .pc file in Windows (#32893)

* [librsvg] Remove -lm from the .pc file in Windows

* Modify
This commit is contained in:
Cheney Wang 2023-08-04 01:19:44 +08:00 committed by GitHub
parent 8b2d844e11
commit 83f77efbd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View File

@ -30,6 +30,13 @@ vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-librsvg CONFIG_PATH share/unoff
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()
if(VCPKG_TARGET_IS_WINDOWS)
file(GLOB_RECURSE pc_files "${CURRENT_PACKAGES_DIR}/*.pc")
foreach(pc_file ${pc_files})
vcpkg_replace_string("${pc_file}" " -lm" "")
endforeach()
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,7 +1,7 @@
{ {
"name": "librsvg", "name": "librsvg",
"version": "2.40.20", "version": "2.40.20",
"port-version": 8, "port-version": 9,
"description": "A small library to render Scalable Vector Graphics (SVG)", "description": "A small library to render Scalable Vector Graphics (SVG)",
"homepage": "https://gitlab.gnome.org/GNOME/librsvg", "homepage": "https://gitlab.gnome.org/GNOME/librsvg",
"license": "LGPL-2.0-or-later", "license": "LGPL-2.0-or-later",

View File

@ -4534,7 +4534,7 @@
}, },
"librsvg": { "librsvg": {
"baseline": "2.40.20", "baseline": "2.40.20",
"port-version": 8 "port-version": 9
}, },
"librsync": { "librsync": {
"baseline": "2.3.2", "baseline": "2.3.2",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "c75d4ca281d1bba78571abdb035e025ded217c00",
"version": "2.40.20",
"port-version": 9
},
{ {
"git-tree": "d72d62fa58fa959323e0bda46bcf26991e460289", "git-tree": "d72d62fa58fa959323e0bda46bcf26991e460289",
"version": "2.40.20", "version": "2.40.20",