aboutsummaryrefslogtreecommitdiff
path: root/ports/websocketpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-02-08 15:12:28 -0800
committerGitHub <noreply@github.com>2017-02-08 15:12:28 -0800
commit7ddae17e2f520e83d25f78c078bf8b8a58fff447 (patch)
tree87e2fc5c57a685367ec051b1efbdeb5d3ab43f4d /ports/websocketpp
parent5e588ddb5be9e6e27cebcc3be2e1a27f3ca83a50 (diff)
parenta9f7fc6e90feaad50c1221ef9bd56e2620302215 (diff)
downloadvcpkg-7ddae17e2f520e83d25f78c078bf8b8a58fff447.tar.gz
vcpkg-7ddae17e2f520e83d25f78c078bf8b8a58fff447.zip
Merge branch 'master' into master
Diffstat (limited to 'ports/websocketpp')
-rw-r--r--ports/websocketpp/CONTROL4
-rw-r--r--ports/websocketpp/portfile.cmake24
2 files changed, 28 insertions, 0 deletions
diff --git a/ports/websocketpp/CONTROL b/ports/websocketpp/CONTROL
new file mode 100644
index 000000000..f812dc565
--- /dev/null
+++ b/ports/websocketpp/CONTROL
@@ -0,0 +1,4 @@
+Source: websocketpp
+Version: 0.7.0
+Build-Depends: zlib, openssl, boost
+Description: Library that implements RFC6455 The WebSocket Protocol \ No newline at end of file
diff --git a/ports/websocketpp/portfile.cmake b/ports/websocketpp/portfile.cmake
new file mode 100644
index 000000000..98a4d52e6
--- /dev/null
+++ b/ports/websocketpp/portfile.cmake
@@ -0,0 +1,24 @@
+#header-only library
+include(vcpkg_common_functions)
+set(VERSION "0.7.0")
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/websocketpp-${VERSION})
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/zaphoyd/websocketpp/archive/${VERSION}.zip"
+ FILENAME "websocketpp-${VERSION}.zip"
+ SHA512 0cfbc5ed7034758b3666b5154854287441ebeef8e18c4e5f39b62559d4f0e9dda63d79021243c447f57b9855209e1813aeb1c6c475fc98aa71ff03933fc7ac0c
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share)
+
+# Put the license file where vcpkg expects it
+file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/websocketpp/)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/websocketpp/COPYING ${CURRENT_PACKAGES_DIR}/share/websocketpp/copyright)
+
+# Copy the header files
+file(COPY "${SOURCE_PATH}/websocketpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.hpp")
+
+set(INSTALL_INCLUDE_DIR "\${CMAKE_CURRENT_LIST_DIR}/../../include")
+set(WEBSOCKETPP_VERSION ${VERSION})
+configure_file (${SOURCE_PATH}/websocketpp-config.cmake.in "${CURRENT_PACKAGES_DIR}/share/websocketpp/websocketpp-config.cmake" @ONLY)
+configure_file (${SOURCE_PATH}/websocketpp-configVersion.cmake.in "${CURRENT_PACKAGES_DIR}/share/websocketpp/websocketpp-configVersion.cmake" @ONLY) \ No newline at end of file