vcpkg/ports/arb/portfile.cmake

27 lines
793 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2017-11-04 08:57:33 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
2017-11-04 08:57:33 +08:00
REPO fredrik-johansson/arb
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()
# 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)