vcpkg/ports/xmlsec/portfile.cmake
Dawid Wróbel a47809ed9e
[xmlsec] add pkgconfig files (#16908)
* [xmlsec] add pkgconfig files

- also fixes the library filename, which is actually libxmlsec1.
  This follows the upstream naming scheme.

* [xmlsec] convert CONTROL to manifest

* [xmlsec] update versions

* [xmlsec] update library name

* [xmlsec] update versions
2021-05-25 13:34:00 -07:00

29 lines
776 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO lsh123/xmlsec
REF xmlsec-1_2_31
SHA512 00c67bdfed208c23cbdbcdecd0648c19b66e6036a8dd27145d3c3f2150cba92cbdf5bf976f8561273e752ed3b5c188fa56ab84677e894194c6f1269a07caf04d
HEAD_REF master
PATCHES
0001-uwp-fix.patch
pkgconfig_fixes.patch
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DPORT_DIR=${CMAKE_CURRENT_LIST_DIR}
OPTIONS_DEBUG -DINSTALL_HEADERS_TOOLS=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets()
vcpkg_fixup_pkgconfig()
file(INSTALL ${SOURCE_PATH}/Copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_copy_pdbs()