aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libspatialindex
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libspatialindex
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libspatialindex')
-rw-r--r--vcpkg/ports/libspatialindex/portfile.cmake26
-rw-r--r--vcpkg/ports/libspatialindex/vcpkg.json18
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/libspatialindex/portfile.cmake b/vcpkg/ports/libspatialindex/portfile.cmake
new file mode 100644
index 0000000..81bcdaa
--- /dev/null
+++ b/vcpkg/ports/libspatialindex/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libspatialindex/libspatialindex
+ REF "${VERSION}"
+ SHA512 564af5b443c8d8231a026d59154cfaba939ecc1d555f4108e305645c5290c75bd4ed4286bd296dc12a7f2a0c05192b803e3f3c120538bac676e2f5bccdf034ba
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ WINDOWS_USE_MSBUILD
+ OPTIONS
+ -DCMAKE_DEBUG_POSTFIX=d
+ -DSIDX_BUILD_TESTS:BOOL=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+#Debug
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/libspatialindex/vcpkg.json b/vcpkg/ports/libspatialindex/vcpkg.json
new file mode 100644
index 0000000..13cf89c
--- /dev/null
+++ b/vcpkg/ports/libspatialindex/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "libspatialindex",
+ "version": "2.1.0",
+ "description": "C++ implementation of R*-tree, an MVR-tree and a TPR-tree with C API.",
+ "homepage": "https://libspatialindex.org/",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zlib"
+ ]
+}