[asio] Initial addition

This commit is contained in:
Adam Martin 2016-10-03 19:03:45 -05:00
parent fb6ec0bb82
commit 8734d3ca6d
2 changed files with 19 additions and 0 deletions

3
ports/asio/CONTROL Normal file
View File

@ -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.

16
ports/asio/portfile.cmake Normal file
View File

@ -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()