2019-02-07 09:21:23 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-10-31 03:16:27 +08:00
|
|
|
set(HYPERSCAN_VERSION 5.3.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}
|
2020-10-31 03:16:27 +08:00
|
|
|
SHA512 a4d85ffd2264e8e6745340ba51431361775a1e7a2da78edd31f6f53552ac61fdef718710ae53a254b7d5000f9ec1aafe7a48d9c55e76f5c6822486150bbc6c56
|
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)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-12-13 07:38:14 +08:00
|
|
|
OPTIONS "-DPYTHON_EXECUTABLE=${PYTHON3}"
|
2019-02-07 09:21:23 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2020-10-31 03:16:27 +08:00
|
|
|
|
2019-02-07 09:21:23 +08:00
|
|
|
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)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|