aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libmorton
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libmorton')
-rw-r--r--vcpkg/ports/libmorton/portfile.cmake22
-rw-r--r--vcpkg/ports/libmorton/vcpkg.json15
2 files changed, 37 insertions, 0 deletions
diff --git a/vcpkg/ports/libmorton/portfile.cmake b/vcpkg/ports/libmorton/portfile.cmake
new file mode 100644
index 0000000..46e3dd4
--- /dev/null
+++ b/vcpkg/ports/libmorton/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Forceflow/libmorton
+ REF "v${VERSION}"
+ SHA512 020d9ba97204b8c028a8700d7212821dd75b6dbe1b4a77776777d06ef29bcad75cdc4e830f211daf6250779cc81ed4842a0632f89a7b7017eb071869a3c938fa
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/libmorton)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file
diff --git a/vcpkg/ports/libmorton/vcpkg.json b/vcpkg/ports/libmorton/vcpkg.json
new file mode 100644
index 0000000..084c22d
--- /dev/null
+++ b/vcpkg/ports/libmorton/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "libmorton",
+ "version": "0.2.12",
+ "description": "Header-only library for encoding/decoding Morton codes in/from 2D/3D coordinates",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}