2020-01-07 06:59:18 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO BLAKE2/libb2
|
|
|
|
REF 2c5142f12a2cd52f3ee0a43e50a3a76f75badf85
|
|
|
|
SHA512 cf29cf9391ae37a978eb6618de6f856f3defa622b8f56c2d5a519ab34fd5e4d91f3bb868601a44e9c9164a2992e80dde188ccc4d1605dffbdf93687336226f8d
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-05-22 01:46:07 +08:00
|
|
|
set(OPTIONS)
|
|
|
|
if(CMAKE_HOST_WIN32)
|
|
|
|
set(OPTIONS --disable-native) # requires cpuid
|
|
|
|
endif()
|
|
|
|
|
2020-01-07 06:59:18 +08:00
|
|
|
vcpkg_configure_make(
|
2020-08-14 04:32:55 +08:00
|
|
|
AUTOCONFIG
|
2020-01-07 06:59:18 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-05-21 08:59:15 +08:00
|
|
|
OPTIONS
|
|
|
|
ax_cv_check_cflags___O3=no # see https://github.com/microsoft/vcpkg/pull/17912#issuecomment-840514179
|
|
|
|
${OPTIONS}
|
2020-01-07 06:59:18 +08:00
|
|
|
)
|
|
|
|
vcpkg_install_make()
|
2020-05-22 01:46:07 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2020-01-07 06:59:18 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-01-26 02:31:15 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|