2019-08-20 23:41:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libspatialindex/libspatialindex
|
2021-05-27 06:02:26 +08:00
|
|
|
REF 1.9.3
|
|
|
|
SHA512 d4c608abbd631dc163b7b4fb6bf09dee3e85ce692a5f8875d51f05a26e09c75cd17dff1ed9d2c232a071f0f5864d21d877b4cbc252f3416896db24dfa3fa18cb
|
2019-08-20 23:41:32 +08:00
|
|
|
HEAD_REF master
|
2021-05-27 06:02:26 +08:00
|
|
|
PATCHES
|
2019-08-20 23:41:32 +08:00
|
|
|
static.patch
|
2022-07-26 05:40:29 +08:00
|
|
|
mingw.patch
|
2019-08-20 23:41:32 +08:00
|
|
|
)
|
|
|
|
|
2022-12-20 03:31:17 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
WINDOWS_USE_MSBUILD
|
2021-05-27 06:02:26 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
|
|
|
-DSIDX_BUILD_TESTS:BOOL=OFF
|
2019-08-20 23:41:32 +08:00
|
|
|
)
|
|
|
|
|
2022-12-20 03:31:17 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-08-20 23:41:32 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
#Debug
|
2022-12-20 03:31:17 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-08-20 23:41:32 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-12-20 03:31:17 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|