Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert <krzmbrzl@gmail.com>2020-10-10 21:33:33 +0300
committerRobert <krzmbrzl@gmail.com>2020-10-12 09:16:01 +0300
commit2f45772c9c9ad90e480e50008419c598b19bf01e (patch)
treef5a617ebff06329a2b263970fa4c54df4005a9a4 /helpers/vcpkg/ports
parent47d6e77de73d61141f29d8beccf2300c3280018f (diff)
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.
Diffstat (limited to 'helpers/vcpkg/ports')
-rw-r--r--helpers/vcpkg/ports/zeroc-ice/CONTROL9
-rw-r--r--helpers/vcpkg/ports/zeroc-ice/portfile.cmake55
2 files changed, 64 insertions, 0 deletions
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})