From 2f45772c9c9ad90e480e50008419c598b19bf01e Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 10 Oct 2020 20:33:33 +0200 Subject: DOCS: Restructure and include build-documentation The existing `docs` directory was restructured a bit and the build documentation previously located at https://github.com/mumble-voip/mumble-releng-vcpkg was integrated into the main repository (after having received a good polish). In addition to that the needed scripts and port-files from the linked repository have now also been included in the main repo. --- helpers/vcpkg/ports/zeroc-ice/CONTROL | 9 +++++ helpers/vcpkg/ports/zeroc-ice/portfile.cmake | 55 ++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 helpers/vcpkg/ports/zeroc-ice/CONTROL create mode 100644 helpers/vcpkg/ports/zeroc-ice/portfile.cmake (limited to 'helpers/vcpkg/ports') diff --git a/helpers/vcpkg/ports/zeroc-ice/CONTROL b/helpers/vcpkg/ports/zeroc-ice/CONTROL new file mode 100644 index 000000000..0a52b17ce --- /dev/null +++ b/helpers/vcpkg/ports/zeroc-ice/CONTROL @@ -0,0 +1,9 @@ +Source: zeroc-ice +Version: 3.7.3 +Homepage: https://github.com/zeroc-ice/ice +Description: Comprehensive RPC framework with support for C++, CSharp, Java, JavaScript, Python and more. +Build-Depends: bzip2 (!uwp), expat (!uwp), mcpp, lmdb (!uwp), openssl (!uwp), zlib (!uwp) + +Feature: cpp11 +Description: build C++11 libraries +Build-Depends: bzip2, expat, mcpp, openssl, mcpp, zlib diff --git a/helpers/vcpkg/ports/zeroc-ice/portfile.cmake b/helpers/vcpkg/ports/zeroc-ice/portfile.cmake new file mode 100644 index 000000000..9062aaa80 --- /dev/null +++ b/helpers/vcpkg/ports/zeroc-ice/portfile.cmake @@ -0,0 +1,55 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mumble-voip/ice + REF 3.7 + SHA512 12cebb53ad1a9271e7db8c12df5f2db9f8cbaec97b562596c4c592bd2449177b6927156100166b432b7e27b13f0d202155748691fd1e848eb6db815f16bcc57f +) + +if("cpp11" IN_LIST FEATURES) + vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DBUILD_ICE_CXX=ON + -DBUILD_ICE_CPP11=ON + ) +else() + vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DBUILD_ICE_CXX=ON + ) +endif() + +vcpkg_install_cmake() + +vcpkg_copy_pdbs() + +file(INSTALL ${SOURCE_PATH}/cpp/include DESTINATION ${CURRENT_PACKAGES_DIR}) +file(INSTALL ${SOURCE_PATH}/slice DESTINATION ${CURRENT_PACKAGES_DIR}) +file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/include + DESTINATION ${CURRENT_PACKAGES_DIR} +) + +if(EXISTS ${CURRENT_PACKAGES_DIR}/bin) + file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/ DESTINATION ${CURRENT_PACKAGES_DIR}/tools/Ice) +endif() + +file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/icebuilder/bin/ DESTINATION ${CURRENT_PACKAGES_DIR}/tools/Ice) + +vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/Ice) + +if(UNIX) + vcpkg_execute_required_process(COMMAND chmod -R +x Ice + WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools + LOGNAME ice-${TARGET_TRIPLET}-setexe + ) +endif() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(INSTALL ${SOURCE_PATH}/ICE_LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) -- cgit v1.2.3