vcpkg/ports/usrsctp/portfile.cmake

31 lines
837 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2018-08-31 23:34:58 +02:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sctplab/usrsctp
2021-09-10 06:16:23 +02:00
REF 0.9.5.0
SHA512 7b28706449f9365ba9750fd39925e7171516a1e3145d123ec69a12486637ae2393ad4c587b056403298dc13c149f0b01a262cbe4852abca42e425d7680c77ee3
2018-08-31 23:34:58 +02:00
HEAD_REF master
PATCHES
fix_export.patch
2024-08-22 11:45:58 +02:00
mingw.diff
2018-08-31 23:34:58 +02:00
)
2021-09-10 06:16:23 +02:00
vcpkg_cmake_configure(
2018-08-31 23:34:58 +02:00
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-Dsctp_werror=OFF
-Dsctp_build_programs=OFF
2018-08-31 23:34:58 +02:00
)
2021-09-10 06:16:23 +02:00
vcpkg_cmake_install()
2018-08-31 23:34:58 +02:00
2021-09-10 06:16:23 +02:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2018-08-31 23:34:58 +02:00
2021-09-10 06:16:23 +02:00
configure_file("${SOURCE_PATH}/LICENSE.md" "${CURRENT_PACKAGES_DIR}/share/usrsctp/copyright" COPYONLY)
2018-08-31 23:34:58 +02:00
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})