2020-01-15 04:28:06 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO OpenEtherCATsociety/SOEM
|
|
|
|
REF abbf0d42e38d6cfbaa4c1e9e8e07ace651c386fd #v1.4.0
|
|
|
|
SHA512 2967775c6746bb63becea5eb12f136c184bbf874e1e5e8753374bfc212ec9cefbf1159350e79627b978af3562d261b61c50f38936a425c4d9c70598a1d136817
|
|
|
|
HEAD_REF master
|
2021-07-15 03:46:05 +08:00
|
|
|
PATCHES
|
2020-01-15 04:28:06 +08:00
|
|
|
winpcap.patch
|
2021-07-15 03:46:05 +08:00
|
|
|
disable-werror.patch
|
2020-01-15 04:28:06 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-15 04:28:06 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-01-15 04:28:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:29 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/bin"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
)
|
2020-01-15 04:28:06 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|