2022-11-05 05:36:25 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
2023-08-19 02:34:18 +08:00
|
|
|
string(REPLACE "." "_" release_tag "xmlsec_${VERSION}")
|
2019-07-10 03:46:45 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO lsh123/xmlsec
|
2022-11-05 05:36:25 +08:00
|
|
|
REF "${release_tag}"
|
2024-08-08 08:28:30 +08:00
|
|
|
SHA512 8574eca37c0be55126e50a76322f96171c9d82dbdd793fdbc26430526488e69db8b41351f136f77bd36f8a3ea238c350bc62dd99214b8348b65dd8055a1c6148
|
2019-07-10 03:46:45 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2021-05-26 04:34:00 +08:00
|
|
|
pkgconfig_fixes.patch
|
2019-07-10 03:46:45 +08:00
|
|
|
)
|
|
|
|
|
2022-11-05 05:36:25 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-07-10 03:46:45 +08:00
|
|
|
|
2022-03-25 03:10:28 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-10 03:46:45 +08:00
|
|
|
OPTIONS_DEBUG -DINSTALL_HEADERS_TOOLS=OFF
|
|
|
|
)
|
|
|
|
|
2022-03-25 03:10:28 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-11-05 05:36:25 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-xmlsec)
|
2021-05-26 04:34:00 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2022-11-05 05:36:25 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-07-10 03:46:45 +08:00
|
|
|
|
2022-11-05 05:36:25 +08:00
|
|
|
# unofficial legacy usage
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/xmlsec-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2019-07-10 03:46:45 +08:00
|
|
|
|
2022-11-05 05:36:25 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/Copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|