diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/apr/fix-configcmake.patch b/cc-multilingual-main/cc_net/vcpkg/ports/apr/fix-configcmake.patch new file mode 100644 index 0000000000000000000000000000000000000000..8104810d05f75ed3b3fb2b5085e9bf9a9fa3527e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/apr/fix-configcmake.patch @@ -0,0 +1,62 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b4632c3..0b86d12 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -259,27 +259,35 @@ SET(install_targets) + SET(install_bin_pdb) + + # libapr-1 is shared, apr-1 is static ++IF(BUILD_SHARED_LIBS) + ADD_LIBRARY(libapr-1 SHARED ${APR_SOURCES} ${APR_PUBLIC_HEADERS_GENERATED} libapr.rc) + SET(install_targets ${install_targets} libapr-1) + SET(install_bin_pdb ${install_bin_pdb} ${PROJECT_BINARY_DIR}/libapr-1.pdb) + TARGET_LINK_LIBRARIES(libapr-1 ${APR_SYSTEM_LIBS}) + SET_TARGET_PROPERTIES(libapr-1 PROPERTIES COMPILE_DEFINITIONS "APR_DECLARE_EXPORT;WINNT") + ADD_DEPENDENCIES(libapr-1 test_char_header) +- ++TARGET_INCLUDE_DIRECTORIES(libapr-1 INTERFACE $) ++ELSE() + ADD_LIBRARY(apr-1 STATIC ${APR_SOURCES} ${APR_PUBLIC_HEADERS_GENERATED}) + SET(install_targets ${install_targets} apr-1) + TARGET_LINK_LIBRARIES(apr-1 ${APR_SYSTEM_LIBS}) + SET_TARGET_PROPERTIES(apr-1 PROPERTIES COMPILE_DEFINITIONS "APR_DECLARE_STATIC;WINNT") + ADD_DEPENDENCIES(apr-1 test_char_header) ++TARGET_INCLUDE_DIRECTORIES(apr-1 INTERFACE $) ++ENDIF() + + # libaprapp-1 and aprapp-1 are static ++IF(BUILD_SHARED_LIBS) + ADD_LIBRARY(libaprapp-1 STATIC misc/win32/apr_app.c misc/win32/internal.c ${APR_PUBLIC_HEADERS_GENERATED}) + SET(install_targets ${install_targets} libaprapp-1) + SET_TARGET_PROPERTIES(libaprapp-1 PROPERTIES COMPILE_DEFINITIONS "APR_APP;WINNT") +- ++TARGET_INCLUDE_DIRECTORIES(libaprapp-1 INTERFACE $) ++ELSE() + ADD_LIBRARY(aprapp-1 STATIC misc/win32/apr_app.c misc/win32/internal.c ${APR_PUBLIC_HEADERS_GENERATED}) + SET(install_targets ${install_targets} aprapp-1) + SET_TARGET_PROPERTIES(aprapp-1 PROPERTIES COMPILE_DEFINITIONS "APR_DECLARE_STATIC;APR_APP;WINNT") ++TARGET_INCLUDE_DIRECTORIES(aprapp-1 INTERFACE $) ++ENDIF() + + IF(APR_BUILD_TESTAPR) + ENABLE_TESTING() +@@ -385,12 +393,18 @@ ENDIF (APR_BUILD_TESTAPR) + + # Installation + +-INSTALL(TARGETS ${install_targets} ++INSTALL(TARGETS ${install_targets} EXPORT unofficial-apr-config + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + ) + ++INSTALL(EXPORT unofficial-apr-config ++ NAMESPACE unofficial::apr:: ++ DESTINATION share/unofficial-apr ++ FILE unofficial-apr-config.cmake ++) ++ + IF(INSTALL_PDB) + INSTALL(FILES ${install_bin_pdb} + DESTINATION bin diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/apr/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/apr/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..84b04326b5df8f7fd0cfd1691eb49b31936f5345 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/apr/portfile.cmake @@ -0,0 +1,96 @@ + +set(VERSION 1.7.4) + +vcpkg_download_distfile(ARCHIVE + URLS "https://archive.apache.org/dist/apr/apr-${VERSION}.tar.bz2" + FILENAME "apr-${VERSION}.tar.bz2" + SHA512 2342c997765ea2ca96eac158e5fd260232dba68fc41b90a79a7ba9b25c539fc217981867362090e0ebebe632289257c342275e3c5baedb698c474ef8f49a9dcd +) + +vcpkg_extract_source_archive(SOURCE_PATH + ARCHIVE "${ARCHIVE}" + PATCHES + fix-configcmake.patch + unglue.patch +) + +if (VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + private-headers APR_INSTALL_PRIVATE_H + ) + + vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DINSTALL_PDB=OFF + -DMIN_WINDOWS_VER=Windows7 + -DAPR_HAVE_IPV6=ON + ${FEATURE_OPTIONS} + ) + + vcpkg_cmake_install() + vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-apr CONFIG_PATH share/unofficial-apr) + # There is no way to suppress installation of the headers in debug builds. + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + + vcpkg_copy_pdbs() +else() + # To cross-compile you will need a triplet file that locates the tool chain and sets --host and --cache parameters of "./configure". + # The ${VCPKG_PLATFORM_TOOLSET}.cache file must have been generated on the targeted host using "./configure -C". + # For example, to target aarch64-linux-gnu, triplets/aarch64-linux-gnu.cmake should contain (beyond the standard content): + # set(VCPKG_PLATFORM_TOOLSET aarch64-linux-gnu) + # set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${MY_CROSS_DIR}/cmake/Toolchain-${VCPKG_PLATFORM_TOOLSET}.cmake) + # set(CONFIGURE_PARAMETER_1 --host=${VCPKG_PLATFORM_TOOLSET}) + # set(CONFIGURE_PARAMETER_2 --cache-file=${MY_CROSS_DIR}/autoconf/${VCPKG_PLATFORM_TOOLSET}.cache) + if(CONFIGURE_PARAMETER_1) + message(STATUS "Configuring apr with ${CONFIGURE_PARAMETER_1} ${CONFIGURE_PARAMETER_2} ${CONFIGURE_PARAMETER_3}") + else() + message(STATUS "Configuring apr") + endif() + set(ENV{CFLAGS} "$ENV{CFLAGS} -Wno-error=implicit-function-declaration") + vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "--prefix=${CURRENT_INSTALLED_DIR}" + "${CONFIGURE_PARAMETER_1}" + "${CONFIGURE_PARAMETER_2}" + "${CONFIGURE_PARAMETER_3}" + ) + + vcpkg_install_make() + + if(NOT VCPKG_BUILD_TYPE) + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/apr-1.pc" + "-lapr-\${APR_MAJOR_VERSION}" "-lapr-1" + ) + endif() + + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/apr-1.pc" + "-lapr-\${APR_MAJOR_VERSION}" "-lapr-1" + ) + vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread rt dl uuid crypt) + + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/apr-1-config" "\"${CURRENT_INSTALLED_DIR}\"" "$(realpath \"`dirname $0`/../../..\")") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/apr-1-config" "APR_SOURCE_DIR=\"${SOURCE_PATH}\"" "") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/apr-1-config" "APR_BUILD_DIR=\"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel\"" "") + + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/build-1/libtool" "${CURRENT_INSTALLED_DIR}/lib" "") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/build-1/libtool" "${CURRENT_INSTALLED_DIR}/debug/lib" "") + + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/build-1/apr_rules.mk" "${CURRENT_INSTALLED_DIR}" "$(INCLUDE)/..") + if(NOT VCPKG_BUILD_TYPE) + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/apr-1-config" "\"${CURRENT_INSTALLED_DIR}/debug\"" "$(realpath \"`dirname $0`/../../../..\")") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/apr-1-config" "APR_SOURCE_DIR=\"${SOURCE_PATH}\"" "") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/apr-1-config" "APR_BUILD_DIR=\"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg\"" "") + + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/build-1/libtool" "${CURRENT_INSTALLED_DIR}/lib" "") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/build-1/libtool" "${CURRENT_INSTALLED_DIR}/debug/lib" "") + + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/build-1/apr_rules.mk" "${CURRENT_INSTALLED_DIR}/debug" "$(INCLUDE)/..") + endif() + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +endif() + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/apr/unglue.patch b/cc-multilingual-main/cc_net/vcpkg/ports/apr/unglue.patch new file mode 100644 index 0000000000000000000000000000000000000000..0ce518b8a7c2093f12ec94cadc74efcf4e5408d6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/apr/unglue.patch @@ -0,0 +1,17 @@ +diff --git a/include/apr_version.h b/include/apr_version.h +index e96de3835..de3437d71 100644 +--- a/include/apr_version.h ++++ b/include/apr_version.h +@@ -114,9 +114,9 @@ + + /** An alternative formatted string of APR's version */ + /* macro for Win32 .rc files using numeric csv representation */ +-#define APR_VERSION_STRING_CSV APR_MAJOR_VERSION ##, \ +- ##APR_MINOR_VERSION ##, \ +- ##APR_PATCH_VERSION ++#define APR_VERSION_STRING_CSV APR_MAJOR_VERSION , \ ++ APR_MINOR_VERSION , \ ++ APR_PATCH_VERSION + + + #ifndef APR_VERSION_ONLY diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/apr/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/apr/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..dafc8d0fa3c649240ce45fe7d7886db857546789 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/apr/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "apr", + "version": "1.7.4", + "description": "The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.", + "homepage": "https://apr.apache.org/", + "license": "Apache-2.0", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true, + "platform": "windows" + }, + { + "name": "vcpkg-cmake-config", + "host": true, + "platform": "windows" + } + ], + "features": { + "private-headers": { + "description": "Install non-standard files required for building Apache httpd" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix-sodium-dep.patch b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix-sodium-dep.patch new file mode 100644 index 0000000000000000000000000000000000000000..b43822dfd1b17b741ba4a1635c411535c4639259 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix-sodium-dep.patch @@ -0,0 +1,59 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 02adc2e..ccd5492 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -110,6 +110,11 @@ if(NATS_BUILD_STREAMING) + endif(NATS_BUILD_STREAMING) + + if(NATS_BUILD_USE_SODIUM) ++ find_package(libsodium NAMES unofficial-sodium CONFIG REQUIRED) ++ set(NATS_SODIUM_INCLUDE_DIRS "") ++ set(NATS_SODIUM_LIBRARIES unofficial-sodium::sodium) ++ add_definitions(-DNATS_USE_LIBSODIUM) ++elseif(0) + IF(DEFINED ENV{NATS_SODIUM_DIR}) + SET(NATS_SODIUM_DIR "$ENV{NATS_SODIUM_DIR}") + ENDIF() +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index ea536de..6198776 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -63,7 +63,7 @@ if(NATS_BUILD_LIB_SHARED) + install(TARGETS nats EXPORT cnats-targets DESTINATION ${NATS_LIBDIR}) + install(EXPORT cnats-targets + NAMESPACE cnats:: +- FILE cnats-config.cmake ++ FILE cnats-targets.cmake + DESTINATION ${NATS_LIBDIR}/cmake/cnats) + endif(NATS_BUILD_LIB_SHARED) + +@@ -75,10 +75,14 @@ if(NATS_BUILD_LIB_STATIC) + install(TARGETS nats_static EXPORT cnats-targets ARCHIVE DESTINATION ${NATS_LIBDIR}) + install(EXPORT cnats-targets + NAMESPACE cnats:: +- FILE cnats-config.cmake ++ FILE cnats-targets.cmake + DESTINATION ${NATS_LIBDIR}/cmake/cnats) + endif(NATS_BUILD_LIB_STATIC) + ++include(CMakePackageConfigHelpers) ++configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/cnats-config.cmake" INSTALL_DESTINATION ${NATS_LIBDIR}/cmake/cnats) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cnats-config.cmake DESTINATION ${NATS_LIBDIR}/cmake/cnats) ++ + install(FILES deprnats.h DESTINATION ${NATS_INCLUDE_DIR} RENAME nats.h) + install(FILES nats.h status.h version.h DESTINATION ${NATS_INCLUDE_DIR}/nats) + install(FILES adapters/libevent.h adapters/libuv.h DESTINATION ${NATS_INCLUDE_DIR}/nats/adapters) +diff --git a/src/Config.cmake.in b/src/Config.cmake.in +new file mode 100644 +index 0000000..aa1d6bf +--- /dev/null ++++ b/src/Config.cmake.in +@@ -0,0 +1,8 @@ ++@PACKAGE_INIT@ ++ ++include(CMakeFindDependencyMacro) ++if("@NATS_BUILD_USE_SODIUM@") ++ find_dependency(unofficial-sodium) ++endif() ++ ++include ( "${CMAKE_CURRENT_LIST_DIR}/cnats-targets.cmake" ) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix_install_path.patch b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix_install_path.patch new file mode 100644 index 0000000000000000000000000000000000000000..15c8ab24b272cdf84b5f7fd0efadcd588da191c9 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix_install_path.patch @@ -0,0 +1,28 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index b3f376c..8e6d06a 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -60,7 +60,10 @@ if(NATS_BUILD_LIB_SHARED) + target_include_directories(nats PUBLIC + $ + $) +- install(TARGETS nats EXPORT cnats-targets DESTINATION ${NATS_LIBDIR}) ++ install(TARGETS nats EXPORT cnats-targets ++ ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION lib ++ RUNTIME DESTINATION bin) + install(EXPORT cnats-targets + NAMESPACE cnats:: + FILE cnats-targets.cmake +@@ -72,7 +75,10 @@ if(NATS_BUILD_LIB_STATIC) + target_include_directories(nats_static PUBLIC + $ + $) +- install(TARGETS nats_static EXPORT cnats-targets ARCHIVE DESTINATION ${NATS_LIBDIR}) ++ install(TARGETS nats_static EXPORT cnats-targets ++ ARCHIVE DESTINATION lib ++ LIBRARY DESTINATION lib ++ RUNTIME DESTINATION bin) + install(EXPORT cnats-targets + NAMESPACE cnats:: + FILE cnats-targets.cmake diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cnats/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..66cabd10d71e047ca011c413cf7e5ea08811bc08 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/portfile.cmake @@ -0,0 +1,79 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO nats-io/nats.c + REF "v${VERSION}" + SHA512 0670a2b7fb70a49e2b1f5cbccf2406a3ecaf04b48b4147dc2ead9cb106f1673efa79b5e40d3bb557986ade35da2158b58b324603f98a58258a497dc57cb5d700 + HEAD_REF main + PATCHES + fix-sodium-dep.patch + fix_install_path.patch +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "streaming" NATS_BUILD_STREAMING +) + +if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) + list(APPEND OPTIONS -DNATS_BUILD_LIB_SHARED=ON) + list(APPEND OPTIONS -DNATS_BUILD_LIB_STATIC=OFF) + list(APPEND OPTIONS -DBUILD_TESTING=OFF) + list(APPEND OPTIONS -DNATS_BUILD_USE_SODIUM=ON) +else() + list(APPEND OPTIONS -DNATS_BUILD_LIB_SHARED=OFF) + list(APPEND OPTIONS -DNATS_BUILD_LIB_STATIC=ON) + list(APPEND OPTIONS -DBUILD_TESTING=ON) + if(VCPKG_TARGET_IS_WINDOWS) + list(APPEND OPTIONS -DNATS_BUILD_USE_SODIUM=OFF) + else() + list(APPEND OPTIONS -DNATS_BUILD_USE_SODIUM=ON) + endif() +endif() + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + ${FEATURE_OPTIONS} + ${OPTIONS} + -DNATS_BUILD_TLS_USE_OPENSSL_1_1_API=ON + -DNATS_BUILD_EXAMPLES=OFF +) + +vcpkg_cmake_install(ADD_BIN_TO_PATH) + +if(VCPKG_TARGET_IS_WINDOWS) + if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) + if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/nats.dll") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin") + file(RENAME "${CURRENT_PACKAGES_DIR}/lib/nats.dll" "${CURRENT_PACKAGES_DIR}/bin/nats.dll") + endif() + if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/natsd.dll") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin") + file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/natsd.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/natsd.dll") + endif() + endif() +endif() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +if(VCPKG_TARGET_IS_WINDOWS) + if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) + if(EXISTS "${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-debug.cmake") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-debug.cmake" + "\${_IMPORT_PREFIX}/debug/lib/natsd.dll" "\${_IMPORT_PREFIX}/debug/bin/natsd.dll") + endif() + if(EXISTS "${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-release.cmake") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-release.cmake" + "\${_IMPORT_PREFIX}/lib/nats.dll" "\${_IMPORT_PREFIX}/bin/nats.dll") + endif() + endif() +endif() + +vcpkg_fixup_pkgconfig() + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cnats/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..1cbf12825a355d0cffb27c59e7a1eda2203eaf72 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cnats/vcpkg.json @@ -0,0 +1,27 @@ +{ + "name": "cnats", + "version": "3.7.0", + "port-version": 1, + "description": "A C client for the NATS messaging system", + "homepage": "https://github.com/nats-io/nats.c", + "license": "Apache-2.0", + "dependencies": [ + "libsodium", + "openssl", + "protobuf-c", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "streaming": { + "description": "Include NATS Streaming APIs in the NATS library", + "supports": "!windows" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/fix-compatibility-with-boost-1.83.patch b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/fix-compatibility-with-boost-1.83.patch new file mode 100644 index 0000000000000000000000000000000000000000..530b342bafc57e9d554549656cddda9b9602e8f5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/fix-compatibility-with-boost-1.83.patch @@ -0,0 +1,24 @@ + boost/network/protocol/http/server/impl/parsers.ipp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/boost/network/protocol/http/server/impl/parsers.ipp b/boost/network/protocol/http/server/impl/parsers.ipp +index c31e60ea..3272c2fa 100644 +--- a/boost/network/protocol/http/server/impl/parsers.ipp ++++ b/boost/network/protocol/http/server/impl/parsers.ipp +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + + #ifdef BOOST_NETWORK_NO_LIB + #ifndef BOOST_NETWORK_INLINE +@@ -32,7 +33,7 @@ typedef std::basic_string u32_string; + template <> // + struct assign_to_container_from_value { + static void call(u32_string const& val, std::string& attr) { +- u32_to_u8_iterator begin = val.begin(), ++ boost::u32_to_u8_iterator begin = val.begin(), + end = val.end(); + for (; begin != end; ++begin) attr += *begin; + } diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5e36bfdb51feeb7bf33b390c976a01a2090c046f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cpp-netlib/cpp-netlib + REF 31d304cdf52b485f465ada433d8905171b61cbff + SHA512 6d157e6d950dd76a6d16b9c13d4d29f188d9f540eb0b44ab169016e1d7a360995e51d9923b532503a17dd2c8e0e2a38b2f9b531db03b33239e7fb9ca4d047b0c + HEAD_REF master + # Updator's note: cpp-netlib has many templates that are not fully instantiated when not building examples. + # This patch specifically fixes one of those issues + # To test updates, enable building examples below (may also require patching out uses of cxxopts) + PATCHES + fix-compatibility-with-boost-1.83.patch + stream-handler-executor.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCPP-NETLIB_BUILD_TESTS=OFF + -DCPP-NETLIB_BUILD_EXAMPLES=OFF +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +if (VCPKG_TARGET_IS_WINDOWS) + vcpkg_cmake_config_fixup(CONFIG_PATH cmake PACKAGE_NAME cppnetlib) +else() + vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cppnetlib PACKAGE_NAME cppnetlib) +endif() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/stream-handler-executor.patch b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/stream-handler-executor.patch new file mode 100644 index 0000000000000000000000000000000000000000..7152f23491b54c9bf9712c27c7be7cea36e9ebdd --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/stream-handler-executor.patch @@ -0,0 +1,27 @@ +diff --git a/boost/network/protocol/stream_handler.hpp b/boost/network/protocol/stream_handler.hpp +index ffb09b8..f3b3e99 100644 +--- a/boost/network/protocol/stream_handler.hpp ++++ b/boost/network/protocol/stream_handler.hpp +@@ -41,6 +40,7 @@ typedef boost::asio::ssl::context ssl_context; + + struct stream_handler { + public: ++ typedef tcp_socket::executor_type executor_type; + stream_handler(std::shared_ptr socket) + : tcp_sock_(std::move(socket)), ssl_enabled(false) {} + +@@ -52,12 +52,12 @@ struct stream_handler { + stream_handler(boost::asio::io_service& io, + std::shared_ptr ctx = + std::shared_ptr()) { +- tcp_sock_ = std::make_shared(boost::ref(io)); ++ tcp_sock_ = std::make_shared(io.get_executor()); + ssl_enabled = false; + if (ctx) { + /// SSL is enabled + ssl_sock_ = +- std::make_shared(boost::ref(io), boost::ref(*ctx)); ++ std::make_shared(io.get_executor(), boost::ref(*ctx)); + ssl_enabled = true; + } + } diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..61044d46d2768eb604e872a860775d5e3f26580e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "cpp-netlib", + "version": "0.13.0", + "port-version": 9, + "description": "A collection of network-related routines/implementations geared towards providing a robust cross-platform networking library", + "homepage": "https://cpp-netlib.org/", + "supports": "!uwp", + "dependencies": [ + "boost-asio", + "boost-assign", + "boost-logic", + "boost-program-options", + "boost-scope-exit", + "boost-smart-ptr", + "boost-spirit", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/dukglue/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/dukglue/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..412e2fa065a3a2e87f8a67efc7eba984134e6dbc --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/dukglue/portfile.cmake @@ -0,0 +1,11 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Aloshi/dukglue + REF c3ec2a463a03a4fa34715aa75273537d39900edb #2022-11-08 + HEAD_REF master + SHA512 60bf0274113fa7d547ed2890268782176c507ab0b7ea601362640bb2d4d637ce013a4dabeffbd8a82ed672b2de7778355b6e79642d70cfc2c1f1cf2c2fd9f6c1 +) + +file(COPY "${SOURCE_PATH}/include/dukglue" DESTINATION "${CURRENT_PACKAGES_DIR}/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/dukglue/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/dukglue/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..c18249e9879522edf618cd7ce20b7c2aa6fac5c5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/dukglue/vcpkg.json @@ -0,0 +1,10 @@ +{ + "name": "dukglue", + "version-date": "2022-11-08", + "description": "A C++ binding/wrapper library for the Duktape JavaScript interpreter.", + "homepage": "https://github.com/Aloshi/dukglue", + "license": "MIT", + "dependencies": [ + "duktape" + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/eabase/EABaseConfig.cmake.in b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/EABaseConfig.cmake.in new file mode 100644 index 0000000000000000000000000000000000000000..afc9b104a0107214b46fe04b474dd7e83a2f5cfe --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/EABaseConfig.cmake.in @@ -0,0 +1,6 @@ +@PACKAGE_INIT@ + +# Provide path for scripts +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") + +include(${CMAKE_CURRENT_LIST_DIR}/EABaseTargets.cmake) \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/eabase/fix_cmake_install.patch b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/fix_cmake_install.patch new file mode 100644 index 0000000000000000000000000000000000000000..ea83e66b201d87282cf30d2106d50374c8b0cd02 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/fix_cmake_install.patch @@ -0,0 +1,75 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 89c6703..ab8e553 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,6 +4,9 @@ + cmake_minimum_required(VERSION 3.1) + project(EABase CXX) + ++include(GNUInstallDirs) ++include(CMakePackageConfigHelpers) ++ + #------------------------------------------------------------------------------------------- + # Options + #------------------------------------------------------------------------------------------- +@@ -22,13 +25,51 @@ endif() + add_definitions(-D_CHAR16T) + + if (NOT EABASE_BUILD_TESTS) +- #------------------------------------------------------------------------------------------- +- # Header only library +- #------------------------------------------------------------------------------------------- +- add_library(EABase INTERFACE) +- +- #------------------------------------------------------------------------------------------- +- # Include dirs +- #------------------------------------------------------------------------------------------- +- target_include_directories(EABase INTERFACE include/Common) ++ #------------------------------------------------------------------------------------------- ++ # Header only library ++ #------------------------------------------------------------------------------------------- ++ add_library(EABase INTERFACE) ++ add_library(EABase::EABase ALIAS EABase) ++ ++ #------------------------------------------------------------------------------------------- ++ # Include dirs ++ #------------------------------------------------------------------------------------------- ++ target_include_directories(EABase INTERFACE ++ $ ++ $ ++ ) ++ ++ # create and install an export set for eabase target as EABase::EABase ++ set(EABase_CMAKE_CONFIG_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/EABase") ++ ++ configure_package_config_file( ++ EABaseConfig.cmake.in ++ ${CMAKE_CURRENT_BINARY_DIR}/EABaseConfig.cmake ++ INSTALL_DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION} ++ ) ++ ++ # create and install an export set for Terra target as Terra ++ install( ++ TARGETS EABase EXPORT EABaseTargets ++ DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ) ++ ++ ++ install(EXPORT EABaseTargets DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION}) ++ ++ write_basic_package_version_file( ++ "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfigVersion.cmake" ++ VERSION 2.09.12 ++ COMPATIBILITY SameMajorVersion ++ ) ++ ++ install(TARGETS EABase LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") ++ install(DIRECTORY "include/Common/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") ++ ++ install( ++ FILES ++ "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfig.cmake" ++ "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfigVersion.cmake" ++ DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION} ++ ) + endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/eabase/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..7191eb44a70abcea4bed3f534c37a4d43c32b716 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO electronicarts/EABase + REF d1be0a1d0fc01a9bf8f3f2cea75018df0d2410ee + SHA512 84a11bea06aecbf9a659d92b1ac904b99b2b82023650f4f376b5e68a744f631c5dbdd53d25f746ffb01b428415ac86e4fb8ba758db844acf80560fabe4d77733 + HEAD_REF master + PATCHES + fix_cmake_install.patch +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/EABaseConfig.cmake.in" DESTINATION "${SOURCE_PATH}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DEABASE_BUILD_TESTS:BOOL=OFF +) +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/EABase) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_copy_pdbs() + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/eabase/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..1b503d8c71f462cb1b0cf86c2a7604c3af6b720a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/eabase/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "eabase", + "version-string": "2.09.12", + "port-version": 3, + "description": "Electronic Arts Base. EABase is a small set of header files that define platform-independent data types and macros.", + "homepage": "https://github.com/electronicarts/EABase", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/gentables.patch b/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/gentables.patch new file mode 100644 index 0000000000000000000000000000000000000000..6faa5f8c5aaf1f56353358768a5bb54b5fb99f9c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/gentables.patch @@ -0,0 +1,51 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index e86a6429..9240e091 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -538,6 +538,9 @@ install(EXPORT FluidSynthTargets + + # ******* Auto Generated Lookup Tables ****** + ++if(VCPKG_BUILD_MAKE_TABLES) ++ add_subdirectory(gentables) ++elseif(0) + include(ExternalProject) + + set (GENTAB_SDIR ${CMAKE_CURRENT_SOURCE_DIR}/gentables) +@@ -557,4 +560,11 @@ ExternalProject_Add(gentables + "${CMAKE_COMMAND}" --build "${GENTAB_BDIR}" + INSTALL_COMMAND ${GENTAB_BDIR}/make_tables.exe "${FluidSynth_BINARY_DIR}/" + ) ++endif() ++if(TARGET make_tables AND NOT CMAKE_CROSSCOMPILING) ++ set(GENTABLES make_tables) ++else() ++ find_program(GENTABLES make_tables REQUIRED) ++endif() ++add_custom_target(gentables COMMAND "${GENTABLES}" "${CMAKE_BINARY_DIR}/") + add_dependencies(libfluidsynth-OBJ gentables) +diff --git a/src/gentables/CMakeLists.txt b/src/gentables/CMakeLists.txt +index 9cb69f2b..c393a670 100644 +--- a/src/gentables/CMakeLists.txt ++++ b/src/gentables/CMakeLists.txt +@@ -12,6 +12,7 @@ unset(ENV{LDFLAGS}) + + project (gentables C) + ++if (0) + set ( CMAKE_BUILD_TYPE Debug ) + + # hardcode ".exe" as suffix to the binary, else in case of cross-platform cross-compiling the calling cmake will not know the suffix used here and fail to find the binary +@@ -20,6 +21,7 @@ set ( CMAKE_EXECUTABLE_SUFFIX ".exe" ) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}) ++endif() + + # Add the executable that generates the table + add_executable( make_tables +@@ -34,3 +36,4 @@ if ( WIN32 ) + else ( WIN32 ) + target_link_libraries (make_tables "m") + endif () ++install(TARGETS make_tables DESTINATION bin) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..87c62c84807936c458a43c896964ba136dd93177 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/portfile.cmake @@ -0,0 +1,97 @@ +if("pulseaudio" IN_LIST FEATURES) + message( + "${PORT} with pulseaudio feature currently requires the following from the system package manager: + libpulse-dev pulseaudio + These can be installed on Ubuntu systems via sudo apt install libpulse-dev pulseaudio" + ) +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO FluidSynth/fluidsynth + REF "v${VERSION}" + SHA512 79891116d78b9be1c38bce9e5759b9bb732c3d8ee31c6e57d1a3e2b5548879b91d19582e73ee7fb0fd243beba3bf1bbc341a26aab0b6440eef36fc55dce3e8b0 + HEAD_REF master + PATCHES + gentables.patch +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + buildtools VCPKG_BUILD_MAKE_TABLES + sndfile enable-libsndfile + pulseaudio enable-pulseaudio +) + +# enable platform-specific features, force the build to fail if the required libraries are not found, +# and disable all other features to avoid system libraries to be picked up +set(WINDOWS_OPTIONS enable-dsound enable-wasapi enable-waveout enable-winmidi HAVE_MMSYSTEM_H HAVE_DSOUND_H HAVE_OBJBASE_H) +set(MACOS_OPTIONS enable-coreaudio enable-coremidi COREAUDIO_FOUND COREMIDI_FOUND) +set(LINUX_OPTIONS enable-alsa ALSA_FOUND) +set(ANDROID_OPTIONS enable-opensles OpenSLES_FOUND) +set(IGNORED_OPTIONS enable-coverage enable-dbus enable-floats enable-fpe-check enable-framework enable-jack enable-lash + enable-libinstpatch enable-midishare enable-oboe enable-openmp enable-oss enable-pipewire enable-portaudio + enable-profiling enable-readline enable-sdl2 enable-systemd enable-trap-on-fpe enable-ubsan) + +if(VCPKG_TARGET_IS_WINDOWS) + set(OPTIONS_TO_ENABLE ${WINDOWS_OPTIONS}) + set(OPTIONS_TO_DISABLE ${MACOS_OPTIONS} ${LINUX_OPTIONS} ${ANDROID_OPTIONS}) +elseif(VCPKG_TARGET_IS_OSX) + set(OPTIONS_TO_ENABLE ${MACOS_OPTIONS}) + set(OPTIONS_TO_DISABLE ${WINDOWS_OPTIONS} ${LINUX_OPTIONS} ${ANDROID_OPTIONS}) +elseif(VCPKG_TARGET_IS_LINUX) + set(OPTIONS_TO_ENABLE ${LINUX_OPTIONS}) + set(OPTIONS_TO_DISABLE ${WINDOWS_OPTIONS} ${MACOS_OPTIONS} ${ANDROID_OPTIONS}) +elseif(VCPKG_TARGET_IS_ANDROID) + set(OPTIONS_TO_ENABLE ${ANDROID_OPTIONS}) + set(OPTIONS_TO_DISABLE ${WINDOWS_OPTIONS} ${MACOS_OPTIONS} ${LINUX_OPTIONS}) +endif() + +foreach(_option IN LISTS OPTIONS_TO_ENABLE) + list(APPEND ENABLED_OPTIONS "-D{_option}:BOOL=ON") +endforeach() + +foreach(_option IN LISTS OPTIONS_TO_DISABLE IGNORED_OPTIONS) + list(APPEND DISABLED_OPTIONS "-D${_option}:BOOL=OFF") +endforeach() + +vcpkg_find_acquire_program(PKGCONFIG) +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DVCPKG_HOST_TRIPLET=${HOST_TRIPLET}" + ${FEATURE_OPTIONS} + ${ENABLED_OPTIONS} + ${DISABLED_OPTIONS} + "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}" + MAYBE_UNUSED_VARIABLES + ${OPTIONS_TO_DISABLE} + VCPKG_BUILD_MAKE_TABLES + enable-coverage + enable-framework + enable-ubsan +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fluidsynth) + +vcpkg_fixup_pkgconfig() + +set(tools fluidsynth) +if("buildtools" IN_LIST FEATURES) + list(APPEND tools make_tables) +endif() +vcpkg_copy_tools(TOOL_NAMES ${tools} AUTO_CLEAN) + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" + "${CURRENT_PACKAGES_DIR}/share/man") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..89412b18f9e45c045bd9673eb760a60291b81552 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/vcpkg.json @@ -0,0 +1,52 @@ +{ + "name": "fluidsynth", + "version": "2.3.4", + "description": "FluidSynth reads and handles MIDI events from the MIDI input device. It is the software analogue of a MIDI synthesizer. FluidSynth can also play midifiles using a Soundfont.", + "homepage": "https://github.com/FluidSynth/fluidsynth", + "license": "LGPL-2.1-or-later", + "supports": "!xbox", + "dependencies": [ + { + "name": "alsa", + "platform": "linux" + }, + { + "name": "fluidsynth", + "host": true, + "default-features": false, + "features": [ + "buildtools" + ] + }, + "glib", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "buildtools": { + "description": "Build tools gentables" + }, + "pulseaudio": { + "description": "Build with PulseAudio support", + "supports": "linux" + }, + "sndfile": { + "description": "Enable rendering to file and SF3 support", + "dependencies": [ + { + "name": "libsndfile", + "default-features": false, + "features": [ + "external-libs" + ] + } + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix-dependency-hwloc.patch b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix-dependency-hwloc.patch new file mode 100644 index 0000000000000000000000000000000000000000..b829acd0cd907c6d630cea6ed6232b3789fa52fa --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix-dependency-hwloc.patch @@ -0,0 +1,15 @@ +diff --git a/cmake/FindHwloc.cmake b/cmake/FindHwloc.cmake +index cdede78..6967abf 100644 +--- a/cmake/FindHwloc.cmake ++++ b/cmake/FindHwloc.cmake +@@ -71,6 +71,9 @@ if(NOT TARGET Hwloc::hwloc) + add_library(Hwloc::hwloc INTERFACE IMPORTED) + target_include_directories(Hwloc::hwloc SYSTEM INTERFACE ${HWLOC_INCLUDE_DIR}) + target_link_libraries(Hwloc::hwloc INTERFACE ${HWLOC_LIBRARIES}) +- ++ if(APPLE) ++ target_link_libraries(Hwloc::hwloc INTERFACE "-framework CoreFoundation" "-framework IOKit") ++ endif() ++ + mark_as_advanced(HWLOC_ROOT HWLOC_LIBRARY HWLOC_INCLUDE_DIR) + endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix_output_name_clash.patch b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix_output_name_clash.patch new file mode 100644 index 0000000000000000000000000000000000000000..542aa5a29c6e52cad23846596ade8f2f505cd49b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix_output_name_clash.patch @@ -0,0 +1,13 @@ +diff --git a/cmake/HPX_AddComponent.cmake b/cmake/HPX_AddComponent.cmake +index 129a87ced..b45feb3f5 100644 +--- a/cmake/HPX_AddComponent.cmake ++++ b/cmake/HPX_AddComponent.cmake +@@ -306,7 +306,7 @@ function(add_hpx_component name) + hpx_setup_target( + ${name}_component + TYPE COMPONENT +- NAME ${name} ++ NAME ${name}_component + FOLDER ${${name}_FOLDER} + COMPILE_FLAGS ${${name}_COMPILE_FLAGS} + LINK_FLAGS ${${name}_LINK_FLAGS} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/hpx/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..059ac373a55c4bae152bebbaafd65c0bbb303697 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/portfile.cmake @@ -0,0 +1,111 @@ +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) +endif() +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" HPX_WITH_STATIC_LINKING) + +vcpkg_download_distfile( + MSVC_STATIC_VARIABLES_PATCH + URLS https://github.com/STEllAR-GROUP/hpx/commit/6c378813a7e2304a3a0c8900156f147a3a44b0cb.patch?full_index=1 + SHA512 6ed2ec4eab9593d8d1a76da183dd4ceb5ac332f50b0b5cd3a81c74248c61eeb869d301a33e266d06c5f8ddf041da6cd29d1b89b38e51527716a6e557b4a7e66e + FILENAME hpx-6c378813a7e2304a3a0c8900156f147a3a44b0cb.patch +) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO STEllAR-GROUP/hpx + REF "v${VERSION}" + SHA512 a7972beada950cf6ef3b61f20496a08b220e4f48c28c11d57c20683906ca5124a9f36ac2552318883a5ab1db6efdbf63d1141b6e0c484c560a8c1311ae2d7090 + HEAD_REF master + PATCHES + fix-dependency-hwloc.patch + fix-debug.patch + fix_output_name_clash.patch + "${MSVC_STATIC_VARIABLES_PATCH}" +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "zlib" HPX_WITH_COMPRESSION_ZLIB + "snappy" HPX_WITH_COMPRESSION_SNAPPY + "bzip2" HPX_WITH_COMPRESSION_BZIP2 + "cuda" HPX_WITH_CUDA + "mpi" HPX_WITH_PARCELPORT_MPI + "mpi" HPX_WITH_PARCELPORT_MPI_MULTITHREADED +) + +if(NOT VCPKG_TARGET_ARCHITECTURE MATCHES "(x64|x86)") + list(APPEND FEATURE_OPTIONS "-DHPX_WITH_GENERIC_CONTEXT_COROUTINES=ON") +endif() + +file(REMOVE "${SOURCE_PATH}/cmake/FindBZip2.cmake") # Outdated + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DHPX_WITH_VCPKG=ON + -DHPX_WITH_TESTS=OFF + -DHPX_WITH_EXAMPLES=OFF + -DHPX_WITH_TOOLS=OFF + -DHPX_WITH_RUNTIME=OFF + -DHPX_USE_CMAKE_CXX_STANDARD=ON + ${FEATURE_OPTIONS} + -DHPX_WITH_PKGCONFIG=OFF + -DHPX_WITH_STATIC_LINKING=${HPX_WITH_STATIC_LINKING} + -DHPX_WITH_PARCELPORT_TCP=ON + -DHPX_WITH_THREAD_TARGET_ADDRESS=ON + -DHPX_WITH_CHECK_MODULE_DEPENDENCIES=ON + -DHPX_WITH_THREAD_IDLE_RATES=ON + -DVCPKG_HOST_TRIPLET=${_HOST_TRIPLET} +) +vcpkg_cmake_install() + +# post build cleanup +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/HPX) + +file(GLOB_RECURSE CMAKE_FILES "${CURRENT_PACKAGES_DIR}/share/hpx/*.cmake") +foreach(CMAKE_FILE IN LISTS CMAKE_FILES) + file(READ ${CMAKE_FILE} _contents) + string(REGEX REPLACE + "lib/([A-Za-z0-9_.-]+\\.dll)" + "bin/\\1" + _contents "${_contents}") + string(REGEX REPLACE + "lib/hpx/([A-Za-z0-9_.-]+\\.dll)" + "bin/hpx/\\1" + _contents "${_contents}") + file(WRITE ${CMAKE_FILE} "${_contents}") +endforeach() + +vcpkg_replace_string( + "${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXConfig.cmake" + "set(HPX_BUILD_TYPE \"Release\")" + "set(HPX_BUILD_TYPE \"\${CMAKE_BUILD_TYPE}\")") + +vcpkg_replace_string( + "${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXMacros.cmake" + "set(CMAKE_MODULE_PATH \${CMAKE_MODULE_PATH}" + "list(APPEND CMAKE_MODULE_PATH") + +file(INSTALL + "${SOURCE_PATH}/LICENSE_1_0.txt" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_fixup_pkgconfig() + +file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/hpxcxx" "${CURRENT_PACKAGES_DIR}/debug/bin/hpxcxx") + +if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/hpxrun.py") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}") + file(RENAME "${CURRENT_PACKAGES_DIR}/bin/hpxrun.py" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/hpxrun.py") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/hpxrun.py" "'${CURRENT_INSTALLED_DIR}/tools/openmpi/bin/mpiexec'" "'mpiexec'") +endif() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/hpx/usage b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/usage new file mode 100644 index 0000000000000000000000000000000000000000..cf471d0596c7d94c9a6b894ddba88e452cd50b51 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/hpx/usage @@ -0,0 +1,4 @@ +The port hpx provides CMake targets: + + find_package(HPX REQUIRED) + target_link_libraries(main PRIVATE HPX::hpx) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/implot/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/implot/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..6807c550d7e03e3f0af5ade455d0c1b9d305c635 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/implot/CMakeLists.txt @@ -0,0 +1,52 @@ +cmake_minimum_required(VERSION 3.8) +project(implot CXX) + +find_package(imgui CONFIG REQUIRED) +get_target_property(IMGUI_INCLUDE_DIRS imgui::imgui + INTERFACE_INCLUDE_DIRECTORIES +) + +set(CMAKE_DEBUG_POSTFIX d) + +add_library(${PROJECT_NAME} "") +add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11) +target_include_directories( + ${PROJECT_NAME} + PUBLIC + $ + $ + PRIVATE + ${IMGUI_INCLUDE_DIRS} +) + +target_sources( + ${PROJECT_NAME} + PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/implot.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/implot_items.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/implot_demo.cpp +) + +install( + TARGETS ${PROJECT_NAME} + EXPORT ${PROJECT_NAME}_target + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin +) + +if(NOT IMPLOT_SKIP_HEADERS) + install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/implot.h + ${CMAKE_CURRENT_SOURCE_DIR}/implot_internal.h + DESTINATION include + ) +endif() + +install( + EXPORT ${PROJECT_NAME}_target + NAMESPACE ${PROJECT_NAME}:: + FILE ${PROJECT_NAME}-config.cmake + DESTINATION share/${PROJECT_NAME} +) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/implot/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/implot/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..7bda01747db2fbeeab9871ab266029f18c6baa68 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/implot/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO epezent/implot + REF v${VERSION} + SHA512 117cb08122d900e7db857897bfec4c9ac3300a1d429c8f0303415bc693840baa9bbbb91ca3f13853d8efd3a6ebf538b7114401d4fbfe0d067256e58cbdbd4919 + HEAD_REF master +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS_DEBUG + -DIMPLOT_SKIP_HEADERS=ON +) + +vcpkg_cmake_install() + +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/implot/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/implot/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..70c71fb076ebf2173868b420c80c4f0945d5eba4 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/implot/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "implot", + "version": "0.16", + "description": "Advanced 2D Plotting for Dear ImGui", + "homepage": "https://github.com/epezent/implot", + "license": "MIT", + "dependencies": [ + "imgui", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..9c4f6edf7f66573bbbebc0c53ecff92ba2903e04 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/CMakeLists.txt @@ -0,0 +1,54 @@ +cmake_minimum_required(VERSION 3.14) + +project(iniparser LANGUAGES C) + +include(GNUInstallDirs) + +set(CMAKE_DISABLE_SOURCE_CHANGES ON) +set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) + +# iniparser.pc +set(prefix ${CMAKE_INSTALL_PREFIX}) +set(libdir ${prefix}/${CMAKE_INSTALL_LIBDIR}) +set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR}) +set(datarootdir ${prefix}/${CMAKE_INSTALL_DATAROOTDIR}) +set(datadir ${prefix}/${CMAKE_INSTALL_DATADIR}) + +configure_file(iniparser.pc ${CMAKE_CURRENT_BINARY_DIR}/iniparser.pc) + +set(iniparser_sources + src/dictionary.c + src/iniparser.c +) + +add_library(iniparser ${iniparser_sources}) + +target_include_directories(iniparser + PUBLIC + $ + $ +) + +target_compile_definitions(iniparser + PRIVATE + $<$:_CRT_SECURE_NO_WARNINGS> +) + +install(TARGETS iniparser EXPORT unofficial-iniparser-config) + +install( + EXPORT unofficial-iniparser-config + NAMESPACE unofficial::iniparser:: + DESTINATION share/unofficial-iniparser + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ +) + +install( + FILES src/dictionary.h src/iniparser.h + DESTINATION include +) + +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/iniparser.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig +) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..4688037bc4b948cb0b8ea4436cb40f2436aa70d4 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ndevilla/iniparser + REF f858275f7f307eecba84c2f5429483f9f28007f8 + SHA512 48c80b2163f86d8ca0f3253128d8528214e2f0680b4bceb686180c01b29cd2a0c3b9d6e7156a8e28649b14bc1d8a51b34c2d3d258013b35f69aaf6c3ded9ecdc + HEAD_REF master + PATCHES + win32_ssize_t.patch +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT}) + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +vcpkg_fixup_pkgconfig() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..8ed760ec168182762eb8c4a34a587448e58d0573 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "iniparser", + "version-date": "2020-04-06", + "port-version": 5, + "description": "C library for parsing INI-style files", + "homepage": "https://github.com/ndevilla/iniparser", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/win32_ssize_t.patch b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/win32_ssize_t.patch new file mode 100644 index 0000000000000000000000000000000000000000..3fefee6c8cb8ef4ae7cbc5ccdcd013111300c8b7 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/iniparser/win32_ssize_t.patch @@ -0,0 +1,29 @@ +diff --git a/src/dictionary.c b/src/dictionary.c +index cb7ccd4..7985ab3 100644 +--- a/src/dictionary.c ++++ b/src/dictionary.c +@@ -18,7 +18,6 @@ + #include + #include + #include +-#include + + /** Maximum value size for integers and doubles. */ + #define MAXVALSZ 1024 +diff --git a/src/dictionary.h b/src/dictionary.h +index d04b6ce..929ae17 100644 +--- a/src/dictionary.h ++++ b/src/dictionary.h +@@ -21,7 +21,12 @@ + #include + #include + #include ++#ifdef _MSC_VER ++#include ++typedef SSIZE_T ssize_t; ++#else + #include ++#endif + + #ifdef __cplusplus + extern "C" { diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix-for-vcpkg.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix-for-vcpkg.patch new file mode 100644 index 0000000000000000000000000000000000000000..2b5f27f80dc29786446f6e1bb3d58784faa70257 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix-for-vcpkg.patch @@ -0,0 +1,30 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a3837943..2c34d7fb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -446,11 +446,25 @@ if(WARNINGS_AS_ERRORS) + endif() + endif() + ++if(DATACHANNEL_STATIC_LINKAGE) ++set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 1) ++set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 0) ++ ++install(TARGETS datachannel-static EXPORT LibDataChannelTargets ++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ++) ++else() ++set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 0) ++set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 1) ++ + install(TARGETS datachannel EXPORT LibDataChannelTargets + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) ++endif() + + install(FILES ${LIBDATACHANNEL_HEADERS} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rtc diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_dependency.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_dependency.patch new file mode 100644 index 0000000000000000000000000000000000000000..88e44dcd988f715cb30e25f279d412b6ddb08fc1 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_dependency.patch @@ -0,0 +1,40 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f604628..1610166 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -239,7 +239,7 @@ set(THREADS_PREFER_PTHREAD_FLAG TRUE) + find_package(Threads REQUIRED) + + if(USE_SYSTEM_PLOG) +- find_package(plog REQUIRED) ++ find_package(plog CONFIG REQUIRED) + else() + set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) + add_subdirectory(deps/plog EXCLUDE_FROM_ALL) +@@ -250,7 +250,7 @@ if(SCTP_DEBUG) + endif() + + if(USE_SYSTEM_USRSCTP) +- find_package(Usrsctp REQUIRED) ++ find_package(unofficial-usrsctp CONFIG REQUIRED) + else() + option(sctp_build_shared_lib OFF) + option(sctp_build_programs OFF) +@@ -294,7 +294,7 @@ target_include_directories(datachannel PUBLIC + target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc) + target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) + target_link_libraries(datachannel PRIVATE Threads::Threads) +-target_link_libraries(datachannel PRIVATE Usrsctp::Usrsctp plog::plog) ++target_link_libraries(datachannel PRIVATE unofficial::usrsctp::usrsctp plog::plog) + + target_include_directories(datachannel-static PUBLIC + $ +@@ -302,7 +302,7 @@ target_include_directories(datachannel-static PUBLIC + target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc) + target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) + target_link_libraries(datachannel-static PRIVATE Threads::Threads) +-target_link_libraries(datachannel-static PRIVATE Usrsctp::Usrsctp plog::plog) ++target_link_libraries(datachannel-static PRIVATE unofficial::usrsctp::usrsctp plog::plog) + + if(WIN32) + target_link_libraries(datachannel PUBLIC ws2_32) # winsock2 diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_srtp.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_srtp.patch new file mode 100644 index 0000000000000000000000000000000000000000..0e321eac96a7589349999fd4df9344d2464bd291 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_srtp.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ca0f12e5..8e0e665f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -326,7 +326,7 @@ else() + target_compile_definitions(datachannel PUBLIC RTC_ENABLE_MEDIA=1) + target_compile_definitions(datachannel-static PUBLIC RTC_ENABLE_MEDIA=1) + if(USE_SYSTEM_SRTP) +- find_package(libSRTP REQUIRED) ++ find_package(libSRTP CONFIG REQUIRED) + if(NOT TARGET libSRTP::srtp2) + add_library(libSRTP::srtp2 UNKNOWN IMPORTED) + set_target_properties(libSRTP::srtp2 PROPERTIES diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..456620dcecd058ecab993a14f9ac19e3b22cead3 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/portfile.cmake @@ -0,0 +1,61 @@ +set(PATCHES fix-for-vcpkg.patch) + +if(VCPKG_TARGET_IS_UWP) + list(APPEND PATCHES uwp-warnings.patch) +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO paullouisageneau/libdatachannel + REF "v${VERSION}" + SHA512 28ef96773b5c0b470ad9c52dafc1c7b8c88e54414a59bf0363ce3ca3f099f81a3e8005f57d4e4d93c8be9bdd72855d8af5438266e75fdabb23882df6d6f0b550 + HEAD_REF master + PATCHES + ${PATCHES} + fix_dependency.patch +) +file(REMOVE "${SOURCE_PATH}/cmake/Modules/FindLibJuice.cmake") +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DATACHANNEL_STATIC_LINKAGE) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + stdcall CAPI_STDCALL + INVERTED_FEATURES + ws NO_WEBSOCKET + srtp NO_MEDIA +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DPREFER_SYSTEM_LIB=ON + -DNO_EXAMPLES=ON + -DNO_TESTS=ON + -DDATACHANNEL_STATIC_LINKAGE=${DATACHANNEL_STATIC_LINKAGE} +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME LibDataChannel CONFIG_PATH lib/cmake/LibDataChannel) +vcpkg_fixup_pkgconfig() + +if(srtp IN_LIST FEATURES) + set(FIND_DEP_SRTP "find_dependency(libSRTP CONFIG)") +endif() + +file(READ "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" DATACHANNEL_CONFIG) +file(WRITE "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" " +include(CMakeFindDependencyMacro) +find_dependency(Threads) +find_dependency(OpenSSL) +find_dependency(LibJuice) +find_dependency(plog CONFIG) +find_dependency(unofficial-usrsctp CONFIG) +${FIND_DEP_SRTP} +${DATACHANNEL_CONFIG}") + + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/uwp-warnings.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/uwp-warnings.patch new file mode 100644 index 0000000000000000000000000000000000000000..75bddb5d698c6480df24371dc80ef20221c6f7e5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/uwp-warnings.patch @@ -0,0 +1,14 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2c34d7fb..1bedd212 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -446,6 +446,9 @@ if(WARNINGS_AS_ERRORS) + endif() + endif() + ++target_compile_options(datachannel PRIVATE /wd4996) ++target_compile_options(datachannel-static PRIVATE /wd4996) ++ + if(DATACHANNEL_STATIC_LINKAGE) + set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 1) + set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 0) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..d0a63de403ee4789e0bf57bca98d8f90365c34f2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/vcpkg.json @@ -0,0 +1,41 @@ +{ + "name": "libdatachannel", + "version-semver": "0.20.1", + "port-version": 1, + "description": "libdatachannel is a standalone implementation of WebRTC Data Channels, WebRTC Media Transport, and WebSockets in C++17 with C bindings for POSIX platforms (including GNU/Linux, Android, and Apple macOS) and Microsoft Windows.", + "homepage": "https://github.com/paullouisageneau/libdatachannel", + "license": "MPL-2.0", + "supports": "!xbox", + "dependencies": [ + "libjuice", + "nlohmann-json", + "openssl", + "plog", + "usrsctp", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "ws" + ], + "features": { + "srtp": { + "description": "Use Cisco's libSRTP for media transport.", + "dependencies": [ + "libsrtp" + ] + }, + "stdcall": { + "description": "Use stdcall convention in callbacks" + }, + "ws": { + "description": "Web Socket support" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/magma/clang-cuda.patch b/cc-multilingual-main/cc_net/vcpkg/ports/magma/clang-cuda.patch new file mode 100644 index 0000000000000000000000000000000000000000..5aaee14ff8e448bfacd6ad08b0b10f01cdfd39ae --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/magma/clang-cuda.patch @@ -0,0 +1,50 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index eeb0bb0b8f..6a5e0a747a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -310,10 +309,17 @@ if (MAGMA_ENABLE_CUDA) + ) + else() + # No Position Independent Code on Windows. Compiler will complain if you add that flag. +- target_compile_options(magma_nvcc_flags +- INTERFACE +- $<$:--compiler-options;${FORTRAN_CONVENTION}> +- ) ++ if(NOT CMAKE_CUDA_COMPILER_ID STREQUAL "Clang") ++ target_compile_options(magma_nvcc_flags ++ INTERFACE ++ $<$:--compiler-options;${FORTRAN_CONVENTION}> ++ ) ++ else() ++ target_compile_options(magma_nvcc_flags ++ INTERFACE ++ $<$:${FORTRAN_CONVENTION}> ++ ) ++ endif() + endif(COMPILER_SUPPORTS_FPIC) + + set(MAGMA_HAVE_CUDA "1") +diff --git a/control/magma_internal.h b/control/magma_internal.h +index 2310659235..c4d0eb8f6b 100644 +--- a/control/magma_internal.h ++++ b/control/magma_internal.h +@@ -33,7 +33,7 @@ + // functions where Microsoft fails to provide C99 standard + // (only with Microsoft, not with nvcc on Windows) + // in both magma_internal.h and testings.h +- #ifndef __NVCC__ ++ #if !defined(__NVCC__) && !defined(__clang__) + + #include + #define copysign(x,y) _copysign(x,y) +@@ -42,7 +42,9 @@ + #define isfinite(x) _finite(x) + // note _snprintf has slightly different semantics than snprintf + #define snprintf _snprintf +- ++ #elif !defined(__NVCC__) ++ // make sure this actually uses the C version and not the C++ overloads ++ #define copysign(x,y) copysign((double)x,(double)y) + #endif + + #else diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/magma/disable-openmp-msvc.patch b/cc-multilingual-main/cc_net/vcpkg/ports/magma/disable-openmp-msvc.patch new file mode 100644 index 0000000000000000000000000000000000000000..b1439952a7f0539b810457a9f0ec2a9a91d0fce7 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/magma/disable-openmp-msvc.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 828911d05f..a4f5b35ef3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -103,6 +103,10 @@ endif() + + # ---------------------------------------- + # locate OpenMP ++if(MSVC AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") ++ set(CMAKE_DISBLE_FIND_PACKAGE_OpenMP ON) ++ # MSVC OpenMP is not enough to compile ++endif() + find_package( OpenMP ) + if (OPENMP_FOUND) + message( STATUS "Found OpenMP" ) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/magma/no-tests.patch b/cc-multilingual-main/cc_net/vcpkg/ports/magma/no-tests.patch new file mode 100644 index 0000000000000000000000000000000000000000..4a7d92636fe7ff9db9bd8120dfc95059afc9ee25 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/magma/no-tests.patch @@ -0,0 +1,35 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a4f5b35ef3..eeb0bb0b8f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -663,7 +670,7 @@ target_link_libraries( lapacktest + + # ---------------------------------------- + # compile tester library +-add_library( tester ${libtest_all} ) ++add_library( tester EXCLUDE_FROM_ALL ${libtest_all} ) + target_link_libraries( tester + magma + lapacktest +@@ -726,11 +726,12 @@ foreach( filename ${testing_all} ) + list( APPEND testing_all_cpp ${filename} ) + endif() + endforeach() ++set(testing_all_cpp "") + foreach( TEST ${testing_all_cpp} ) + string( REGEX REPLACE "\\.(cpp|f90|F90)" "" EXE ${TEST} ) + string( REGEX REPLACE "testing/" "" EXE ${EXE} ) + #message( "${TEST} --> ${EXE}" ) +- add_executable( ${EXE} ${TEST} ) ++ add_executable( ${EXE} EXCLUDE_FROM_ALL ${TEST} ) + target_link_libraries( ${EXE} tester lapacktest magma ) + list( APPEND testing ${EXE} ) + endforeach() +@@ -749,6 +750,7 @@ endif() + + set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${SPARSE_TEST_DIR}" ) + cmake_policy( SET CMP0037 OLD) ++set(sparse_testing_all "") + foreach( TEST ${sparse_testing_all} ) + string( REGEX REPLACE "\\.(cpp|f90|F90)" "" EXE ${TEST} ) + string( REGEX REPLACE "${SPARSE_TEST_DIR}/" "" EXE ${EXE} ) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/magma/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/magma/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..fc117d655885853fe2550e36e876d6a737ec62da --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/magma/portfile.cmake @@ -0,0 +1,54 @@ + +set(opts "") +if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + set(opts + -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS:BOOL=ON + -DCMAKE_CUDA_SEPARABLE_COMPILATION:BOOL=OFF + ) +endif() + +vcpkg_download_distfile( + dist_file + URLS https://icl.utk.edu/projectsfiles/magma/downloads/magma-${VERSION}.tar.gz + FILENAME magma-${VERSION}.tar.gz + SHA512 7ab52ad09f452f7b997da573f74465d5bc8c83392f724747b131a7015b1445c457defdb59ae7a2fd4930e2cdc5bce3c7b99a069f04db1752a5df36ddc6e84987 +) + +vcpkg_extract_source_archive( + src_path + ARCHIVE "${dist_file}" + PATCHES + disable-openmp-msvc.patch + no-tests.patch + clang-cuda.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${src_path}" + OPTIONS + -DMAGMA_ENABLE_CUDA=ON + -DMAGMA_ENABLE_HIP=OFF # HIP is backend and seems additive?! + -DUSE_FORTRAN=OFF + ${opts} +) + +vcpkg_cmake_install() + +vcpkg_fixup_pkgconfig() + +file(READ "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/magma.pc" contents) +string(REGEX REPLACE "Cflags: [^\n]+" "Cflags: -I\${includedir}" contents "${contents}") +file(WRITE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/magma.pc" "${contents}") + +if(NOT VCPKG_BUILD_TYPE) + file(READ "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/magma.pc" contents) + string(REGEX REPLACE "Cflags: [^\n]+" "Cflags: -I\${includedir}" contents "${contents}") + file(WRITE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/magma.pc" "${contents}") +endif() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +vcpkg_install_copyright(FILE_LIST "${src_path}/COPYRIGHT") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..6cbda191cd86e29dd392a9013c87edd76ae7b4cd --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/portfile.cmake @@ -0,0 +1,12 @@ +# header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO charlesnicholson/nanoprintf + REF "v${VERSION}" + SHA512 a82da24fcd176c385c8c2d1666416bcbafc3bf3e1b9e1365c8ffd7a0158485c7af6b0dbf7cd0821a7af55238784cd682a0f22fe37527b91ea3f3eaa702c61c46 + HEAD_REF master +) + +file(COPY "${SOURCE_PATH}/nanoprintf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..7ed266d05662d472a6ef32d070e7ee6ad0bc5e00 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "nanoprintf", + "version": "0.3.4", + "description": "A tiny embeddable printf replacement written in C99", + "homepage": "https://github.com/charlesnicholson/nanoprintf" +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/FindCLIPPER.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/FindCLIPPER.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5a1fcab34ab7c66a240d57abdd047dba23dc4fc3 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/FindCLIPPER.cmake @@ -0,0 +1,45 @@ +# Distributed under the OSI-approved BSD 3-Clause License. + +#.rst: +# FindCLIPPER +# -------- +# +# Result Variables +# ^^^^^^^^^^^^^^^^ +# +# This module will set the following variables in your project:: +# +# ``CLIPPER_FOUND`` +# True if CLIPPER found on the local system +# +# ``CLIPPER_INCLUDE_DIRS`` +# Location of CLIPPER header files. +# +# ``CLIPPER_LIBRARIES`` +# The clipper libraries. +# + +include(FindPackageHandleStandardArgs) +include(SelectLibraryConfigurations) + +if(NOT CLIPPER_INCLUDE_DIR) + find_path(CLIPPER_INCLUDE_DIR clipper.hpp + PATH_SUFFIXES polyclipping) +endif() + +if(NOT CLIPPER_LIBRARY) + find_library(CLIPPER_LIBRARY_RELEASE NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH) + find_library(CLIPPER_LIBRARY_DEBUG NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH) + select_library_configurations(CLIPPER) +endif() + +mark_as_advanced(CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR) + +find_package_handle_standard_args(CLIPPER + REQUIRED_VARS CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR +) + +if(CLIPPER_FOUND) + set(CLIPPER_LIBRARIES ${CLIPPER_LIBRARY}) + set(CLIPPER_INCLUDE_DIRS ${CLIPPER_INCLUDE_DIR}) +endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/fix_targets.patch b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/fix_targets.patch new file mode 100644 index 0000000000000000000000000000000000000000..ebae8f69b129e6bf8b505c8ad72c4122af234664 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/fix_targets.patch @@ -0,0 +1,17 @@ +diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt +index f0ed7e8..a5ed444 100644 +--- a/cpp/CMakeLists.txt ++++ b/cpp/CMakeLists.txt +@@ -19,3 +19,12 @@ INSTALL (TARGETS polyclipping LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") + INSTALL (FILES "${PCFILE}" DESTINATION "${CMAKE_INSTALL_PKGCONFIGDIR}") + + SET_TARGET_PROPERTIES(polyclipping PROPERTIES VERSION 22.0.0 SOVERSION 22 ) ++ ++install(TARGETS polyclipping EXPORT polyclippingConfig) ++ ++install( ++ EXPORT polyclippingConfig ++ NAMESPACE polyclipping:: ++ DESTINATION share/polyclipping ++) ++target_include_directories(polyclipping PUBLIC $) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..bc45cadd13782863b604d50d38b57d4693bd4ef6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/portfile.cmake @@ -0,0 +1,36 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_sourceforge( + OUT_SOURCE_PATH SOURCE_PATH + REPO polyclipping + FILENAME "clipper_ver6.4.2.zip" + NO_REMOVE_ONE_LEVEL + SHA512 ffc88818c44a38aa278d5010db6cfd505796f39664919f1e48c7fa9267563f62135868993e88f7246dcd688241d1172878e4a008a390648acb99738452e3e5dd + PATCHES + fix_targets.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/cpp" +) + + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() + +if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig") +endif() +if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") + file(RENAME "${CURRENT_PACKAGES_DIR}/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig") +endif() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/FindCLIPPER.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clipper") +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clipper") + +file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +vcpkg_fixup_pkgconfig() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg-cmake-wrapper.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg-cmake-wrapper.cmake new file mode 100644 index 0000000000000000000000000000000000000000..bd89342084b65753c9f17c03870c8e6b6eafd2e8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg-cmake-wrapper.cmake @@ -0,0 +1,10 @@ +list(REMOVE_ITEM ARGS "NO_MODULE") +list(REMOVE_ITEM ARGS "CONFIG") +list(REMOVE_ITEM ARGS "MODULE") + +set(clipper_PREV_MODULE_PATH ${CMAKE_MODULE_PATH}) +list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) + +_find_package(${ARGS}) + +set(CMAKE_MODULE_PATH ${clipper_PREV_MODULE_PATH}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..4c53dd031e164c9ddc8d2eb09bfb37473632e0f5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "polyclipping", + "version": "6.4.2", + "port-version": 12, + "description": "The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.", + "homepage": "https://sourceforge.net/projects/polyclipping/", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/portsmf/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/portsmf/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..2684ee4de0d80d8ee6ec10f7958a3d78b0ca9f1f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/portsmf/portfile.cmake @@ -0,0 +1,20 @@ +vcpkg_download_distfile(ARCHIVE + URLS "https://codeberg.org/tenacityteam/portsmf/archive/${VERSION}.tar.gz" + FILENAME "${VERSION}.tar.gz" + SHA512 522ef6e92de6497c66d6b9adf2b6b4e419024d26fac421096718b024ea0e183d322d3f0cd9fc357e0ba983371cf313d7a0b93b8b24aff5c9cb1ab61c915725ff +) +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" + +) + +vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PortSMF) +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/portsmf/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/portsmf/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..2f96f307ada0f9f6b93e8423039c1ab575a0bf8a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/portsmf/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "portsmf", + "version": "239", + "description": "Portsmf is 'Port Standard MIDI File', a cross-platform, C++ library for reading and writing Standard MIDI Files.", + "homepage": "https://codeberg.org/tenacityteam/portsmf", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/proj4/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/proj4/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..cc6e26fcb0b69f0221539050f385bc81e16b77c6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/proj4/portfile.cmake @@ -0,0 +1 @@ +SET(VCPKG_POLICY_EMPTY_PACKAGE enabled) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/proj4/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/proj4/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..a669741020d21e9980277906fd05c5f6f5ff5092 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/proj4/vcpkg.json @@ -0,0 +1,56 @@ +{ + "name": "proj4", + "version-semver": "8.9.9", + "port-version": 1, + "description": "A stub package that pulls in proj. Do not depend on this package.", + "license": "MIT", + "dependencies": [ + { + "name": "proj", + "default-features": false, + "version>=": "9.0.0" + } + ], + "default-features": [ + "net", + "tiff" + ], + "features": { + "net": { + "description": "Enable network support", + "dependencies": [ + { + "name": "proj", + "default-features": false, + "features": [ + "net" + ] + } + ] + }, + "tiff": { + "description": "Enable TIFF support to read some grids", + "dependencies": [ + { + "name": "proj", + "default-features": false, + "features": [ + "tiff" + ] + } + ] + }, + "tools": { + "description": "Build tools", + "dependencies": [ + { + "name": "proj", + "default-features": false, + "features": [ + "tools" + ] + } + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/rsig/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/rsig/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..bee4230d43111c887754c4a9d28f761ab6389fd2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/rsig/portfile.cmake @@ -0,0 +1,11 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO rioki/rsig + REF v0.1.1 + SHA512 1b14a543d55086da5cb678b1654267b4e7c54c7b6ef1d3b65a19ee72c362b62ecdf456c2bea8f19aaec1bee8c30b32d5d79e7ed19725d7fe26204874d063175c + ) + +file(INSTALL ${SOURCE_PATH}/rsig/rsig.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/rsig) + +file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/rsig/usage b/cc-multilingual-main/cc_net/vcpkg/ports/rsig/usage new file mode 100644 index 0000000000000000000000000000000000000000..918026fa1407649c44afa9b535c8830bfa1aad5d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/rsig/usage @@ -0,0 +1,4 @@ +The package rsig is header only and can be used from CMake via: + + find_path(RSIG_INCLUDE_DIRS "rsig/rsig.h") + target_include_directories(main PRIVATE ${RSIG_INCLUDE_DIRS}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/rsig/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/rsig/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..6ad5ebb95c00f29d6952b3c0e4450f23d64ee078 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/rsig/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "rsig", + "version-semver": "0.1.1", + "description": "rioki's signal library", + "homepage": "https://github.com/rioki/rsig", + "license": "MIT" +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/sdl2-image/usage b/cc-multilingual-main/cc_net/vcpkg/ports/sdl2-image/usage new file mode 100644 index 0000000000000000000000000000000000000000..ab9d32243458540d54622acceb6394135b1ad1c9 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/sdl2-image/usage @@ -0,0 +1,4 @@ +sdl2-image provides CMake targets: + + find_package(SDL2_image CONFIG REQUIRED) + target_link_libraries(main PRIVATE $,SDL2_image::SDL2_image,SDL2_image::SDL2_image-static>) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/sdl2-image/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/sdl2-image/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..2d775ee1bcbacedcaf514c0516ac0e1de3dddcc8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/sdl2-image/vcpkg.json @@ -0,0 +1,43 @@ +{ + "name": "sdl2-image", + "version": "2.8.2", + "port-version": 1, + "description": "SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV", + "homepage": "https://github.com/libsdl-org/SDL_image", + "license": "Zlib", + "dependencies": [ + "libpng", + { + "name": "sdl2", + "default-features": false + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "libjpeg-turbo": { + "description": "Support for JPEG image format", + "dependencies": [ + "libjpeg-turbo" + ] + }, + "libwebp": { + "description": "Support for WEBP image format.", + "dependencies": [ + "libwebp" + ] + }, + "tiff": { + "description": "Support for TIFF image format", + "dependencies": [ + "tiff" + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/selene/disable_x86_intrinsics_on_arm.patch b/cc-multilingual-main/cc_net/vcpkg/ports/selene/disable_x86_intrinsics_on_arm.patch new file mode 100644 index 0000000000000000000000000000000000000000..79e38c57c35a229de289a6a4fbb02d6a15ee6261 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/selene/disable_x86_intrinsics_on_arm.patch @@ -0,0 +1,13 @@ +diff --git a/selene/base/Bitcount.hpp b/selene/base/Bitcount.hpp +index a4d69e4..709f650 100755 +--- a/selene/base/Bitcount.hpp ++++ b/selene/base/Bitcount.hpp +@@ -69,7 +69,7 @@ inline std::size_t bit_count(unsigned long long x) + return static_cast(__builtin_popcountll(x)); + } + +-#elif defined(_MSC_VER) ++#elif defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64) + + /** \brief Performs a bit count on the supplied value. + * diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/selene/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/selene/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..abc6e87bc6f2abf65ffe405c2637c3512f3f971b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/selene/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO kmhofmann/selene + REF v0.3.1 + SHA512 7bc57ebe9e2442da2716eb5c1af11f8d610b0b09fe96e3122d1028575732b6045a987c499bbf7de53003edd627b8809d86c80ea4975fc2264a1c61d5891a46c3 + HEAD_REF master + PATCHES + disable_x86_intrinsics_on_arm.patch + tiff-deprecated-typedefs.patch + trivial-pixel.patch +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "opencv" SELENE_USE_OPENCV +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DSELENE_ARCH_NATIVE=OFF + ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/selene) +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/selene/tiff-deprecated-typedefs.patch b/cc-multilingual-main/cc_net/vcpkg/ports/selene/tiff-deprecated-typedefs.patch new file mode 100644 index 0000000000000000000000000000000000000000..e2429138dc1471b254b3e9dfd2053d1e008c9c6a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/selene/tiff-deprecated-typedefs.patch @@ -0,0 +1,14 @@ +diff --git a/selene/CMakeLists.txt b/selene/CMakeLists.txt +index ab2760c..d1e1e6c 100644 +--- a/selene/CMakeLists.txt ++++ b/selene/CMakeLists.txt +@@ -229,6 +229,9 @@ if(TIFF_FOUND) + ) + + target_compile_options(selene_img_io_tiff PRIVATE ${SELENE_COMPILER_OPTIONS} ${SELENE_IMG_COMPILER_OPTIONS}) ++ if(MSVC) ++ target_compile_options(selene_img_io_tiff PRIVATE /wd4996) ++ endif() + + target_compile_definitions(selene_img_io_tiff PRIVATE ${SELENE_COMPILER_DEFINITIONS}) + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/selene/trivial-pixel.patch b/cc-multilingual-main/cc_net/vcpkg/ports/selene/trivial-pixel.patch new file mode 100644 index 0000000000000000000000000000000000000000..9aeb7e44e17eaea793b6479c1cd15b5bf8bdac3b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/selene/trivial-pixel.patch @@ -0,0 +1,23 @@ +--- a/selene/img/pixel/Pixel.hpp ++++ b/selene/img/pixel/Pixel.hpp +@@ -45,6 +45,6 @@ + constexpr Pixel() noexcept = default; ///< Default constructor. Pixel values are uninitialized. + +- template > +- constexpr Pixel(Args... args) noexcept; ++ template > ++ constexpr Pixel(Arg1 arg1, Args... args) noexcept; + + constexpr explicit Pixel(const std::array& arr) noexcept; +@@ -216,8 +216,8 @@ + template +-template +-constexpr Pixel::Pixel(Args... args) noexcept +- : data_{{static_cast(args)...}} ++template ++constexpr Pixel::Pixel(Arg1 arg1, Args... args) noexcept ++ : data_{{static_cast(arg1), static_cast(args)...}} + { + static_assert(std::is_trivial>::value, "Pixel type is not trivial"); + static_assert(std::is_standard_layout>::value, + "Pixel type is not standard layout"); diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/selene/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/selene/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..be547fcd8203d5eed54d070980b35ef5fdd65f1d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/selene/vcpkg.json @@ -0,0 +1,32 @@ +{ + "name": "selene", + "version": "0.3.1", + "port-version": 6, + "description": "A C++17 image representation, processing and I/O library.", + "homepage": "https://github.com/kmhofmann/selene", + "dependencies": [ + "libjpeg-turbo", + "libpng", + "tiff", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ], + "features": { + "opencv": { + "description": "Enable using OpenCV", + "dependencies": [ + { + "name": "opencv", + "default-features": false + } + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/simdutf/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/simdutf/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..b125f32815a1379abfc4c1a48a191a4e0a1a940e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/simdutf/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO simdutf/simdutf + REF "v${VERSION}" + SHA512 39ffc41d8d6889603b72bbcdcb5bce6b0a98cd41299568cf9bd34f5cbc0d5950f96907eae21c0975b10d701c49d80bb839911672909c802e7f6d3b616fe6279c + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "tools" SIMDUTF_TOOLS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} + -DSIMDUTF_TESTS=OFF + -DSIMDUTF_BENCHMARKS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) +vcpkg_fixup_pkgconfig() +if ("tools" IN_LIST FEATURES) + vcpkg_copy_tools(TOOL_NAMES sutf AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/tinyutf8/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/tinyutf8/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..d5960aa5cafde2651028d35f694e1f51de1d6370 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/tinyutf8/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO DuffsDevice/tiny-utf8 + REF "v${VERSION}" + SHA512 e87368614671c8e160e9fd7c529bba08f6b3d6bdd0b178c68a4f25a54a6428afe01c3099f80d4976a1b2ce9f2e19b877da54a5dbf024ad25c7a5d5e47cb57bb0 + HEAD_REF master +) + +# header-only +set(VCPKG_BUILD_TYPE "release") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DTINYUTF8_BUILD_TESTING=OFF + -DTINYUTF8_BUILD_DOC=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH share/tinyutf8/cmake) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENCE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/tinyutf8/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/tinyutf8/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..79f3052f1564c6654ac72e09c2840421dd4bc680 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/tinyutf8/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "tinyutf8", + "version": "4.4.3", + "port-version": 1, + "description": "TINYUTF8 is a library for extremely easy integration of Unicode into an arbitrary C++11 project.", + "homepage": "https://github.com/DuffsDevice/tiny-utf8/", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..87380da9aee29c1b8ff99f80c8a0a0fa82d75cea --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/portfile.cmake @@ -0,0 +1,51 @@ +if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS) + message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet") + set(VCPKG_POLICY_EMPTY_PACKAGE enabled) +else() + +if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) + set(PATCHES + vcxserver-xw32defs.patch + windows-long64.patch + windows-io.patch + windows_mean_and_lean.patch + windows-none.patch + windows-include-guards.patch + ) +endif() + +vcpkg_from_gitlab( + GITLAB_URL https://gitlab.freedesktop.org/xorg + OUT_SOURCE_PATH SOURCE_PATH + REPO proto/xorgproto + REF 57acac1d4c7967f4661fb1c9f86f48f34a46c48d # 2021.5 + SHA512 5d2b6096e7f6ec6a3414f4370da583f6660fbd287474e8b4cd3e51ccc35514181352d3b0b9cd4b8d6e30de7b54f4ce01a9fbf17be75cf8de18aa28e9f774b8c4 + HEAD_REF master + PATCHES + upstream-1.patch + ${PATCHES} +) + +vcpkg_configure_meson(SOURCE_PATH "${SOURCE_PATH}" + OPTIONS "-Dlegacy=true") +vcpkg_install_meson() + +# To make CMake consumption easier. +if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig/") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/") + file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig/" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig") +endif() +if(EXISTS "${CURRENT_PACKAGES_DIR}/share/pkgconfig/") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/") + file(RENAME "${CURRENT_PACKAGES_DIR}/share/pkgconfig/" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig") +endif() + +vcpkg_fixup_pkgconfig(SKIP_CHECK) # pc files requiring Xau Xt xt SM ICE X11 xcb Xdmcp are installed before they can be used. +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +file(GLOB_RECURSE _files "${SOURCE_PATH}/COPYING*") +file(INSTALL ${_files} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST ${_files}) +file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "") +endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/upstream-1.patch b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/upstream-1.patch new file mode 100644 index 0000000000000000000000000000000000000000..55f283f6382024a651e9bc21b0cfaa66539dc75e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/upstream-1.patch @@ -0,0 +1,12 @@ +diff --git a/include/X11/XF86keysym.h b/include/X11/XF86keysym.h +index c242e42f5fee2e28da11df2d33b005e9bb4b5441..59ba54d1a13fabdded6920ce946c1e20594f49ff 100644 +--- a/include/X11/XF86keysym.h ++++ b/include/X11/XF86keysym.h +@@ -394,6 +394,7 @@ + #define XF86XK_VoiceCommand _EVDEVK(0x246) /* v3.16 KEY_VOICECOMMAND */ + #define XF86XK_Assistant _EVDEVK(0x247) /* v4.13 KEY_ASSISTANT */ + /* Use: XK_ISO_Next_Group _EVDEVK(0x248) v5.2 KEY_KBD_LAYOUT_NEXT */ ++#define XF86XK_EmojiPicker _EVDEVK(0x249) /* v5.13 KEY_EMOJI_PICKER */ + #define XF86XK_BrightnessMin _EVDEVK(0x250) /* v3.16 KEY_BRIGHTNESS_MIN */ + #define XF86XK_BrightnessMax _EVDEVK(0x251) /* v3.16 KEY_BRIGHTNESS_MAX */ + #define XF86XK_KbdInputAssistPrev _EVDEVK(0x260) /* v3.18 KEY_KBDINPUTASSIST_PREV */ diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..43a4509c3698c32359e72ba89ad584e6e3271141 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "xproto", + "version": "2021.5", + "description": "X Window System unified protocol definitions", + "homepage": "https://gitlab.freedesktop.org/xorg/proto/xorgproto", + "license": null, + "dependencies": [ + "libxslt", + { + "name": "vcpkg-tool-meson", + "host": true + }, + "xorg-macros" + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/vcxserver-xw32defs.patch b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/vcxserver-xw32defs.patch new file mode 100644 index 0000000000000000000000000000000000000000..03b84a4cf5a91004f0d5eaf831e369d77dcb6d42 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/vcxserver-xw32defs.patch @@ -0,0 +1,22 @@ +diff --git a/include/X11/Xw32defs.h b/include/X11/Xw32defs.h +index 683b588..db1eabd 100644 +--- a/include/X11/Xw32defs.h ++++ b/include/X11/Xw32defs.h +@@ -27,7 +27,6 @@ typedef char *caddr_t; + # define execve _execve + # define execvp _execvp + # define execvpe _execvpe +-# define fdopen _fdopen + # define fileno _fileno + # define fstat _fstat + # define getcwd _getcwd +@@ -72,8 +71,8 @@ typedef char *caddr_t; + # define S_IEXEC _S_IEXEC + + # define F_OK 0 +-# define X_OK 1 + # define W_OK 2 + # define R_OK 4 ++# define X_OK R_OK + # endif /* __GNUC__ */ + #endif diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-include-guards.patch b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-include-guards.patch new file mode 100644 index 0000000000000000000000000000000000000000..7e252aacdff4b6e21ebaf49fc5c4068e556ecfa1 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-include-guards.patch @@ -0,0 +1,41 @@ +diff --git a/include/X11/Xwindows.h b/include/X11/Xwindows.h +index 900257928..666ee6515 100644 +--- a/include/X11/Xwindows.h ++++ b/include/X11/Xwindows.h +@@ -41,6 +41,11 @@ The Open Group. + * do as it's no help at all to X11 clients which also need to use the + * Win32 API) + */ ++#pragma once ++ ++#ifndef _X11_XWINDOWS_H_ ++#define _X11_XWINDOWS_H_ ++ + #undef _XFree86Server + #ifdef XFree86Server + # define _XFree86Server +@@ -130,3 +135,4 @@ typedef int Status; + # undef _XFree86Server + #endif + ++#endif +diff --git a/include/X11/Xwinsock.h b/include/X11/Xwinsock.h +index 92e0d2a33..1e3e8671b 100644 +--- a/include/X11/Xwinsock.h ++++ b/include/X11/Xwinsock.h +@@ -32,6 +32,10 @@ The Open Group. + * Conflicts come from the fact that including winsock.h actually pulls + * in the whole Windows API... + */ ++#pragma once ++ ++#ifndef _X11_XWINSOCK_H_ ++#define _X11_XWINSOCK_H_ + + #undef _XFree86Server + #ifdef XFree86Server +@@ -100,3 +104,4 @@ typedef int Status; + # undef _XFree86Server + #endif + ++#endif diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-io.patch b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-io.patch new file mode 100644 index 0000000000000000000000000000000000000000..159d1217d73e184f10d65f504aa779c74cfce9ad --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-io.patch @@ -0,0 +1,12 @@ +diff --git a/include/X11/Xos.h b/include/X11/Xos.h +index 28dfc673a..37d268f27 100644 +--- a/include/X11/Xos.h ++++ b/include/X11/Xos.h +@@ -80,6 +80,7 @@ in this Software without prior written authorization from The Open Group. + # include + # endif + # ifdef WIN32 ++# include // For open() + # include + # else + # include diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-long64.patch b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-long64.patch new file mode 100644 index 0000000000000000000000000000000000000000..5d8b74396bddfaff3220e613b8477536676a27fe --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-long64.patch @@ -0,0 +1,48 @@ +diff --git a/include/X11/Xwinsock.h b/include/X11/Xwinsock.h +index 624047d..e8d5653 100644 +--- a/include/X11/Xwinsock.h ++++ b/include/X11/Xwinsock.h +@@ -47,6 +47,10 @@ The Open Group. + #define _NO_BOOL_TYPEDEF + #define BOOL WINBOOL + #define INT32 wINT32 ++#ifdef __x86_64__ ++#define INT64 wINT64 ++#define LONG64 wLONG64 ++#endif + #undef Status + #define Status wStatus + #define ATOM wATOM +@@ -58,6 +62,8 @@ The Open Group. + #undef BYTE + #undef BOOL + #undef INT32 ++#undef INT64 ++#undef LONG64 + #undef ATOM + #undef FreeResource + #undef CreateWindowA +diff --git a/include/X11/meson.build b/include/X11/meson.build +index 1c33c64..703ab19 100644 +--- a/include/X11/meson.build ++++ b/include/X11/meson.build +@@ -1,7 +1,8 @@ + fd_set_maybe_headers = [ 'sys/param.h', + 'sys/types.h', + 'sys/time.h', +- 'sys/select.h' ++ 'sys/select.h', ++ 'winsock2.h' + ] + fd_set_headers = '' + foreach h : fd_set_maybe_headers +@@ -15,6 +16,8 @@ if cc.has_member('fd_set', 'fds_bits', prefix: fd_set_headers) + fds_bits = 'fds_bits' + elif cc.has_member('fd_set', '__fds_bits', prefix: fd_set_headers) + fds_bits = '__fds_bits' ++elif cc.has_member('fd_set', 'fd_count', prefix: fd_set_headers) ++ fds_bits = 'fd_count' + else + error('Your fd_set is too weird.') + endif +-- \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-none.patch b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-none.patch new file mode 100644 index 0000000000000000000000000000000000000000..87764c88b42b511089500a6f2e2a86a752cb67e8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows-none.patch @@ -0,0 +1,85 @@ +diff --git a/include/X11/Xwindows.h b/include/X11/Xwindows.h +index 70e1debd5..236ec96a7 100644 +--- a/include/X11/Xwindows.h ++++ b/include/X11/Xwindows.h +@@ -69,6 +69,16 @@ The Open Group. + #endif + #undef Status + #define Status wStatus ++#ifdef None // FS.h defines None which is used in winnt.h ++#pragma push_macro("None") ++#define NoneDefined ++#undef None ++#endif ++#ifdef ControlMask // X.h defines ControlMask which is used in processthreadapi.h ++#pragma push_macro("ControlMask") ++#define ControlMaskDefined ++#undef ControlMask ++#endif + #define ATOM wATOM + #define BYTE wBYTE + #define FreeResource wFreeResource +@@ -76,6 +77,14 @@ The Open Group. + #undef NOMINMAX + #undef Status +-#define Status int ++typedef int Status; ++#ifdef NoneDefined ++#pragma pop_macro("None") ++#undef NoneDefined ++#endif ++#ifdef ControlMaskDefined ++#pragma pop_macro("ControlMask") ++#undef ControlMaskDefined ++#endif + #undef BYTE + #undef BOOL + #undef INT32 +diff --git a/include/X11/Xwinsock.h b/include/X11/Xwinsock.h +index 624047d..e8d5653 100644 +--- a/include/X11/Xwinsock.h ++++ b/include/X11/Xwinsock.h +@@ -47,23 +47,42 @@ The Open Group. + #define _NO_BOOL_TYPEDEF + #define BOOL WINBOOL + #define INT32 wINT32 + #ifdef __x86_64__ + #define INT64 wINT64 + #define LONG64 wLONG64 + #endif + #undef Status + #define Status wStatus ++#ifdef None ++#pragma push_macro("None") ++#define NoneDefined ++#undef None ++#endif ++#ifdef ControlMask ++#pragma push_macro("ControlMask") ++#define ControlMaskDefined ++#undef ControlMask ++#endif + #define ATOM wATOM + #define BYTE wBYTE + #define FreeResource wFreeResource + #include ++#include + #undef Status +-#define Status int ++typedef int Status; ++#ifdef NoneDefined ++#pragma pop_macro("None") ++#undef NoneDefined ++#endif ++#ifdef ControlMaskDefined ++#pragma pop_macro("ControlMask") ++#undef ControlMaskDefined ++#endif + #undef BYTE + #undef BOOL + #undef INT32 + #undef INT64 + #undef LONG64 + #undef ATOM + #undef FreeResource + #undef CreateWindowA diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows_mean_and_lean.patch b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows_mean_and_lean.patch new file mode 100644 index 0000000000000000000000000000000000000000..f50e4c8806f941c309cb77328977bc03ca728011 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/xproto/windows_mean_and_lean.patch @@ -0,0 +1,13 @@ +diff --git a/include/X11/Xwindows.h b/include/X11/Xwindows.h +index 70e1debd5..236ec96a7 100644 +--- a/include/X11/Xwindows.h ++++ b/include/X11/Xwindows.h +@@ -54,7 +54,7 @@ The Open Group. + * + */ + #define NOMINMAX +- ++#define WIN32_LEAN_AND_MEAN // Otherwise this will include winsock.h! + /* + * mingw-w64 headers define BOOL as a typedef, protecting against macros + * mingw.org headers define BOOL in terms of WINBOOL