2021-04-26 19:28:21 +02:00
|
|
|
# port update requires rust/cargo
|
|
|
|
|
2019-07-10 12:48:17 -06:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://download.gnome.org/sources/librsvg/2.40/librsvg-2.40.20.tar.xz"
|
|
|
|
FILENAME "librsvg-2.40.20.tar.xz"
|
|
|
|
SHA512 cdd8224deb4c3786e29f48ed02c32ed9dff5cb15aba574a5ef845801ad3669cfcc3eedb9d359c22213dc7a29de24c363248825adad5877c40abf73b3688ff12f
|
|
|
|
)
|
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2020-06-11 10:13:11 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2019-07-10 12:48:17 -06:00
|
|
|
)
|
|
|
|
|
2021-08-09 23:56:04 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/config.h.linux" "${SOURCE_PATH}/config.h.linux" COPYONLY)
|
2019-07-10 12:48:17 -06:00
|
|
|
|
2021-04-26 19:28:21 +02:00
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
2021-08-09 23:56:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-06-25 04:04:57 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2021-04-26 19:28:21 +02:00
|
|
|
OPTIONS
|
|
|
|
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
|
2019-07-10 12:48:17 -06:00
|
|
|
)
|
|
|
|
|
2021-08-09 23:56:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-10 12:48:17 -06:00
|
|
|
|
2020-06-11 10:13:11 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-08-09 23:56:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-librsvg CONFIG_PATH share/unofficial-librsvg)
|
2020-06-11 10:13:11 +08:00
|
|
|
|
2021-08-09 23:56:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-10 12:48:17 -06:00
|
|
|
|
2021-08-09 23:56:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|