aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathis Logemann <mathisloge@gmail.com>2020-12-17 09:16:17 +0100
committerGitHub <noreply@github.com>2020-12-17 00:16:17 -0800
commit4177474d9716cd7e04c6a2489800923903a50eef (patch)
tree9c2d61782641e9924194219174150d0159f7d1dc
parent43ed42101d4cd07c2b81a08fdf39e49603bce782 (diff)
downloadvcpkg-4177474d9716cd7e04c6a2489800923903a50eef.tar.gz
vcpkg-4177474d9716cd7e04c6a2489800923903a50eef.zip
[mdns] added new port (#15142)
-rw-r--r--ports/mdns/portfile.cmake21
-rw-r--r--ports/mdns/vcpkg.json6
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/mdns/portfile.cmake b/ports/mdns/portfile.cmake
new file mode 100644
index 000000000..d46575944
--- /dev/null
+++ b/ports/mdns/portfile.cmake
@@ -0,0 +1,21 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mjansson/mdns
+ REF 1.1
+ SHA512 03e4682d87e9c1157bba04e04a3dfbb2ed7e25df31f00834fbc7bf4275e5c7f7406e590c8bdc386a4e6fbe6a5667f700e146d39758aa8ee0a47f735547cacd31
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DMDNS_BUILD_EXAMPLE=OFF
+)
+
+vcpkg_install_cmake()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/mdns/vcpkg.json b/ports/mdns/vcpkg.json
new file mode 100644
index 000000000..d86276ac0
--- /dev/null
+++ b/ports/mdns/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "mdns",
+ "version-string": "1.1",
+ "description": "Public domain mDNS/DNS-SD library in C",
+ "homepage": "https://github.com/mjansson/mdns"
+}