2018-11-14 15:11:41 -08:00
|
|
|
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
|
2024-01-04 08:56:55 +08:00
|
|
|
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}
|
2020-10-13 00:52:23 +02:00
|
|
|
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
|
|
|
|
2018-11-14 15:11:41 -08:00
|
|
|
vcpkg_copy_pdbs()
|
2021-10-28 00:19:28 +02:00
|
|
|
|
2024-01-04 08:56:55 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
|