diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-07-30 10:08:10 -0700 |
|---|---|---|
| committer | dan-shaw <51385773+dan-shaw@users.noreply.github.com> | 2019-07-30 10:08:10 -0700 |
| commit | 64aa585677a8f06cac095f9e81a5ca3f1dbd6f76 (patch) | |
| tree | 97ac12c2e340a02c0f06c2366f1711416cc8fa58 | |
| parent | c6b6f8e0f3b1143a6fc4761d3036c4345c570a06 (diff) | |
| download | vcpkg-64aa585677a8f06cac095f9e81a5ca3f1dbd6f76.tar.gz vcpkg-64aa585677a8f06cac095f9e81a5ca3f1dbd6f76.zip | |
[nngpp] Add new port. (#7417)
| -rw-r--r-- | ports/nngpp/CONTROL | 6 | ||||
| -rw-r--r-- | ports/nngpp/portfile.cmake | 30 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/nngpp/CONTROL b/ports/nngpp/CONTROL new file mode 100644 index 000000000..7cc9d7afe --- /dev/null +++ b/ports/nngpp/CONTROL @@ -0,0 +1,6 @@ +Source: nngpp +Version: 2019-07-25 +Homepage:https://github.com/cwzx/nngpp +Description: C++ wrapper around the nanomsg NNG API. +Build-Depends: nng + diff --git a/ports/nngpp/portfile.cmake b/ports/nngpp/portfile.cmake new file mode 100644 index 000000000..18646951c --- /dev/null +++ b/ports/nngpp/portfile.cmake @@ -0,0 +1,30 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cwzx/nngpp + REF 3351f54e6e774505d8d8b88064d04eb98e0b1cda + SHA512 6f72d1085b58ee7a8941294e7479661d8fc2c22cc8af2cee9c2cef11d508032a860c0061851bda07cf995ec8f57e5a25e241a15114a91c487d8aad6def2d4ce5 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DNNGPP_BUILD_DEMOS=OFF + -DNNGPP_BUILD_TESTS=OFF +) + +vcpkg_install_cmake() + +# Move CMake config files to the right place +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) + +# Handle copyright +file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/license.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) + |
