From 8734d3ca6d300093a42e6f077e6c4f31084b4b1c Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Mon, 3 Oct 2016 19:03:45 -0500 Subject: [asio] Initial addition --- ports/asio/CONTROL | 3 +++ ports/asio/portfile.cmake | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 ports/asio/CONTROL create mode 100644 ports/asio/portfile.cmake (limited to 'ports') diff --git a/ports/asio/CONTROL b/ports/asio/CONTROL new file mode 100644 index 000000000..466ef6cd0 --- /dev/null +++ b/ports/asio/CONTROL @@ -0,0 +1,3 @@ +Source: asio +Version: 1.10.6 +Description: Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach. diff --git a/ports/asio/portfile.cmake b/ports/asio/portfile.cmake new file mode 100644 index 000000000..8c28b951b --- /dev/null +++ b/ports/asio/portfile.cmake @@ -0,0 +1,16 @@ +include(vcpkg_common_functions) +SET(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/asio-asio-1-10-6/asio/) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/chriskohlhoff/asio/archive/asio-1-10-6.zip" + FILENAME "asio-1-10-6.zip" + SHA512 7e3fde7e88d305d19b88482b73c8b7a41751d65e81bd23dd8ef45eb4e3ef3a10629696b4d347e5a68f08d6fb2dede15a2f38c7ee8d18ac88be769215542da4c6 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Handle copyright +file(COPY ${CURRENT_BUILDTREES_DIR}/src/asio-asio-1-10-6/asio/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/asio) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/asio/COPYING ${CURRENT_PACKAGES_DIR}/share/asio/copyright) + +# Copy the asio header files +file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.ipp") +vcpkg_copy_pdbs() -- cgit v1.2.3