2019-02-07 09:21:23 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2022-05-06 04:35:09 +08:00
|
|
|
set(HYPERSCAN_VERSION 5.4.0)
|
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}
|
2022-05-06 04:35:09 +08:00
|
|
|
SHA512 cfec3f43b9e8b3fbb2e761927f3a173c1230f2688da710ec7708f2941ce6f550a1d3cb48b0b0e2ccf709807390117a7e40047cb99190bcc341f37eb3da13ae62
|
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)
|
|
|
|
|
2022-05-06 04:35:09 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-13 07:38:14 +08:00
|
|
|
OPTIONS "-DPYTHON_EXECUTABLE=${PYTHON3}"
|
2019-02-07 09:21:23 +08:00
|
|
|
)
|
|
|
|
|
2022-05-06 04:35:09 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-10-31 03:16:27 +08:00
|
|
|
|
2022-05-06 04:35:09 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-02-07 09:21:23 +08:00
|
|
|
|
2022-05-06 04:35:09 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|