2019-02-07 09:21:23 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-03-05 02:57:54 +08:00
|
|
|
set(HYPERSCAN_VERSION 5.2.1)
|
2019-02-07 09:21:23 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_from_github(
|
2019-02-07 09:21:23 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-10-08 01:35:13 +08:00
|
|
|
REPO intel/hyperscan
|
|
|
|
REF v${HYPERSCAN_VERSION}
|
2020-03-05 02:57:54 +08:00
|
|
|
SHA512 e6ac2aef1f3efa1535c00d73fa590ea62fff4686c4ad3ee023d2e72c51896ca4616ec1b85d7c6f88ac7b42d92c3557b9c4bb3b51cfb796e20a79d53b28e53b6c
|
2019-10-08 01:35:13 +08:00
|
|
|
HEAD_REF master
|
2020-09-25 06:15:06 +08:00
|
|
|
PATCHES
|
|
|
|
0001-remove-Werror.patch
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2019-02-07 09:21:23 +08:00
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
2020-01-28 05:48:45 +08:00
|
|
|
get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY)
|
|
|
|
vcpkg_add_to_path(${PYTHON3_PATH})
|
2019-02-07 09:21:23 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2020-01-28 05:48:45 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2019-02-07 09:21:23 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|