aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/mdns
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/mdns')
-rw-r--r--vcpkg/ports/mdns/portfile.cmake20
-rw-r--r--vcpkg/ports/mdns/vcpkg.json13
2 files changed, 33 insertions, 0 deletions
diff --git a/vcpkg/ports/mdns/portfile.cmake b/vcpkg/ports/mdns/portfile.cmake
new file mode 100644
index 0000000..d6628d7
--- /dev/null
+++ b/vcpkg/ports/mdns/portfile.cmake
@@ -0,0 +1,20 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mjansson/mdns
+ REF "${VERSION}"
+ SHA512 0bbfeefdd3f324a8e5aa85227bfa45c2b5cd88c12a9f77df2a1c48cb2661ba8b283dd53541e39d20ed2705646dc8d8724a0287c58f9efa91d2b1b796a0ca9a7a
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DMDNS_BUILD_EXAMPLE=OFF
+)
+
+vcpkg_cmake_install()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/mdns/vcpkg.json b/vcpkg/ports/mdns/vcpkg.json
new file mode 100644
index 0000000..728a2a1
--- /dev/null
+++ b/vcpkg/ports/mdns/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "mdns",
+ "version": "1.4.3",
+ "description": "Public domain mDNS/DNS-SD library in C",
+ "homepage": "https://github.com/mjansson/mdns",
+ "license": "Unlicense",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}