vcpkg/ports/libhsplasma/portfile.cmake
NancyLi1013 5b2ac1fed8
[libhsplasma/libpcap/lv2/libcrafter] Update to the latest version (#19965)
* [libhsplasma/libpcap/lv2] Update to the latest version

* [libpcap] Remove unused comments

* Update version files

* [lv2] Fix usage
[libpcap] Update ci.baseline.txt

* [libhsplasma] Remove x64-windows-static=fail from ci.baseline.txt

* [libcrafter] Update to 1.0

* [libcrafter] Add vcpkg.json

* Update version files

* Add CRT check for libpcap and update version as versin-semver for libpcap

* Update version files

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-09-08 07:45:37 -07:00

32 lines
978 B
CMake

vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO H-uru/libhsplasma
REF e435db76f86a0258ccd6f62a8bcd1f8b42d4f22d #2021.06.08
SHA512 ebd53633f22662793613c689b5a07f6149ed2b437c42a024e7c14a18d4411356edb11c95c08e1215dde443988fd1e4bcdd8d35fc30ca2545f507d6a61565cc69
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
net ENABLE_NET
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
${FEATURE_OPTIONS}
-DENABLE_PHYSX=OFF
-DENABLE_PYTHON=OFF
-DENABLE_TOOLS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME HSPlasma CONFIG_PATH share/cmake/HSPlasma)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)