diff options
Diffstat (limited to 'vcpkg/ports/msgpack-c')
| -rw-r--r-- | vcpkg/ports/msgpack-c/portfile.cmake | 28 | ||||
| -rw-r--r-- | vcpkg/ports/msgpack-c/vcpkg.json | 17 |
2 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/msgpack-c/portfile.cmake b/vcpkg/ports/msgpack-c/portfile.cmake new file mode 100644 index 0000000..e7e1830 --- /dev/null +++ b/vcpkg/ports/msgpack-c/portfile.cmake @@ -0,0 +1,28 @@ +if (EXISTS ${CURRENT_INSTALLED_DIR}/include/msgpack/pack.h) + message(FATAL_ERROR "Cannot install ${PORT} when rest-rpc is already installed, please remove rest-rpc using \"./vcpkg remove rest-rpc:${TARGET_TRIPLET}\"") +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO msgpack/msgpack-c + REF "c-${VERSION}" + SHA512 b211af122e894bc0c32fa02ebcc0130ac797d99b7c60688df26247bc020d51b7322b4858fd12a749d28812c5efb66b5dc687cdfe20f4bc68a21eb484d531230a + HEAD_REF c_master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DMSGPACK_BUILD_EXAMPLES=OFF + -DMSGPACK_BUILD_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(PACKAGE_NAME msgpack-c CONFIG_PATH lib/cmake/msgpack-c) +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/vcpkg/ports/msgpack-c/vcpkg.json b/vcpkg/ports/msgpack-c/vcpkg.json new file mode 100644 index 0000000..79b8bbd --- /dev/null +++ b/vcpkg/ports/msgpack-c/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "msgpack-c", + "version": "6.1.0", + "description": "MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller.", + "homepage": "https://github.com/msgpack/msgpack-c", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |