aboutsummaryrefslogtreecommitdiff
path: root/ports/daw-header-libraries
diff options
context:
space:
mode:
Diffstat (limited to 'ports/daw-header-libraries')
-rw-r--r--ports/daw-header-libraries/portfile.cmake18
-rw-r--r--ports/daw-header-libraries/vcpkg.json16
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/daw-header-libraries/portfile.cmake b/ports/daw-header-libraries/portfile.cmake
new file mode 100644
index 000000000..06753efd9
--- /dev/null
+++ b/ports/daw-header-libraries/portfile.cmake
@@ -0,0 +1,18 @@
+# Header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO beached/header_libraries
+ REF b44178fed16111944d1338999d88b129797608ce
+ SHA512 0b13bec450ba68e2b2ac2e76c9c529fa84a95df092b104660c88e9cfda91df9e5b70f0f7f6bcbb4f7ea05c1a5613734ceff8d84929b37b115c2bc86c232d9261
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH})
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+# remove empty lib and debug/lib directories (and duplicate files from debug/include)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/daw-header-libraries/vcpkg.json b/ports/daw-header-libraries/vcpkg.json
new file mode 100644
index 000000000..25c094776
--- /dev/null
+++ b/ports/daw-header-libraries/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "daw-header-libraries",
+ "version-semver": "1.21.1",
+ "description": "Set of header-only algorithms used in daw-utf8-range and daw-json-link.",
+ "homepage": "https://github.com/beached/header_libraries",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}