diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-04-05 15:14:37 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-04-05 17:56:16 -0700 |
| commit | d953c7869d5a7feac938aef14bcb5ceb8cd4b175 (patch) | |
| tree | ac70fe7a8df53edad2837b83ca59894ee10c5bf7 | |
| parent | 9ec84ff4b9c86c44b2f8a12a0fe707ce970ad6dc (diff) | |
| download | vcpkg-d953c7869d5a7feac938aef14bcb5ceb8cd4b175.tar.gz vcpkg-d953c7869d5a7feac938aef14bcb5ceb8cd4b175.zip | |
[asio] Avoid boost dependency by always specifying ASIO_STANDALONE
| -rw-r--r-- | ports/asio/CONTROL | 3 | ||||
| -rw-r--r-- | ports/asio/portfile.cmake | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ports/asio/CONTROL b/ports/asio/CONTROL index cd9914052..ec8ab41a8 100644 --- a/ports/asio/CONTROL +++ b/ports/asio/CONTROL @@ -1,4 +1,3 @@ Source: asio
-Version: 1.12.0-1
-Build-Depends: boost-config, boost-throw-exception, boost-utility, boost-date-time
+Version: 1.12.0-2
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 index f6980f14e..284e25300 100644 --- a/ports/asio/portfile.cmake +++ b/ports/asio/portfile.cmake @@ -15,3 +15,8 @@ file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR # Copy the asio header files file(INSTALL ${SOURCE_PATH}/asio/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp" PATTERN "*.ipp") + +# Always use "ASIO_STANDALONE" to avoid boost dependency +file(READ "${CURRENT_PACKAGES_DIR}/include/asio/detail/config.hpp" _contents) +string(REPLACE "defined(ASIO_STANDALONE)" "!defined(VCPKG_DISABLE_ASIO_STANDALONE)" _contents "${_contents}") +file(WRITE "${CURRENT_PACKAGES_DIR}/include/asio/detail/config.hpp" "${_contents}") |
