2022-11-05 05:36:25 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
|
|
|
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}"
|
|
|
|
SHA512 c74c0854f0afdf97651cb8ae26430a43ebb7d849b7715fdec3abcd96e61f67f0d2bac82b68b10c97dc90ee52b14ba426bbf9413f71caa7de5fa6ecb945cba0d1
|
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)
|