2019-08-13 00:43:59 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO kokke/tiny-bignum-c
|
|
|
|
REF e814d2b6b522ecaa67701453c492811a8adbc555
|
|
|
|
SHA512 2cea21588d018bd74fb9a128576764feecd87364d157acee21bd37cd8890c0776b228e25580de88a0c6d723a7b8e88cb8120c8c66b3999661c707b04dffc3f5b
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-08-13 00:43:59 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-08-13 00:43:59 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-08-13 00:43:59 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
2019-08-13 00:43:59 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-08-13 00:43:59 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-02 02:39:29 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|