aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sparsepp/portfile.cmake
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/sparsepp/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/sparsepp/portfile.cmake')
-rw-r--r--vcpkg/ports/sparsepp/portfile.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/sparsepp/portfile.cmake b/vcpkg/ports/sparsepp/portfile.cmake
new file mode 100644
index 0000000..729836a
--- /dev/null
+++ b/vcpkg/ports/sparsepp/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO greg7mdp/sparsepp
+ REF 1.22
+ SHA512 b660cd7de48fcab50d4a0df4e4813226b0b0a8a3791aba4e4cc6a456af7bba0be6694bc44781a7d00b5582b32b1d85b9afa83095b7e5c0a26d1b0344ddc94b0f
+ HEAD_REF master
+)
+
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
+
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+# Note: we could add: OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
+# but it's an header only package, so there's no INSTALL target. So
+# we remove the duplicate headers.
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)