2019-10-30 14:20:30 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO OpenSCAP/openscap
|
2023-06-14 10:10:09 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 88d095f350cb1b27f30222c809835ad9f182589a4410ea66f6389d9140804a45767b70176bcd52a0ad6b248ccf63153f09e44f93e70b3002d45cc445642a458f
|
2019-10-30 14:20:30 +08:00
|
|
|
HEAD_REF dev
|
|
|
|
PATCHES
|
|
|
|
fix-build.patch
|
2023-06-14 10:10:09 +08:00
|
|
|
fix-buildflag-and-install.patch
|
2019-10-30 14:20:30 +08:00
|
|
|
)
|
2022-07-07 05:30:42 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/cmake/FindThreads.cmake")
|
2019-10-30 14:20:30 +08:00
|
|
|
|
|
|
|
if ("python" IN_LIST FEATURES)
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2022-07-21 06:29:47 +08:00
|
|
|
FEATURES
|
|
|
|
python ENABLE_PYTHON3
|
2019-10-30 14:20:30 +08:00
|
|
|
)
|
|
|
|
|
2022-07-21 06:29:47 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-10-30 14:20:30 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
|
|
|
-DENABLE_PERL=OFF
|
|
|
|
-DENABLE_MITRE=OFF
|
|
|
|
-DENABLE_VALGRIND=OFF
|
|
|
|
-DENABLE_OSCAP_UTIL_DOCKER=OFF
|
|
|
|
-DENABLE_OSCAP_UTIL_AS_RPM=OFF
|
|
|
|
-DENABLE_OSCAP_UTIL_SSH=OFF
|
|
|
|
-DENABLE_OSCAP_UTIL_VM=OFF
|
|
|
|
-DENABLE_OSCAP_UTIL_PODMAN=OFF
|
|
|
|
-DENABLE_OSCAP_UTIL_CHROOT=OFF
|
2023-06-14 10:10:09 +08:00
|
|
|
-DENABLE_OSCAP_UTIL=OFF
|
2022-07-07 05:30:42 +08:00
|
|
|
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
|
2023-06-14 10:10:09 +08:00
|
|
|
-DENABLE_TESTS=OFF
|
|
|
|
-DENABLE_DOCS=OFF
|
2019-10-30 14:20:30 +08:00
|
|
|
)
|
|
|
|
|
2022-07-21 06:29:47 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-10-30 14:20:30 +08:00
|
|
|
|
2022-07-21 06:29:47 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-10-30 14:20:30 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2022-07-21 06:29:47 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-10-30 14:20:30 +08:00
|
|
|
|
|
|
|
#Handle copyright
|
2023-06-14 10:10:09 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|