2020-06-11 17:13:53 +08:00
|
|
|
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO osmcode/libosmium
|
2023-08-10 01:12:51 +08:00
|
|
|
REF "v${VERSION}"
|
2023-10-03 07:13:09 +08:00
|
|
|
SHA512 72e881e221dc3e62d7459b5cd84bf65de4fc0149bed66fe0534107d0d4dc30e5d474df685b44af07e6065a690dd7b31b877b5b040b8e0b4b0b971738175c34a3
|
2020-06-11 17:13:53 +08:00
|
|
|
)
|
2021-09-04 05:14:39 +08:00
|
|
|
set(BOOST_ROOT "${CURRENT_INSTALLED_DIR}")
|
2020-06-11 17:13:53 +08:00
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2020-06-11 17:13:53 +08:00
|
|
|
)
|
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-11 17:13:53 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-09-04 05:14:39 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-06-11 17:13:53 +08:00
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|