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
|
2020-10-14 04:17:32 +08:00
|
|
|
REF ae6009e3e19bd309a2433467d1b2ddb7001cd1eb # 2.18.1
|
|
|
|
SHA512 78e149f0d51ef8ab29afbad99fd24e3b59acfc509f626e89bdcd57d4a8478b84c3aa51e92f5e26f8a10a20c66d72d2eed50f0dfbfda4a5f5277988f9bac3fa48
|
2017-11-04 08:57:33 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE ${SOURCE_PATH}/CMakeLists.txt)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-11-27 04:52:30 +08:00
|
|
|
PREFER_NINJA
|
2017-11-04 08:57:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-06-06 02:49:40 +08:00
|
|
|
# Remove duplicate headers
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-11-04 08:57:33 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2019-11-01 04:04:30 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|