2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-11-04 08:57:33 +08:00
|
|
|
vcpkg_from_github(
|
2017-11-12 16:22:51 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2017-11-04 08:57:33 +08:00
|
|
|
REPO fredrik-johansson/arb
|
2021-11-06 07:09:43 +08:00
|
|
|
REF e3a633dcc1adafeb7ca9648669f2b1fa2f433ee1 # 2.21.1
|
|
|
|
SHA512 af864ea4f849d12dbaadec8cda7e6b1a7d349b7aa776966ec7f61ad7a5186dc3f280512218bcff28901e2d55d6c976525746e6de13925a9942ed947ac2253af6
|
2017-11-04 08:57:33 +08:00
|
|
|
HEAD_REF master
|
2021-11-06 07:09:43 +08:00
|
|
|
PATCHES fix-build-error.patch
|
2017-11-04 08:57:33 +08:00
|
|
|
)
|
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" MSVC_USE_MT)
|
2017-11-04 08:57:33 +08:00
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DMSVC_USE_MT=${MSVC_USE_MT}
|
2017-11-04 08:57:33 +08:00
|
|
|
)
|
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-04 08:57:33 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-06-06 02:49:40 +08:00
|
|
|
# Remove duplicate headers
|
2021-11-06 07:09:43 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-11-04 08:57:33 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-11-06 07:09:43 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|