2023-12-28 08:47:50 +01:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only
|
|
|
|
|
2020-06-11 05:13:53 -04:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO osmcode/libosmium
|
2023-08-09 20:12:51 +03:00
|
|
|
REF "v${VERSION}"
|
2023-10-03 02:13:09 +03:00
|
|
|
SHA512 72e881e221dc3e62d7459b5cd84bf65de4fc0149bed66fe0534107d0d4dc30e5d474df685b44af07e6065a690dd7b31b877b5b040b8e0b4b0b971738175c34a3
|
2020-06-11 05:13:53 -04:00
|
|
|
)
|
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2023-12-28 08:47:50 +01:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_GDAL=ON
|
|
|
|
# for transitive dependencies via pkgconf
|
|
|
|
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=1
|
|
|
|
-DVCPKG_HOST_TRIPLET=${HOST_TRIPLET}
|
2020-06-11 05:13:53 -04:00
|
|
|
)
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-11 05:13:53 -04:00
|
|
|
|
2023-12-28 08:47:50 +01:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|