2019-10-12 14:25:31 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO pellegre/libcrafter
|
2021-09-08 22:45:37 +08:00
|
|
|
REF 86f81f101b5e3051ed04563b3ad3dd7a823afb21 #version-1.0
|
|
|
|
SHA512 bd0eac06896df63f0fff0ed3cf7ca5176e56615476c8134bd26f035692ab9e583f58f1f57daa7673771a710d6921c0c6a6473ab181982ad57727584f2cde56d0
|
2019-10-12 14:25:31 +08:00
|
|
|
HEAD_REF master
|
2019-10-12 15:14:56 +08:00
|
|
|
PATCHES fix-build-error.patch
|
2019-10-12 14:25:31 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_make(
|
2020-08-14 04:32:55 +08:00
|
|
|
AUTOCONFIG
|
2021-09-08 22:45:37 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-10-12 14:25:31 +08:00
|
|
|
PROJECT_SUBPATH libcrafter
|
|
|
|
OPTIONS
|
2020-05-22 01:46:07 +08:00
|
|
|
"--with-libpcap=${CURRENT_INSTALLED_DIR}"
|
2019-10-12 14:25:31 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_make()
|
|
|
|
|
2021-09-08 22:45:37 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-10-12 14:25:31 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2021-12-07 13:11:36 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-10-12 14:25:31 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-01-26 02:31:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/libcrafter/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|