diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/build.patch b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/build.patch new file mode 100644 index 0000000000000000000000000000000000000000..a87c02ffb6648159d42059307aa025c72a3dd508 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/build.patch @@ -0,0 +1,267 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 682f416..a8cbec8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -104,8 +104,6 @@ mark_as_advanced( + CUDA_HOST_COMPILER + CUDA_USE_STATIC_CUDA_RUNTIME + CUDA_rt_LIBRARY +- SPDLOG_BUILD_EXAMPLES +- SPDLOG_BUILD_TESTING + ADDR2LINE_PROGRAM + Backtrace_LIBRARY + AF_WITH_STATIC_MKL +@@ -159,9 +157,7 @@ if(NOT LAPACK_FOUND) + endif() + endif() + +-set(SPDLOG_BUILD_TESTING OFF CACHE INTERNAL "Disable testing in spdlog") +-add_subdirectory(extern/spdlog EXCLUDE_FROM_ALL) +-add_subdirectory(extern/glad) ++find_package(spdlog CONFIG REQUIRED) + add_subdirectory(src/backend/common) + add_subdirectory(src/api/c) + add_subdirectory(src/api/cpp) +@@ -269,10 +265,6 @@ install(DIRECTORY examples/ #NOTE The slash at the end is important + DESTINATION ${AF_INSTALL_EXAMPLE_DIR} + COMPONENT examples) + +-install(DIRECTORY assets/examples/ #NOTE The slash at the end is important +- DESTINATION ${AF_INSTALL_EXAMPLE_DIR} +- COMPONENT examples) +- + install(DIRECTORY "${ArrayFire_SOURCE_DIR}/LICENSES/" + DESTINATION LICENSES + COMPONENT licenses) +diff --git a/CMakeModules/AFInstallDirs.cmake b/CMakeModules/AFInstallDirs.cmake +index 2c7b96e..b5006ee 100644 +--- a/CMakeModules/AFInstallDirs.cmake ++++ b/CMakeModules/AFInstallDirs.cmake +@@ -7,8 +7,12 @@ include(GNUInstallDirs) + # NOTE: These paths are all relative to the project installation prefix. + + # Executables +-if(NOT DEFINED AF_INSTALL_BIN_DIR) +- set(AF_INSTALL_BIN_DIR "lib" CACHE PATH "Installation path for executables") ++if(CMAKE_BUILD_TYPE MATCHES Debug) ++ set(AF_INSTALL_BIN_DIR "${AF_BIN_DIR}/debug/bin") ++ message(STATUS " Setting install to debug path ${AF_INSTALL_BIN_DIR}") ++else() ++ set(AF_INSTALL_BIN_DIR "${AF_BIN_DIR}/bin") ++ message(STATUS " Setting install to release path ${AF_INSTALL_BIN_DIR}") + endif() + + # Libraries +diff --git a/CMakeModules/AFconfigure_forge_submodule.cmake b/CMakeModules/AFconfigure_forge_submodule.cmake +index d16849f..36ab01b 100644 +--- a/CMakeModules/AFconfigure_forge_submodule.cmake ++++ b/CMakeModules/AFconfigure_forge_submodule.cmake +@@ -39,13 +39,13 @@ if(AF_BUILD_FORGE) + COMPONENT common_backend_dependencies) + set_property(TARGET forge APPEND_STRING PROPERTY COMPILE_FLAGS " -w") + else(AF_BUILD_FORGE) +- set(FG_VERSION "1.0.0") ++ set(FG_VERSION "1.0.5") + set(FG_VERSION_MAJOR 1) + set(FG_VERSION_MINOR 0) +- set(FG_VERSION_PATCH 0) ++ set(FG_VERSION_PATCH 5) + set(FG_API_VERSION_CURRENT 10) + configure_file( +- ${PROJECT_SOURCE_DIR}/extern/forge/CMakeModules/version.h.in +- ${PROJECT_BINARY_DIR}/extern/forge/include/fg/version.h ++ ${AF_FORGE_PATH}/CMakeModules/version.h.in ++ ${AF_FORGE_PATH}/include/fg/version.h + ) + endif(AF_BUILD_FORGE) +diff --git a/src/api/unified/CMakeLists.txt b/src/api/unified/CMakeLists.txt +index 967eaa6..16bb633 100644 +--- a/src/api/unified/CMakeLists.txt ++++ b/src/api/unified/CMakeLists.txt +@@ -96,7 +96,8 @@ target_include_directories(af + target_link_libraries(af + PRIVATE + cpp_api_interface +- spdlog ++ spdlog::spdlog ++ spdlog::spdlog_header_only + Threads::Threads + Boost::boost + ${CMAKE_DL_LIBS} +diff --git a/src/backend/common/CMakeLists.txt b/src/backend/common/CMakeLists.txt +index c9fe088..8c128fa 100644 +--- a/src/backend/common/CMakeLists.txt ++++ b/src/backend/common/CMakeLists.txt +@@ -77,12 +77,15 @@ else() + target_sources(afcommon_interface INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/module_loading_unix.cpp) + endif() + ++find_package(glad CONFIG REQUIRED) ++ + target_link_libraries(afcommon_interface + INTERFACE +- spdlog ++ spdlog::spdlog ++ spdlog::spdlog_header_only + Boost::boost +- af_glad_interface + ${CMAKE_DL_LIBS} ++ glad::glad + ) + + if(AF_BUILD_FORGE) +@@ -93,10 +96,9 @@ target_include_directories(afcommon_interface + INTERFACE + ${ArrayFire_SOURCE_DIR}/src/backend + ${ArrayFire_BINARY_DIR} ++ ${AF_FORGE_PATH}/include # passed via vcpkg + SYSTEM INTERFACE + $<$:${OPENGL_INCLUDE_DIR}> +- ${ArrayFire_SOURCE_DIR}/extern/forge/include +- ${ArrayFire_BINARY_DIR}/extern/forge/include + ) + + if(APPLE AND NOT USE_MKL) +diff --git a/src/backend/cpu/CMakeLists.txt b/src/backend/cpu/CMakeLists.txt +index 170bb0f..c6e2017 100644 +--- a/src/backend/cpu/CMakeLists.txt ++++ b/src/backend/cpu/CMakeLists.txt +@@ -266,9 +266,10 @@ endif(AF_WITH_CPUID) + + target_sources(afcpu + PRIVATE +- ${CMAKE_CURRENT_SOURCE_DIR}/threads/async_queue.hpp +- ${CMAKE_CURRENT_SOURCE_DIR}/threads/event.hpp ++ ${AF_CPU_THREAD_PATH}/include/threads/async_queue.hpp ++ ${AF_CPU_THREAD_PATH}/include/threads/event.hpp + ) ++target_include_directories(afcpu PRIVATE ${AF_CPU_THREAD_PATH}/include) + + arrayfire_set_default_cxx_flags(afcpu) + +diff --git a/src/backend/cuda/CMakeLists.txt b/src/backend/cuda/CMakeLists.txt +index 7e3e408..2edaacd 100644 +--- a/src/backend/cuda/CMakeLists.txt ++++ b/src/backend/cuda/CMakeLists.txt +@@ -110,7 +110,11 @@ cuda_include_directories( + ${COMMON_INTERFACE_DIRS} + ) + if(CUDA_VERSION_MAJOR VERSION_LESS 11) +- cuda_include_directories(${ArrayFire_SOURCE_DIR}/extern/cub) ++ find_path(CUB_INCLUDE_DIRS "cub/agent/agent_histogram.cuh") ++ if (${CUB_INCLUDE_DIRS} EQUAL "CUB_INCLUDE_DIRS-NOTFOUND") ++ set(CUB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/cub) ++ endif() ++ cuda_include_directories(${CUB_INCLUDE_DIRS}) + endif() + + file(GLOB jit_src "kernel/jit.cuh") +@@ -242,7 +246,7 @@ endif() + + if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR + (UNIX AND +- CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0)) ++ CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1)) + list(APPEND cxx_definitions -DAF_USE_NEW_CUSPARSE_API) + endif() + +@@ -301,7 +305,7 @@ set_target_properties(af_cuda_static_cuda_library + + if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR + (UNIX AND +- CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0)) ++ CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1)) + target_compile_definitions(af_cuda_static_cuda_library PRIVATE AF_USE_NEW_CUSPARSE_API) + endif() + +diff --git a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt b/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt +index 9a796c9..d9864b0 100644 +--- a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt ++++ b/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt +@@ -27,6 +27,7 @@ foreach(SBK_BINARY_OP ${SBK_BINARY_OPS}) + add_dependencies(opencl_scan_by_key_${SBK_BINARY_OP} + ${cl_kernel_targets} OpenCL::cl2hpp Boost::boost) + ++ find_package(glad CONFIG REQUIRED) + target_include_directories(opencl_scan_by_key_${SBK_BINARY_OP} + PRIVATE + . +@@ -39,9 +40,7 @@ foreach(SBK_BINARY_OP ${SBK_BINARY_OPS}) + $ + $ + $ +- $ +- ${ArrayFire_SOURCE_DIR}/extern/forge/include +- ${ArrayFire_BINARY_DIR}/extern/forge/include ++ $ + ) + + set_target_properties(opencl_scan_by_key_${SBK_BINARY_OP} +diff --git a/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt b/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt +index d618ff2..9f51739 100644 +--- a/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt ++++ b/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt +@@ -32,14 +32,13 @@ foreach(SBK_TYPE ${SBK_TYPES}) + ../../../include + ${CMAKE_CURRENT_BINARY_DIR}) + ++ find_package(glad CONFIG REQUIRED) + target_include_directories(opencl_sort_by_key_${SBK_TYPE} + SYSTEM PRIVATE + $ + $ + $ +- $ +- ${ArrayFire_SOURCE_DIR}/extern/forge/include +- ${ArrayFire_BINARY_DIR}/extern/forge/include ++ $ + ) + + set_target_properties(opencl_sort_by_key_${SBK_TYPE} +diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt +index b543433..9b5923b 100644 +--- a/src/backend/opencl/CMakeLists.txt ++++ b/src/backend/opencl/CMakeLists.txt +@@ -432,12 +432,9 @@ if(AF_OPENCL_BLAS_LIBRARY STREQUAL "clBLAS") + PRIVATE + clBLAS::clBLAS) + elseif(AF_OPENCL_BLAS_LIBRARY STREQUAL "CLBlast") +- include(build_CLBlast) ++ find_package(CLBlast CONFIG REQUIRED) + target_compile_definitions(afopencl PRIVATE USE_CLBLAST) +- target_link_libraries(afopencl +- PRIVATE +- CLBlast) +- add_dependencies(afopencl CLBlast-ext) ++ target_link_libraries(afopencl PRIVATE clblast) + endif() + + +diff --git a/src/backend/opencl/homography.cpp b/src/backend/opencl/homography.cpp +index 3b598b0..2815923 100644 +--- a/src/backend/opencl/homography.cpp ++++ b/src/backend/opencl/homography.cpp +@@ -39,7 +39,7 @@ int homography(Array &bestH, const Array &x_src, + ::std::min(iter, static_cast( + log(1.f - LMEDSConfidence) / + log(1.f - pow(1.f - LMEDSOutlierRatio, 4.f)))); +- err = createValueArray(af::dim4(nsamples, iter), FLT_MAX); ++ err = createValueArray(af::dim4(nsamples, iter), std::numeric_limits::max()); + } else { + // Avoid passing "null" cl_mem object to kernels + err = createEmptyArray(af::dim4(1)); +diff --git a/src/backend/opencl/kernel/homography.hpp b/src/backend/opencl/kernel/homography.hpp +index b84e599..90d0c80 100644 +--- a/src/backend/opencl/kernel/homography.hpp ++++ b/src/backend/opencl/kernel/homography.hpp +@@ -39,7 +39,9 @@ std::array getHomographyKernels(const af_homography_type htype) { + }; + options.emplace_back(getTypeBuildDefinition()); + options.emplace_back(DefineKeyValue( +- EPS, (std::is_same::value ? DBL_EPSILON : FLT_EPSILON))); ++ EPS, (std::is_same::value ++ ? std::numeric_limits::epsilon() ++ : std::numeric_limits::epsilon()))); + if (htype == AF_HOMOGRAPHY_RANSAC) { + options.emplace_back(DefineKey(RANSAC)); + } diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/fix-dependency-clfft.patch b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/fix-dependency-clfft.patch new file mode 100644 index 0000000000000000000000000000000000000000..8072746e3ce0087fa63dc9cb19e949ea97d5deb6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/fix-dependency-clfft.patch @@ -0,0 +1,14 @@ +diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt +index f970da0..b543433 100644 +--- a/src/backend/opencl/CMakeLists.txt ++++ b/src/backend/opencl/CMakeLists.txt +@@ -12,7 +12,8 @@ set_property(CACHE AF_OPENCL_BLAS_LIBRARY PROPERTY STRINGS "clBLAS" "CLBlast") + + af_deprecate(OPENCL_BLAS_LIBRARY AF_OPENCL_BLAS_LIBRARY) + +-include(build_clFFT) ++find_package(clFFT CONFIG REQUIRED) ++add_library(clFFT::clFFT ALIAS clFFT) + + file(GLOB kernel_src kernel/*.cl kernel/KParam.hpp) + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..b2522e6f6141fc849c709ff4eb1da6e2609fec15 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/portfile.cmake @@ -0,0 +1,107 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO arrayfire/arrayfire + REF d99887ae431fcd58168b653a1e69f027f04d5188 # v3.8.0 + SHA512 d8ddf6ba254744e62acf5ecf680f0ae56b05f8957b5463572923977ba2ffea7fa37cc1b6179421a1188a6f9e66565ca0f8cd00807513ccbe66ba1e9bbd41a3da + HEAD_REF master + PATCHES + build.patch + Fix-constexpr-error-with-vs2019-with-half.patch + fix-dependency-clfft.patch +) + +# arrayfire cpu thread lib needed as a submodule for the CPU backend +vcpkg_from_github( + OUT_SOURCE_PATH CPU_THREADS_PATH + REPO arrayfire/threads + REF b666773940269179f19ef11c8f1eb77005e85d9a + SHA512 b3e8b54acf3a588b1f821c2774d5da2d8f8441962c6d99808d513f7117278b9066eb050b8b501bddbd3882e68eb5cc5da0b2fca54e15ab1923fe068a3fe834f5 + HEAD_REF master +) + +# Get forge. We only need headers and aren't actually linking. +# We don't want to use the vcpkg dependency since it is broken in many +# environments - see https://github.com/microsoft/vcpkg/issues/14864. This +# can be relaxed when the issue is fixed. Forge and its dependencies +# are still runtime dependencies, so the user can use the graphics +# library by installing forge and freeimage. +vcpkg_from_github( + OUT_SOURCE_PATH FORGE_PATH + REPO arrayfire/forge + REF 1a0f0cb6371a8c8053ab5eb7cbe3039c95132389 # v1.0.5 + SHA512 8f8607421880a0f0013380eb5efb3a4f05331cd415d68c9cd84dd57eb727da1df6223fc6d65b106675d6aa09c3388359fab64443c31fadadf7641161be6b3b89 + HEAD_REF master +) + +################################### Build ################################### + +# Default flags +set(AF_DEFAULT_VCPKG_CMAKE_FLAGS + -DBUILD_TESTING=OFF + -DAF_BUILD_DOCS=OFF + -DAF_BUILD_EXAMPLES=OFF + -DUSE_CPU_MKL=ON + -DUSE_OPENCL_MKL=ON + -DAF_CPU_THREAD_PATH=${CPU_THREADS_PATH} # for building the arrayfire cpu threads lib + -DAF_FORGE_PATH=${FORGE_PATH} # forge headers for building the graphics lib + -DAF_BUILD_FORGE=OFF +) + +if("cpu" IN_LIST FEATURES) + if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_CRT_LINKAGE STREQUAL "static") + list(APPEND AF_DEFAULT_VCPKG_CMAKE_FLAGS "-DMKL_THREAD_LAYER=Sequential") + endif() + if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") + list(APPEND AF_DEFAULT_VCPKG_CMAKE_FLAGS "-DINT_SIZE=8") + # This seems scary but only selects the MKL interface. 4 = lp; 8 = ilp; Since x64 has ilp as the default use it! + endif() +endif() + +# bin/dll directory for Windows non-static builds for the unified backend dll +if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_LIBRARY_LINKAGE STREQUAL "static") + set(AF_BIN_DIR ${CURRENT_PACKAGES_DIR}) + list(APPEND AF_DEFAULT_VCPKG_CMAKE_FLAGS "-DAF_BIN_DIR=${AF_BIN_DIR}") +endif() + +if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static") + message(WARNING "NOTE: Windows support with static linkeage is still experimental.") +endif() + +# Determine which backend to build via specified feature +vcpkg_check_features( + OUT_FEATURE_OPTIONS AF_BACKEND_FEATURE_OPTIONS + FEATURES + unified AF_BUILD_UNIFIED + cpu AF_BUILD_CPU + cuda AF_BUILD_CUDA + opencl AF_BUILD_OPENCL +) + +# Build and install +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${AF_DEFAULT_VCPKG_CMAKE_FLAGS} + ${AF_BACKEND_FEATURE_OPTIONS} + OPTIONS_DEBUG + -DAF_INSTALL_CMAKE_DIR="${CURRENT_PACKAGES_DIR}/debug/share/${PORT}" # for CMake configs/targets + OPTIONS_RELEASE + -DAF_INSTALL_CMAKE_DIR="${CURRENT_PACKAGES_DIR}/share/${PORT}" # for CMake configs/targets + MAYBE_UNUSED_VARIABLES + AF_CPU_THREAD_PATH +) +vcpkg_cmake_install() + +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/examples" + "${CURRENT_PACKAGES_DIR}/examples" + "${CURRENT_PACKAGES_DIR}/debug/share" + "${CURRENT_PACKAGES_DIR}/debug/LICENSES") + +# Copyright and license +file(INSTALL "${SOURCE_PATH}/COPYRIGHT.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..b816ea88610156c2fb7f84c19cf4db63bf2f7a57 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/vcpkg.json @@ -0,0 +1,57 @@ +{ + "name": "arrayfire", + "version-semver": "3.8.0", + "port-version": 5, + "description": "ArrayFire is a general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices.", + "homepage": "https://github.com/arrayfire/arrayfire", + "license": "BSD-3-Clause", + "supports": "x64", + "dependencies": [ + "boost-compute", + "boost-stacktrace", + "glad", + "spdlog", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "cpu", + "unified" + ], + "features": { + "cpu": { + "description": "ArrayFire CPU backend", + "dependencies": [ + "intel-mkl" + ] + }, + "cuda": { + "description": "ArrayFire CUDA backend. This feature only supports dynamic because dependency cudnn is dynamic only.", + "dependencies": [ + "cub", + "cuda", + "cudnn" + ] + }, + "opencl": { + "description": "ArrayFire OpenCL backend", + "dependencies": [ + "clblast", + "clfft", + "opencl" + ] + }, + "unified": { + "description": "ArrayFire unified backend", + "dependencies": [ + "intel-mkl" + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/atl/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/atl/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..61a207f7bfbaaeb10e8ab147eabbd3266cac703a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/atl/portfile.cmake @@ -0,0 +1,10 @@ +find_path(ATLBASE_H + NAMES atlbase.h + PATHS $ENV{INCLUDE} +) + +if(NOT ATLBASE_H) + message(FATAL_ERROR "Unable to locate 'atlbase.h'. Ensure you have installed the Active Template Library (ATL) component of Visual Studio.") +endif() + +SET(VCPKG_POLICY_EMPTY_PACKAGE enabled) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/atl/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/atl/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..cd2350eb2bcd744785e2c4129df7587b1a8a2f1c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/atl/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "atl", + "version": "0", + "description": "A stub package that ensures Visual Studio has Active Template Library (ATL) installed.", + "supports": "windows" +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..f5ceca6b68184d682a51607bf2e69d0201f73e76 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/CMakeLists.txt @@ -0,0 +1,100 @@ +cmake_minimum_required(VERSION 3.11) +cmake_policy(VERSION 3.11) + +project(autodock-vina) + +set(GIT_VERSION v1.2.5) +set(CMAKE_CXX_STANDARD 11) + +find_package(Boost REQUIRED COMPONENTS + filesystem + log + math_tr1 + program_options + random + serialization + thread + timer +) + +file(GLOB SRC_AUTODOCK_VINA_LIBS + "src/lib/*.cpp" +) + +file(GLOB SRC_AUTODOCK_VINA_SPLIT + "src/split/*.cpp" +) + +file(GLOB HEADERS + "src/lib/*.h" +) + +add_library(vina ${SRC_AUTODOCK_VINA_LIBS}) +add_library(vina_split ${SRC_AUTODOCK_VINA_SPLIT}) + +target_include_directories(vina + PUBLIC + $ + $ + PRIVATE + $ +) + +target_include_directories(vina_split + PUBLIC + $ + $ + PRIVATE + $ +) + +target_compile_definitions(vina + PUBLIC + -DVERSION=\"${GIT_VERSION}\" +) + +target_compile_definitions(vina_split + PUBLIC + -DVERSION=\"${GIT_VERSION}\" +) + +target_link_libraries(vina + PRIVATE + Boost::boost + Boost::filesystem + Boost::log + Boost::math_tr1 + Boost::program_options + Boost::random + Boost::serialization + Boost::thread + Boost::timer +) + +target_link_libraries(vina_split + PRIVATE + Boost::boost + Boost::filesystem + Boost::log + Boost::math_tr1 + Boost::program_options + Boost::random + Boost::serialization + Boost::thread + Boost::timer +) + +install(TARGETS vina EXPORT autodock-vina-config + RUNTIME DESTINATION bin + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib +) + +install(TARGETS vina_split EXPORT autodock-vina-config + RUNTIME DESTINATION bin + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib +) + +install(FILES ${HEADERS} DESTINATION include/autodock-vina) +install(EXPORT autodock-vina-config NAMESPACE autodock-vina::autodock-vina:: DESTINATION share/autodock-vina) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/fix-compatibility-with-boost-1.83.patch b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/fix-compatibility-with-boost-1.83.patch new file mode 100644 index 0000000000000000000000000000000000000000..e6af7c477482f7be58f358fb2a97fde81098b601 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/fix-compatibility-with-boost-1.83.patch @@ -0,0 +1,46 @@ +From 4a7935e1f8d1756cbeafb2564066551f9bd766f0 Mon Sep 17 00:00:00 2001 +From: jjll +Date: Wed, 6 Sep 2023 14:25:30 +0200 +Subject: [PATCH] compatibility boost >= 1.83 + +--- + src/lib/parallel_progress.h | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/src/lib/parallel_progress.h b/src/lib/parallel_progress.h +index 958b170..ee938d9 100755 +--- a/src/lib/parallel_progress.h ++++ b/src/lib/parallel_progress.h +@@ -23,7 +23,14 @@ + #ifndef VINA_PARALLEL_PROGRESS_H + #define VINA_PARALLEL_PROGRESS_H + ++#include ++#if BOOST_VERSION < 107200 + #include ++typedef boost::progress_display boost_progress; ++#else ++#include ++typedef boost::timer::progress_display boost_progress; ++#endif + #include + + #include +@@ -34,7 +41,7 @@ struct parallel_progress : public incrementable { + parallel_progress(std::function* c = NULL) : p(NULL), callback(c) {} + void init(unsigned long n) { + count = n; +- p = new boost::progress_display(count); ++ p = new boost_progress(count); + } + void operator++() { + if(p) { +@@ -47,7 +54,7 @@ struct parallel_progress : public incrementable { + virtual ~parallel_progress() { delete p; } + private: + boost::mutex self; +- boost::progress_display* p; ++ boost_progress* p; + std::function* callback; + unsigned long count; + }; diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..31b694d16263c28c20b0a31542a0ff46bbd31a21 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ccsb-scripps/AutoDock-Vina + REF v${VERSION} + SHA512 d36908e5833d22bcbc4dae353ef32b905d6eb46511302f7583a291398bfadff5e75fc99ce7b380860578b2257e5c32434cc75b1ca51fafb4b5f12d9477a878e9 + HEAD_REF develop + PATCHES fix-compatibility-with-boost-1.83.patch +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup() + +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file( + INSTALL "${SOURCE_PATH}/LICENSE" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" + RENAME copyright +) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..34248c6357558aa0c483f10b338c6a04e9e5d08c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/vcpkg.json @@ -0,0 +1,32 @@ +{ + "name": "autodock-vina", + "version-semver": "1.2.5", + "port-version": 1, + "description": "AutoDock Vina is one of the fastest and most widely used open-source docking engines.", + "homepage": "http://vina.scripps.edu/", + "dependencies": [ + "boost-algorithm", + "boost-array", + "boost-filesystem", + "boost-lexical-cast", + "boost-log", + "boost-math", + "boost-optional", + "boost-program-options", + "boost-ptr-container", + "boost-random", + "boost-serialization", + "boost-static-assert", + "boost-thread", + "boost-timer", + "boost-utility", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/b64/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/b64/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..e40d14ef38711610022b0cf23b1d35d0ab177e5e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/b64/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.20) +project(b64) + +if (BUILD_SHARED_LIBS) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/b64_dynamic_config.h ${CMAKE_CURRENT_BINARY_DIR}/b64_config.h) +else() + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/b64_static_config.h ${CMAKE_CURRENT_BINARY_DIR}/b64_config.h) +endif() + +set(SRC_DIR src) +set(INC_DIR include/b64) +set(SOURCE_FILES ${SRC_DIR}/cdecode.c ${SRC_DIR}/cencode.c) +set(HEADER_FILES ${INC_DIR}/cdecode.h ${INC_DIR}/cencode.h ${INC_DIR}/decode.h ${INC_DIR}/encode.h ${INC_DIR}/ccommon.h ${CMAKE_CURRENT_BINARY_DIR}/b64_config.h) + +add_library(b64 ${SOURCE_FILES} ${HEADER_FILES}) + +if (BUILD_SHARED_LIBS) + target_compile_definitions(b64 PRIVATE LIBB64_EXPORTS=1) +endif() + +target_include_directories(b64 + PRIVATE include ${CMAKE_CURRENT_BINARY_DIR} + INTERFACE $ +) + +set_property(TARGET b64 + PROPERTY PUBLIC_HEADER ${HEADER_FILES}) + +install(TARGETS b64 + EXPORT unofficial-b64-config + LIBRARY DESTINATION lib + PUBLIC_HEADER DESTINATION include/b64 +) + +install(EXPORT unofficial-b64-config + FILE unofficial-b64-config.cmake + NAMESPACE unofficial::b64:: + DESTINATION share/unofficial-b64 +) + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/b64/windows-fix.patch b/cc-multilingual-main/cc_net/vcpkg/ports/b64/windows-fix.patch new file mode 100644 index 0000000000000000000000000000000000000000..ccabfad2e173c778cb84225d2568298ddb468f2b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/b64/windows-fix.patch @@ -0,0 +1,130 @@ +diff --git a/include/b64/ccommon.h b/include/b64/ccommon.h +index 2b614df..0e46141 100644 +--- a/include/b64/ccommon.h ++++ b/include/b64/ccommon.h +@@ -10,11 +10,12 @@ For details, see http://sourceforge.net/projects/libb64 + + #define BASE64_VER_MAJOR 2 + #define BASE64_VER_MINOR 0 ++#include "b64_config.h" + + #ifndef HAVE_SIZE_T + #ifdef _WIN32 + #include +- #elseif defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) ++ #elif defined (__unix__) || (defined (__APPLE__) && defined (__MACH__)) + #include + #else + typedef unsigned long size_t; +diff --git a/include/b64/cdecode.h b/include/b64/cdecode.h +index d6ff24c..4553efc 100644 +--- a/include/b64/cdecode.h ++++ b/include/b64/cdecode.h +@@ -24,11 +24,11 @@ typedef struct + char plainchar; + } base64_decodestate; + +-extern void base64_init_decodestate(base64_decodestate* state_in); ++extern LIBB64 void base64_init_decodestate(base64_decodestate* state_in); + +-extern size_t base64_decode_maxlength(size_t encode_len); ++extern LIBB64 size_t base64_decode_maxlength(size_t encode_len); + +-extern int base64_decode_value(signed char value_in); +-extern size_t base64_decode_block(const char* code_in, const size_t length_in, void* plaintext_out, base64_decodestate* state_in); ++extern LIBB64 int base64_decode_value(signed char value_in); ++extern LIBB64 size_t base64_decode_block(const char* code_in, const size_t length_in, void* plaintext_out, base64_decodestate* state_in); + + #endif /* BASE64_CDECODE_H */ +diff --git a/include/b64/cencode.h b/include/b64/cencode.h +index 96b0cdb..1feb695 100644 +--- a/include/b64/cencode.h ++++ b/include/b64/cencode.h +@@ -31,12 +31,12 @@ typedef struct + char result; + } base64_encodestate; + +-extern void base64_init_encodestate(base64_encodestate* state_in); ++extern LIBB64 void base64_init_encodestate(base64_encodestate* state_in); + +-extern size_t base64_encode_length(size_t plain_len, base64_encodestate* state_in); ++extern LIBB64 size_t base64_encode_length(size_t plain_len, base64_encodestate* state_in); + +-extern char base64_encode_value(signed char value_in); +-extern size_t base64_encode_block(const void* plaintext_in, const size_t length_in, char* code_out, base64_encodestate* state_in); +-extern size_t base64_encode_blockend(char* code_out, base64_encodestate* state_in); ++extern LIBB64 char base64_encode_value(signed char value_in); ++extern LIBB64 size_t base64_encode_block(const void* plaintext_in, const size_t length_in, char* code_out, base64_encodestate* state_in); ++extern LIBB64 size_t base64_encode_blockend(char* code_out, base64_encodestate* state_in); + + #endif /* BASE64_CENCODE_H */ +diff --git a/include/b64/decode.h b/include/b64/decode.h +index b2362e5..dd772d4 100644 +--- a/include/b64/decode.h ++++ b/include/b64/decode.h +@@ -22,23 +22,23 @@ namespace base64 + base64_decodestate _state; + int _buffersize; + +- decoder(int buffersize_in = BUFFERSIZE) ++ LIBB64 decoder(int buffersize_in = BUFFERSIZE) + : _buffersize(buffersize_in) + { + base64_init_decodestate(&_state); + } + +- int decode(char value_in) ++ LIBB64 int decode(char value_in) + { + return base64_decode_value(value_in); + } + +- std::streamsize decode(const char* code_in, const std::streamsize length_in, char* plaintext_out) ++ LIBB64 std::streamsize decode(const char* code_in, const std::streamsize length_in, char* plaintext_out) + { + return base64_decode_block(code_in, static_cast(length_in), plaintext_out, &_state); + } + +- void decode(std::istream& istream_in, std::ostream& ostream_in) ++ LIBB64 void decode(std::istream& istream_in, std::ostream& ostream_in) + { + base64_init_decodestate(&_state); + // +diff --git a/include/b64/encode.h b/include/b64/encode.h +index c1a5f88..ff2c9b4 100644 +--- a/include/b64/encode.h ++++ b/include/b64/encode.h +@@ -22,28 +22,28 @@ namespace base64 + base64_encodestate _state; + int _buffersize; + +- encoder(int buffersize_in = BUFFERSIZE) ++ LIBB64 encoder(int buffersize_in = BUFFERSIZE) + : _buffersize(buffersize_in) + { + base64_init_encodestate(&_state); + } + +- int encode(char value_in) ++ LIBB64 int encode(char value_in) + { + return base64_encode_value(value_in); + } + +- std::streamsize encode(const char* code_in, const std::streamsize length_in, char* plaintext_out) ++ LIBB64 std::streamsize encode(const char* code_in, const std::streamsize length_in, char* plaintext_out) + { + return base64_encode_block(code_in, static_cast(length_in), plaintext_out, &_state); + } + +- int encode_end(char* plaintext_out) ++ LIBB64 int encode_end(char* plaintext_out) + { + return base64_encode_blockend(plaintext_out, &_state); + } + +- void encode(std::istream& istream_in, std::ostream& ostream_in) ++ LIBB64 void encode(std::istream& istream_in, std::ostream& ostream_in) + { + base64_init_encodestate(&_state); + // diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..4291f35703d04e2e8054ac9e96b19af4bc0367d3 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/portfile.cmake @@ -0,0 +1,12 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/circular_buffer + REF boost-${VERSION} + SHA512 e945cb9d701b23043fdd6ceaede292e2605f3ae7b9038e79e95eddf69fe781f4efcea67877f041db1eb8fe95f4bcf4ca34f845e90e5307c72ce811f68d649b6b + HEAD_REF master +) + +include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake) +boost_modular_headers(SOURCE_PATH ${SOURCE_PATH}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..bf6251b7467074430acaed01b60f87b4123d2db4 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/vcpkg.json @@ -0,0 +1,46 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-circular-buffer", + "version": "1.84.0", + "description": "Boost circular_buffer module", + "homepage": "https://github.com/boostorg/circular_buffer", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-assert", + "version>=": "1.84.0" + }, + { + "name": "boost-concept-check", + "version>=": "1.84.0" + }, + { + "name": "boost-config", + "version>=": "1.84.0" + }, + { + "name": "boost-core", + "version>=": "1.84.0" + }, + { + "name": "boost-move", + "version>=": "1.84.0" + }, + { + "name": "boost-static-assert", + "version>=": "1.84.0" + }, + { + "name": "boost-throw-exception", + "version>=": "1.84.0" + }, + { + "name": "boost-type-traits", + "version>=": "1.84.0" + }, + { + "name": "boost-vcpkg-helpers", + "version>=": "1.84.0" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5690b2486f247c481fd3f7a34f69bfdf283874ae --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/portfile.cmake @@ -0,0 +1,12 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/functional + REF boost-${VERSION} + SHA512 bd00304aa41eaa9894ba36909af164bbf15ea8286770b23f5ed5b1d2b6f5b0cf94704cc8ed6af1ac05e831581b50b7852e928e98df3e603256a67abbe963823a + HEAD_REF master +) + +include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake) +boost_modular_headers(SOURCE_PATH ${SOURCE_PATH}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..6cf479120d8ff061854fab38380fd18cd9880f43 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/vcpkg.json @@ -0,0 +1,50 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-functional", + "version": "1.84.0", + "description": "Boost functional module", + "homepage": "https://github.com/boostorg/functional", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-config", + "version>=": "1.84.0" + }, + { + "name": "boost-core", + "version>=": "1.84.0" + }, + { + "name": "boost-function", + "version>=": "1.84.0" + }, + { + "name": "boost-function-types", + "version>=": "1.84.0" + }, + { + "name": "boost-mpl", + "version>=": "1.84.0" + }, + { + "name": "boost-preprocessor", + "version>=": "1.84.0" + }, + { + "name": "boost-type-traits", + "version>=": "1.84.0" + }, + { + "name": "boost-typeof", + "version>=": "1.84.0" + }, + { + "name": "boost-utility", + "version>=": "1.84.0" + }, + { + "name": "boost-vcpkg-helpers", + "version>=": "1.84.0" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1158e3e88c272c7e387ff32ae724c036e3d988ee --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/portfile.cmake @@ -0,0 +1,12 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/throw_exception + REF boost-${VERSION} + SHA512 e654e745a7c3efd0f871e25bb7dde940f1fc0c7df5d68f4e61aa947ec5c903606ab52c5a853c226c1f16f5becf0ea2505556900c72143e98fc802df27b102e9e + HEAD_REF master +) + +include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake) +boost_modular_headers(SOURCE_PATH ${SOURCE_PATH}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..ceb73e6b51839508ad2b02815386bb9da4af5faa --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/vcpkg.json @@ -0,0 +1,22 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-throw-exception", + "version": "1.84.0", + "description": "Boost throw_exception module", + "homepage": "https://github.com/boostorg/throw_exception", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-assert", + "version>=": "1.84.0" + }, + { + "name": "boost-config", + "version>=": "1.84.0" + }, + { + "name": "boost-vcpkg-helpers", + "version>=": "1.84.0" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5cce17e1ec67bfa6df10929c1158f05933478fe8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/portfile.cmake @@ -0,0 +1,22 @@ +# Header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO beached/utf_range + REF "v${VERSION}" + SHA512 67c009f207d7a25918e78072fedcd399367ebe4f5433bbc8203ad37680e8598a54a08a35953a91dfd1b417c448875b39a3975b1edec48018c6fef29cb36a486c + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DDAW_USE_PACKAGE_MANAGEMENT=ON +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +# remove empty lib and debug/lib directories (and duplicate files from debug/include) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..d630d4b7d2ff4d8f97c0536382b2fce35faa4e6a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "daw-utf-range", + "version": "2.2.4", + "description": "Header-only utf8 string range used by daw-json-link. Includes a constexpr/noexcept modified version of utfcpp.", + "homepage": "https://github.com/beached/header_libraries", + "license": "BSL-1.0", + "dependencies": [ + "daw-header-libraries", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/flux/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/flux/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..4b5d6c1176d770d33458414d9119a0cd33cc8bb9 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/flux/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO tcbrindle/flux + REF 1c128b50af95fc39b6683d437f9210239e219836 + SHA512 c07d3053227d6a62f5a7b0aba8535c0ed42195249d131a77989b3ee79a697f8d540b68639dcd9e89b5cdd76ee5d7f07db9b3be23bc325761c85af625f507e393 + HEAD_REF master + PATCHES + targets-fixup.patch +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DFLUX_BUILD_EXAMPLES=OFF + -DFLUX_BUILD_TESTS=OFF +) + + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/flux) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/flux/targets-fixup.patch b/cc-multilingual-main/cc_net/vcpkg/ports/flux/targets-fixup.patch new file mode 100644 index 0000000000000000000000000000000000000000..3eba08b8c2299f23663877f434346f5743231a51 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/flux/targets-fixup.patch @@ -0,0 +1,33 @@ +diff --git i/CMakeLists.txt w/CMakeLists.txt +index e87b3c7..c6239f0 100644 +--- i/CMakeLists.txt ++++ w/CMakeLists.txt +@@ -118,4 +118,27 @@ install( + DIRECTORY "${PROJECT_SOURCE_DIR}/include" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/.." + PATTERN "build2file" EXCLUDE +-) ++) ++ ++# ++# Removes the INTERFACE_SOURCES flux::flux property in the flux-targets.cmake ++# file that is there only because of the poor interaction of the ++# $ with the install(TARGETS...) command. The generator ++# creates an empty string instead of no string and the install(TARGETS...) ++# takes that empty string as a indication that the code should put the source ++# path in as a source file list (why?). ++# ++# The code here gets inserted into near the end of the cmake_install.cmake ++# file. It reads the flux-targets.cmake file into memory, clears the file, ++# then recreates the file skipping the line that contains the malformed ++# INTERFACE_SOURCES property value. ++# ++set(FLUX_TARGETS_FILE "${CMAKE_INSTALL_PREFIX}/lib/cmake/flux/flux-targets.cmake") ++install(CODE ++ "file (STRINGS \"${FLUX_TARGETS_FILE}\" FLUX_TARGETS_FILE_LINES) ++ file(WRITE \"${FLUX_TARGETS_FILE}\" \"\") ++ foreach(FLUX_TARGETS_FILE_LINE IN LISTS FLUX_TARGETS_FILE_LINES) ++ if (NOT FLUX_TARGETS_FILE_LINE MATCHES \"^[ \t]*INTERFACE_SOURCES[ \t].*$\") ++ file(APPEND \"${FLUX_TARGETS_FILE}\" \"\${FLUX_TARGETS_FILE_LINE}\\n\") ++ endif() ++ endforeach()") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/flux/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/flux/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..33f736af16ce91bace8907927bbd358d52c90dc2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/flux/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "flux", + "version-date": "2023-08-25", + "description": "Experimental C++20 library that provides a broadly equivalent feature set to C++20 Ranges, but uses a slightly different model based around cursors rather than iterators. Safer, easier, more efficient, compatible.", + "homepage": "https://github.com/tcbrindle/flux", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libfork/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libfork/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..60615da61b4be32b433f97cd23cb278810ebceea --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libfork/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO conorwilliams/libfork + REF "v${VERSION}" + SHA512 1e94f91924abdda8950af634896fcdc6317b6487a4b51619733758291d3fa2ba9004f9204440b2e6a827b5ba417503e7120e4d32cf3bb3a96495792efb14fcfc + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME "libfork") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") + +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libfork/usage b/cc-multilingual-main/cc_net/vcpkg/ports/libfork/usage new file mode 100644 index 0000000000000000000000000000000000000000..06d186ab6471f1644115a99bcfe33d61d7477ad4 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libfork/usage @@ -0,0 +1,4 @@ +libfork provides CMake targets: + + find_package(libfork CONFIG REQUIRED) + target_link_libraries(main PRIVATE libfork::libfork) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libfork/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libfork/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..1b6452402766c1f72c27e776f8d28b02f88e15c9 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libfork/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "libfork", + "version": "3.7.1", + "description": "A bleeding-edge, lock-free, wait-free, continuation-stealing fork-join library built on C++20's coroutines.", + "homepage": "https://github.com/conorwilliams/libfork", + "license": "MPL-2.0", + "dependencies": [ + "boost-atomic", + "hwloc", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/fix-for-vcpkg.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/fix-for-vcpkg.patch new file mode 100644 index 0000000000000000000000000000000000000000..97d0acf542bbe5bee92150128419707e8e701f09 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/fix-for-vcpkg.patch @@ -0,0 +1,32 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3e2a2dc..011a4ca 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -66,7 +66,7 @@ set(TESTS_SOURCES + set(THREADS_PREFER_PTHREAD_FLAG ON) + find_package(Threads REQUIRED) + +-add_library(juice SHARED ${LIBJUICE_SOURCES}) ++add_library(juice ${LIBJUICE_SOURCES}) + set_target_properties(juice PROPERTIES VERSION ${PROJECT_VERSION}) + target_include_directories(juice PUBLIC + $ +@@ -96,11 +96,15 @@ if(WIN32) + endif() + + if (USE_NETTLE) +- find_package(Nettle REQUIRED) ++ find_path(NETTLE_INCLUDE_PATH "nettle/hmac.h" REQUIRED) ++ find_library(NETTLE_LIBRARY_PATH NAMES nettle libnettle REQUIRED) ++ target_include_directories(juice PRIVATE ${NETTLE_INCLUDE_PATH}) ++ target_include_directories(juice-static PRIVATE ${NETTLE_INCLUDE_PATH}) ++ + target_compile_definitions(juice PRIVATE USE_NETTLE=1) +- target_link_libraries(juice PRIVATE Nettle::Nettle) ++ target_link_libraries(juice PRIVATE ${NETTLE_LIBRARY_PATH}) + target_compile_definitions(juice-static PRIVATE USE_NETTLE=1) +- target_link_libraries(juice-static PRIVATE Nettle::Nettle) ++ target_link_libraries(juice-static PRIVATE ${NETTLE_LIBRARY_PATH}) + else() + target_compile_definitions(juice PRIVATE USE_NETTLE=0) + target_compile_definitions(juice-static PRIVATE USE_NETTLE=0) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..76fd5033005fdd8c3704469ece9e06665208c9e0 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/portfile.cmake @@ -0,0 +1,36 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO paullouisageneau/libjuice + REF "v${VERSION}" + SHA512 0c690940fab9c29c52955ee96c254c086f4170c8e59a26b767b9ffc288db9ecc7195136f958b9773903201e2719279bca63c7f64b6bb89bf8a41b6dd1da4eb63 + HEAD_REF master + PATCHES + fix-for-vcpkg.patch +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + nettle USE_NETTLE +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DNO_TESTS=ON +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_cmake_config_fixup(PACKAGE_NAME libjuice CONFIG_PATH lib/cmake/LibJuice) +vcpkg_fixup_pkgconfig() + +file(READ "${CURRENT_PACKAGES_DIR}/share/libjuice/LibJuiceConfig.cmake" DATACHANNEL_CONFIG) +file(WRITE "${CURRENT_PACKAGES_DIR}/share/libjuice/LibJuiceConfig.cmake" " +include(CMakeFindDependencyMacro) +find_dependency(Threads) +${DATACHANNEL_CONFIG}") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..962e59db236a36882bf4d54d9ac1b5defda2b409 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libjuice/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "libjuice", + "version": "1.3.4", + "port-version": 1, + "description": "The library is a simplified implementation of the Interactive Connectivity Establishment (ICE) protocol in C for POSIX platforms (including Linux and Apple macOS) and Microsoft Windows.", + "homepage": "https://github.com/paullouisageneau/libjuice", + "license": "LGPL-2.1-only", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "nettle": { + "description": "Use nettle for HMAC computation instead of the Builtin", + "dependencies": [ + "nettle" + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp.pc.in b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp.pc.in new file mode 100644 index 0000000000000000000000000000000000000000..2b659bd422a8be232f2ec39c1e88b606d0b00018 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp.pc.in @@ -0,0 +1,12 @@ +prefix=@PREFIX@ +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include/OpenSP + +Name: opensp +Description: SGML parser algorithm library +Version: @VERSION@ +Libs: -L${libdir} -losp +Libs.private: @EXTRA_LIBS@ +Cflags: -I${includedir} +Cflags.private: diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp_1.5.2-13.diff b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp_1.5.2-13.diff new file mode 100644 index 0000000000000000000000000000000000000000..92781232fd4861709fda37be92c40452650f3413 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp_1.5.2-13.diff @@ -0,0 +1,37 @@ +--- opensp-1.5.2.orig/sx/XmlOutputEventHandler.cxx ++++ opensp-1.5.2/sx/XmlOutputEventHandler.cxx +@@ -1199,12 +1199,22 @@ + // Check to make sure we haven't passed outside of the + // output directory + char *dirs = strdup (filePath); ++#ifdef MAXPATHLEN + char realDirs[MAXPATHLEN]; + char realOutputDir[MAXPATHLEN]; ++#else ++ char *realDirs; ++ char *realOutputDir; ++#endif + char *outputDir = strdup(outputDir_); + ++#ifdef MAXPATHLEN + realpath((const char *)dirname(dirs), realDirs); + realpath((const char *)dirname(outputDir), realOutputDir); ++#else ++ realDirs = realpath((const char *)dirname(dirs), NULL); ++ realOutputDir = realpath((const char *)dirname(outputDir), NULL); ++#endif + + if (strncmp(realDirs, realOutputDir, strlen (realOutputDir)) != 0) { + app_->message(XmlOutputMessages::pathOutsideOutputDirectory, +@@ -1214,6 +1224,11 @@ + } + } + ++#ifndef MAXPATHLEN ++ free(realDirs); ++ free(realOutputDir); ++#endif ++ + // Make the necessary directories + maybeCreateDirectories(dirname(dirs)); + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5466e207a3f9ad1762fe7c5edfa2c27de6b50d3b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/portfile.cmake @@ -0,0 +1,59 @@ +set(PATCHES + opensp_1.5.2-13.diff # http://deb.debian.org/debian/pool/main/o/opensp/opensp_1.5.2-13.diff.gz + use-cpp-using-declarations.patch +) +if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP) + list(APPEND PATCHES windows_cmake_build.diff) # https://invent.kde.org/packaging/craft-blueprints-kde/-/tree/master/libs/libopensp +endif() +if (VCPKG_TARGET_IS_UWP) + list(APPEND PATCHES uwp_getenv_fix.diff) +endif() + +vcpkg_download_distfile(ARCHIVE + URLS "https://downloads.sourceforge.net/project/openjade/opensp/${VERSION}/OpenSP-${VERSION}.tar.gz" + FILENAME "OpenSP-${VERSION}.tar.gz" + SHA512 a7dcc246ba7f58969ecd6d107c7b82dede811e65f375b7aa3e683621f2c6ff3e7dccefdd79098fcadad6cca8bb94c2933c63f4701be2c002f9a56f1bbe6b047e +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" + SOURCE_BASE ${VERSION} + PATCHES ${PATCHES} +) + +if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP) + vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + ) + + vcpkg_cmake_install() +else() + if(VCPKG_TARGET_IS_OSX) + # libintl links to those + set(EXTRA_LIBS "-framework CoreFoundation -lintl -liconv") + endif() + + vcpkg_configure_make( + AUTOCONFIG + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + --disable-doc-build + "LDFLAGS=${EXTRA_LIBS} \$LDFLAGS" + ) + + vcpkg_install_make() +endif() + +configure_file("${CMAKE_CURRENT_LIST_DIR}/opensp.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/opensp.pc" @ONLY) +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/use-cpp-using-declarations.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/use-cpp-using-declarations.patch new file mode 100644 index 0000000000000000000000000000000000000000..4a6e8bdc5bdfa8c7bc6e9139a7cee4cbe42458cb --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/use-cpp-using-declarations.patch @@ -0,0 +1,72 @@ +diff --git a/include/IList.h b/include/IList.h +index e66cd00..c94cfed 100644 +--- a/include/IList.h ++++ b/include/IList.h +@@ -26,7 +26,9 @@ public: + void swap(IList &list) { IListBase::swap(list); } + T *head() const { return (T *)IListBase::head(); } + T *get() { return (T *)IListBase::get(); } ++ using + IListBase::clear; ++ using + IListBase::empty; + friend class IListIter; + private: +diff --git a/include/IListIter.h b/include/IListIter.h +index 74e1bd6..d322bf8 100644 +--- a/include/IListIter.h ++++ b/include/IListIter.h +@@ -17,7 +17,9 @@ public: + IListIter(const IList &list) : IListIterBase(list) { } + T *cur() const { return (T *)IListIterBase::cur(); } + ++ using + IListIterBase::next; ++ using + IListIterBase::done; + }; + +diff --git a/include/Ptr.h b/include/Ptr.h +index c6b2767..5dda0ca 100644 +--- a/include/Ptr.h ++++ b/include/Ptr.h +@@ -69,7 +69,9 @@ public: + const T *operator->() const { return Ptr::pointer(); } + const T &operator*() const { return *Ptr::pointer(); } + void swap(ConstPtr &p) { Ptr::swap(p); } ++ using + Ptr::isNull; ++ using + Ptr::clear; + Boolean operator==(const Ptr &p) const { return Ptr::operator==(p); } + Boolean operator!=(const Ptr &p) const { return Ptr::operator!=(p); } +diff --git a/lib/Parser.h b/lib/Parser.h +index e721000..c6c41b2 100644 +--- a/lib/Parser.h ++++ b/lib/Parser.h +@@ -62,15 +62,25 @@ public: + Parser(const SgmlParser::Params &); + Event *nextEvent(); + void parseAll(EventHandler &, const volatile sig_atomic_t *cancelPtr); ++ using + ParserState::sdPointer; ++ using + ParserState::instanceSyntaxPointer; ++ using + ParserState::prologSyntaxPointer; ++ using + ParserState::activateLinkType; ++ using + ParserState::allLinkTypesActivated; ++ using + ParserState::entityManager; ++ using + ParserState::entityCatalog; ++ using + ParserState::baseDtd; ++ using + ParserState::options; ++ using + ParserState::instantiateDtd; + friend class PiAttspecParser; + private: diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/uwp_getenv_fix.diff b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/uwp_getenv_fix.diff new file mode 100644 index 0000000000000000000000000000000000000000..806ac1ba86e76e074aea90df0181656a427cb3eb --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/uwp_getenv_fix.diff @@ -0,0 +1,13 @@ +diff --git a/config.h b/config.h +index 6a2b097..7db8a93 100644 +--- a/config.h ++++ b/config.h +@@ -64,6 +64,8 @@ + #pragma warning ( disable : 4251 ) // __declspec(dllexport) + #pragma warning ( disable : 4275 ) + #pragma warning ( disable : 4237 ) // future reserved keyword ++#pragma warning ( disable : 4996 ) // 'getenv': This function or variable may be unsafe (on UWP) ++#pragma warning ( disable : 4703 ) // potentially uninitialized local pointer variable 'declaredValue' + #define huge verybig + #if _MSC_VER == 900 + #define SP_DECLARE_PLACEMENT_OPERATOR_NEW diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..879e196837f76f409e479b669d4dcf305661b64a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/vcpkg.json @@ -0,0 +1,24 @@ +{ + "name": "libopensp", + "version": "1.5.2", + "port-version": 3, + "description": "SGML parser algorithm", + "homepage": "http://openjade.sourceforge.net", + "license": "MIT", + "dependencies": [ + { + "name": "gettext", + "platform": "!(windows | uwp)" + }, + { + "name": "vcpkg-cmake", + "host": true, + "platform": "windows" + }, + { + "name": "vcpkg-cmake-config", + "host": true, + "platform": "windows" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/windows_cmake_build.diff b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/windows_cmake_build.diff new file mode 100644 index 0000000000000000000000000000000000000000..bac0b152a3e699e6aa6482e7f2a531d958da3e8f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libopensp/windows_cmake_build.diff @@ -0,0 +1,133 @@ +diff -Nru -x '*~' OpenSP-1.5.2.orig/CMakeLists.txt OpenSP-1.5.2/CMakeLists.txt +--- OpenSP-1.5.2.orig/CMakeLists.txt 1970-01-01 02:00:00.000000000 +0200 ++++ OpenSP-1.5.2/CMakeLists.txt 2014-08-24 17:23:19.941495700 +0300 +@@ -0,0 +1,20 @@ ++project(opensp) ++ ++cmake_minimum_required(VERSION 2.6) ++ ++include_directories( ++ . ++ include ++ generic ++) ++ ++file(GLOB SRC_SOURCES lib/*.cxx) ++file(GLOB libopensp_HEADERS config.h generic/*.h include/*.h) ++ ++add_library(opensp ${SRC_SOURCES}) ++set_target_properties(opensp PROPERTIES OUTPUT_NAME "osp") ++target_link_libraries(opensp) ++ ++install(TARGETS opensp RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib) ++install(FILES ${libopensp_HEADERS} DESTINATION include/opensp) ++ +diff -Nru -x '*~' OpenSP-1.5.2.orig/config.h OpenSP-1.5.2/config.h +--- OpenSP-1.5.2.orig/config.h 2005-12-23 16:16:30.000000000 +0200 ++++ OpenSP-1.5.2/config.h 2014-08-24 17:26:33.724698900 +0300 +@@ -26,6 +26,12 @@ + #endif + #endif /* __GNUG__ */ + ++#ifdef __MINGW32__ ++#define SP_HAVE_BOOL ++#define SP_HAVE_TYPENAME ++#define SP_DEFINE_TEMPLATES ++#endif /* __MINGW32__ */ ++ + #if defined(sun) || defined(__sun) + // struct stat has st_blksize member + #define SP_STAT_BLKSIZE +@@ -80,6 +86,11 @@ + #define SP_HAVE_TYPENAME + #endif + ++#if _MSC_VER >=1800 ++// Visual Studio 2013 ++#define SP_ANSI_FOR_SCOPE ++#endif ++ + #define SP_HAVE_SETMODE + #define SP_DLLEXPORT __declspec(dllexport) + #define SP_DLLIMPORT __declspec(dllimport) +@@ -301,12 +312,5 @@ + #define PATH_SEPARATOR ':' + #endif + +- +-/* new stuff */ +- +-#ifndef HAVE_MUTABLE +-#define mutable +-#endif +- + // NOTE: This is processed as a Makefile, not as a header by autoconf. + #define SP_PACKAGE "OpenSP" +diff -Nru -x '*~' OpenSP-1.5.2.orig/generic/SGMLApplication.h OpenSP-1.5.2/generic/SGMLApplication.h +--- OpenSP-1.5.2.orig/generic/SGMLApplication.h 2005-05-14 12:17:41.000000000 +0300 ++++ OpenSP-1.5.2/generic/SGMLApplication.h 2014-08-24 17:23:19.957120700 +0300 +@@ -269,6 +269,7 @@ + unsigned count_; + friend class OpenEntityPtr; + }; ++ SGMLApplication(); + virtual ~SGMLApplication(); + virtual void appinfo(const AppinfoEvent &); + virtual void startDtd(const StartDtdEvent &); +diff -Nru -x '*~' OpenSP-1.5.2.orig/include/OutputCharStream.h OpenSP-1.5.2/include/OutputCharStream.h +--- OpenSP-1.5.2.orig/include/OutputCharStream.h 2005-07-21 17:04:39.000000000 +0300 ++++ OpenSP-1.5.2/include/OutputCharStream.h 2014-08-24 17:23:19.957120700 +0300 +@@ -31,6 +31,7 @@ + OutputCharStream &operator<<(const char *); + OutputCharStream &operator<<(const StringC &); + OutputCharStream &operator<<(unsigned long); ++ OutputCharStream &operator<<(unsigned long long); + OutputCharStream &operator<<(int); + OutputCharStream &operator<<(Newline); + private: +diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/MessageReporter.cxx OpenSP-1.5.2/lib/MessageReporter.cxx +--- OpenSP-1.5.2.orig/lib/MessageReporter.cxx 2005-07-21 17:05:17.000000000 +0300 ++++ OpenSP-1.5.2/lib/MessageReporter.cxx 2014-08-24 17:23:19.957120700 +0300 +@@ -123,7 +123,11 @@ + os() << ':'; + } + if (options_ & messageNumbers) ++#ifdef _WIN64 ++ os() << (unsigned long long)message.type->module() << "." ++#else + os() << (unsigned long)message.type->module() << "." ++#endif + << (unsigned long)message.type->number() << ":"; + switch (message.type->severity()) { + case MessageType::info: +diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/OutputCharStream.cxx OpenSP-1.5.2/lib/OutputCharStream.cxx +--- OpenSP-1.5.2.orig/lib/OutputCharStream.cxx 2005-07-21 17:05:17.000000000 +0300 ++++ OpenSP-1.5.2/lib/OutputCharStream.cxx 2014-08-24 17:23:19.957120700 +0300 +@@ -61,6 +61,13 @@ + return *this << buf; + } + ++OutputCharStream &OutputCharStream::operator<<(unsigned long long n) ++{ ++ char buf[sizeof(unsigned long long)*3 + 1]; ++ sprintf(buf, "%I64u", n); ++ return *this << buf; ++} ++ + OutputCharStream &OutputCharStream::operator<<(int n) + { + char buf[sizeof(int)*3 + 2]; +diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/SGMLApplication.cxx OpenSP-1.5.2/lib/SGMLApplication.cxx +--- OpenSP-1.5.2.orig/lib/SGMLApplication.cxx 2005-07-21 17:05:18.000000000 +0300 ++++ OpenSP-1.5.2/lib/SGMLApplication.cxx 2014-08-24 17:23:19.972745700 +0300 +@@ -9,6 +9,10 @@ + #include "Boolean.h" + #include "SGMLApplication.h" + ++SGMLApplication::SGMLApplication() ++{ ++} ++ + SGMLApplication::~SGMLApplication() + { + } diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-install-py.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-install-py.patch new file mode 100644 index 0000000000000000000000000000000000000000..6c03602fbc936f54a8c651ea54390dda7f7dd187 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-install-py.patch @@ -0,0 +1,37 @@ +diff --git a/bindings/perl/lib/CMakeLists.txt b/bindings/perl/lib/CMakeLists.txt +index 7c36e51..ee2c5bc 100644 +--- a/bindings/perl/lib/CMakeLists.txt ++++ b/bindings/perl/lib/CMakeLists.txt +@@ -1,2 +1 @@ + add_custom_target(PMlibproxy ALL ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.pm ${CMAKE_BINARY_DIR}/perl/Net/Libproxy.pm) +-install( FILES Libproxy.pm DESTINATION ${PX_PERL_ARCH}/Net ) +diff --git a/bindings/perl/src/CMakeLists.txt b/bindings/perl/src/CMakeLists.txt +index 29e656d..dec5799 100644 +--- a/bindings/perl/src/CMakeLists.txt ++++ b/bindings/perl/src/CMakeLists.txt +@@ -20,5 +20,3 @@ endif() + target_link_libraries(PLlibproxy ${PLlibproxy_LIB_DEPENDENCIES}) + set_target_properties(PLlibproxy PROPERTIES OUTPUT_NAME "Libproxy") + set_target_properties(PLlibproxy PROPERTIES PREFIX "") +- +-install( TARGETS PLlibproxy DESTINATION ${PX_PERL_ARCH}/auto/Net/Libproxy ) +diff --git a/bindings/python/python2/CMakeLists.txt b/bindings/python/python2/CMakeLists.txt +index f4d2b91..a79decc 100644 +--- a/bindings/python/python2/CMakeLists.txt ++++ b/bindings/python/python2/CMakeLists.txt +@@ -21,5 +21,4 @@ if(PYTHON2INTERP_FOUND) + + message(STATUS "Using PYTHON2_SITEPKG_DIR=${PYTHON2_SITEPKG_DIR}") + +- install(FILES ../libproxy.py DESTINATION ${PYTHON2_SITEPKG_DIR}) + endif() +diff --git a/bindings/python/python3/CMakeLists.txt b/bindings/python/python3/CMakeLists.txt +index fc3b24b..a13b6b7 100644 +--- a/bindings/python/python3/CMakeLists.txt ++++ b/bindings/python/python3/CMakeLists.txt +@@ -21,5 +21,4 @@ if(PYTHON3INTERP_FOUND) + + message(STATUS "Using PYTHON3_SITEPKG_DIR=${PYTHON3_SITEPKG_DIR}") + +- install(FILES ../libproxy.py DESTINATION ${PYTHON3_SITEPKG_DIR}) + endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-module-lib-name.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-module-lib-name.patch new file mode 100644 index 0000000000000000000000000000000000000000..2a8790afed1c93566765782618eeab2b3c067203 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-module-lib-name.patch @@ -0,0 +1,13 @@ +diff --git a/libproxy/Findlibproxy.cmake.in b/libproxy/Findlibproxy.cmake.in +index ef44489..c0bd2ae 100644 +--- a/libproxy/Findlibproxy.cmake.in ++++ b/libproxy/Findlibproxy.cmake.in +@@ -12,7 +12,7 @@ + + # Find proxy.h and the corresponding library (libproxy.so) + FIND_PATH(LIBPROXY_INCLUDE_DIR proxy.h ) +-FIND_LIBRARY(LIBPROXY_LIBRARIES NAMES proxy ) ++FIND_LIBRARY(LIBPROXY_LIBRARIES NAMES proxy libproxy) + + # Set library version + SET(LIBPROXY_VERSION @PROJECT_VERSION@) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..e1540a676a78191f1c59723f4e3c7b91728cb45d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/portfile.cmake @@ -0,0 +1,59 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO libproxy/libproxy + REF "${VERSION}" + SHA512 1148d688a9f070273a1a2b110a788561789799089660292bbba59fbf0a9caf7d28cb039a9ccdcb935f752e1e34739b2d2f4c784b1bb3bbaa03d108e7b38a4754 + HEAD_REF master + PATCHES + support-windows.patch + fix-install-py.patch + fix-module-lib-name.patch +) + +string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATICCRT) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + bindings-csharp WITH_DOTNET + bindings-python WITH_PYTHON2 + bindings-python WITH_PYTHON3 + bindings-perl WITH_PERL + bindings-vala WITH_VALA + tools BUILD_TOOLS + tests BUILD_TESTING +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} + -DWITH_WEBKIT3=OFF + -DWITH_KDE=${VCPKG_TARGET_IS_LINUX} + -DMSVC_STATIC=${STATICCRT} + -DWITH_GNOME3=OFF + MAYBE_UNUSED_VARIABLES + WITH_DOTNET + WITH_PERL + WITH_PYTHON2 + WITH_PYTHON3 + WITH_VALA + MSVC_STATIC + BUILD_TOOLS + WITH_GNOME3 +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Modules) +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +vcpkg_copy_tools(TOOL_NAMES proxy AUTO_CLEAN) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" + "${CMAKE_CURRENT_LIST_DIR}/usage" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/support-windows.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/support-windows.patch new file mode 100644 index 0000000000000000000000000000000000000000..d49fa2c0af256c589ae994487acc640d9c5c716d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/support-windows.patch @@ -0,0 +1,41 @@ +diff --git a/cmake/paths.cmk b/cmake/paths.cmk +index 593ebc1..bbf8754 100644 +--- a/cmake/paths.cmk ++++ b/cmake/paths.cmk +@@ -1,4 +1,4 @@ +-if(WIN32 AND NOT MINGW) ++if(0) + set(CMAKE_INSTALL_PREFIX "" CACHE PATH "Install prefix") + set(BIN_INSTALL_DIR . CACHE PATH "Binary install dir") + set(LIB_INSTALL_DIR . CACHE PATH "Library install dir") +diff --git a/libproxy/cmake/devfiles.cmk b/libproxy/cmake/devfiles.cmk +index 0301dce..0eb5f83 100644 +--- a/libproxy/cmake/devfiles.cmk ++++ b/libproxy/cmake/devfiles.cmk +@@ -1,4 +1,4 @@ +-if(NOT WIN32 OR MINGW) ++if(1) + # PkgConfig file + set (PKGCONFIG_PREFIX ${CMAKE_INSTALL_PREFIX}) + +diff --git a/libproxy/cmake/libproxy.cmk b/libproxy/cmake/libproxy.cmk +index de68e5c..9356486 100644 +--- a/libproxy/cmake/libproxy.cmk ++++ b/libproxy/cmake/libproxy.cmk +@@ -24,5 +24,5 @@ set_target_properties(libproxy PROPERTIES LINK_INTERFACE_LIBRARIES "") + if(NOT APPLE) + set_target_properties(libproxy PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libproxy.map") + endif() +-install(TARGETS libproxy DESTINATION ${LIB_INSTALL_DIR}) ++install(TARGETS libproxy RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) + install(FILES proxy.h DESTINATION ${INCLUDE_INSTALL_DIR}) +diff --git a/libproxy/cmake/pkgconfig.cmk b/libproxy/cmake/pkgconfig.cmk +index 89bfc62..ffa0897 100644 +--- a/libproxy/cmake/pkgconfig.cmk ++++ b/libproxy/cmake/pkgconfig.cmk +@@ -1,4 +1,4 @@ +-if(NOT WIN32 AND NOT APPLE) ++if(NOT WIN32) + find_package(PkgConfig) + + # Define our magical px_check_modules function diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/usage b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/usage new file mode 100644 index 0000000000000000000000000000000000000000..2a8d884866f413e8dc5ed51cbb57e8d7ec3ce763 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/usage @@ -0,0 +1,5 @@ +The package libproxy provides CMake targets: + + find_package(libproxy REQUIRED) + target_include_directories(main PRIVATE ${LIBPROXY_INCLUDE_DIR}) + target_link_libraries(main PRIVATE ${LIBPROXY_LIBRARIES}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg-cmake-wrapper.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg-cmake-wrapper.cmake new file mode 100644 index 0000000000000000000000000000000000000000..63158432bc5ae41c3122d92e46fff86e1e91c56c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg-cmake-wrapper.cmake @@ -0,0 +1,6 @@ +set(LIBPROXY_PREV_MODULE_PATH ${CMAKE_MODULE_PATH}) +list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) + +_find_package(${ARGS}) + +set(CMAKE_MODULE_PATH ${LIBPROXY_PREV_MODULE_PATH}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..0a26245082b45879836399d35ea8a9efe67cd464 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg.json @@ -0,0 +1,42 @@ +{ + "name": "libproxy", + "version": "0.4.18", + "port-version": 3, + "description": "libproxy is a library that provides automatic proxy configuration management.", + "homepage": "https://github.com/libproxy/libproxy", + "license": "LGPL-2.1-only", + "supports": "!(uwp | xbox | android)", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "bindings-csharp": { + "description": "Install C# bindings" + }, + "bindings-perl": { + "description": "Install PERL bindings" + }, + "bindings-python": { + "description": "Install Python bindings" + }, + "bindings-ruby": { + "description": "Install Ruby bindings" + }, + "bindings-vala": { + "description": "Install Vala bindings" + }, + "tests": { + "description": "Build libproxy tests" + }, + "tools": { + "description": "build tools" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..20dcda6f202ecc86015d0a4a43327ac91fe7a749 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/portfile.cmake @@ -0,0 +1,17 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO claytonotey/libsbsms + REF 2.3.0 + SHA512 e5b544c2bdbaa2169236987c7a043838c8d1761b25280c476d7a32656d482c6485cb33f579ea9d1ce586ec7b2913ed8fdcf1abe5c7cc8b9e4eef9ce87de54627 + HEAD_REF main +) + +vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/sbsms" PACKAGE_NAME sbsms) +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..360bef009b987ed586537e5d5df1ef2753d96f89 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "libsbsms", + "version-semver": "2.3.0", + "description": "libsbsms is a library for high quality time and pitch scale modification of digital audio. It uses octave subband sinusoidal modeling.", + "homepage": "https://github.com/claytonotey/libsbsms", + "license": "GPL-2.0-or-later", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..47fcb1826ff6acfc2a6e7478fbb22de5d33fd24c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/portfile.cmake @@ -0,0 +1,42 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO libxmp/libxmp + REF libxmp-${VERSION} + SHA512 5f7690e274f3857bd6889cd2ba637473f4a85359a6ef87c76313f87d0c725e3880ba6e428b542dbbf0c8a7725a87b5019289b3f19d2c5bb49527b380f1b4f7e4 + PATCHES + fix-cmake-config-dir.patch +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC) +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + INVERTED_FEATURES + depackers LIBXMP_DISABLE_DEPACKERS + prowizard LIBXMP_DISABLE_PROWIZARD +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DBUILD_STATIC=${BUILD_STATIC} + -DBUILD_SHARED=${BUILD_SHARED} + -DLIBXMP_DOCS=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup( + PACKAGE_NAME "libxmp" + CONFIG_PATH "lib/cmake/libxmp" +) + +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/docs/COPYING.LIB") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/usage b/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/usage new file mode 100644 index 0000000000000000000000000000000000000000..6dcd832f18ed74ed6ce142511666db0ff2dc0ef2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/usage @@ -0,0 +1,4 @@ +libxmp provides CMake targets: + + find_package(libxmp CONFIG REQUIRED) + target_link_libraries(main PRIVATE $,libxmp::xmp_shared,libxmp::xmp_static>) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..551016eefda247bd905ed872e749d5f957d648a3 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libxmp/vcpkg.json @@ -0,0 +1,31 @@ +{ + "name": "libxmp", + "version": "4.6.0", + "port-version": 1, + "description": "Libxmp is a library that renders module files to PCM data.", + "homepage": "https://sourceforge.net/projects/xmp/", + "license": "LGPL-2.1-or-later", + "supports": "!xbox", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "depackers", + "prowizard" + ], + "features": { + "depackers": { + "description": "Enable archive depackers." + }, + "prowizard": { + "description": "Enable ProWizard format loaders." + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/disable-cli-option.patch b/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/disable-cli-option.patch new file mode 100644 index 0000000000000000000000000000000000000000..260b7a2bec1c2887d92eb751239fc2fa31443784 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/disable-cli-option.patch @@ -0,0 +1,51 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 336a68d..96a2a74 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -67,18 +67,20 @@ add_library(lzfse + src/lzvn_encode_base.c) + lzfse_add_compiler_flags(lzfse -Wall -Wno-unknown-pragmas -Wno-unused-variable) + +-add_executable(lzfse_cli +- src/lzfse_main.c) +-target_link_libraries(lzfse_cli lzfse) +-set_target_properties(lzfse_cli PROPERTIES OUTPUT_NAME lzfse) +-lzfse_add_compiler_flags(lzfse_cli -Wall -Wno-unknown-pragmas -Wno-unused-variable) +- +-if(CMAKE_VERSION VERSION_LESS 3.1 OR CMAKE_C_COMPLIER_ID STREQUAL "Intel") +- lzfse_add_compiler_flags(lzfse -std=c99) +- lzfse_add_compiler_flags(lzfse_cli -std=c99) +-else() +- set_property(TARGET lzfse PROPERTY C_STANDARD 99) +- set_property(TARGET lzfse_cli PROPERTY C_STANDARD 99) ++if(NOT LZFSE_DISABLE_CLI) ++ add_executable(lzfse_cli ++ src/lzfse_main.c) ++ target_link_libraries(lzfse_cli lzfse) ++ set_target_properties(lzfse_cli PROPERTIES OUTPUT_NAME lzfse) ++ lzfse_add_compiler_flags(lzfse_cli -Wall -Wno-unknown-pragmas -Wno-unused-variable) ++ ++ if(CMAKE_VERSION VERSION_LESS 3.1 OR CMAKE_C_COMPLIER_ID STREQUAL "Intel") ++ lzfse_add_compiler_flags(lzfse -std=c99) ++ lzfse_add_compiler_flags(lzfse_cli -std=c99) ++ else() ++ set_property(TARGET lzfse PROPERTY C_STANDARD 99) ++ set_property(TARGET lzfse_cli PROPERTY C_STANDARD 99) ++ endif() + endif() + + set_target_properties(lzfse PROPERTIES +@@ -95,7 +97,12 @@ endif() + if(NOT LZFSE_BUNDLE_MODE) + include(GNUInstallDirs) + +- install(TARGETS lzfse lzfse_cli ++ if(NOT LZFSE_DISABLE_CLI) ++ install(TARGETS lzfse_cli ++ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") ++ endif() ++ ++ install(TARGETS lzfse + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..052008a688e30e36d4efc9e711a3cb4bd37a3e99 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/portfile.cmake @@ -0,0 +1,34 @@ +if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") + message(FATAL_ERROR "ARM build not supported") +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO lzfse/lzfse + REF lzfse-1.0 + SHA512 9d7ca44e6d3d2bdf4b82b0eb66c14922369b8b6fe2cf891187a77c6708b8d26c2c1b2ccddec6059e85dbbbb37c497419549f02812b5f34d06238ac246a8cf912 + HEAD_REF master + PATCHES + disable-cli-option.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DLZFSE_DISABLE_TESTS=ON + -DLZFSE_DISABLE_CLI=ON) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(READ "${CURRENT_PACKAGES_DIR}/include/lzfse.h" LZFSE_H) +if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + string(REPLACE "defined(LZFSE_DLL)" "1" LZFSE_H "${LZFSE_H}") +else() + string(REPLACE "defined(LZFSE_DLL)" "0" LZFSE_H "${LZFSE_H}") +endif() +file(WRITE "${CURRENT_PACKAGES_DIR}/include/lzfse.h" "${LZFSE_H}") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..c156f05043dbd595f28262d95459f668aa53bd3d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lzfse/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "lzfse", + "version": "1.0", + "port-version": 5, + "description": "Lempel-Ziv style data compressor using Finite State Entropy coding.", + "homepage": "https://github.com/lzfse/lzfse", + "supports": "!arm", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/fix_String_to_string.patch b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/fix_String_to_string.patch new file mode 100644 index 0000000000000000000000000000000000000000..28c506a31e7fc4d041eb1dbc84f3666004d46654 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/fix_String_to_string.patch @@ -0,0 +1,20 @@ +diff --git i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp +index d351c1e..7c430e9 100644 +--- i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp ++++ w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp +@@ -106,7 +106,7 @@ v_io_handle SimpleUdpStreamProvider::instantiateServer() { + hints.ai_flags = AI_PASSIVE; + auto portStr = oatpp::utils::conversion::int32ToStr(m_port); + +- ret = getaddrinfo(NULL, (const char*)portStr->getData(), &hints, &result); ++ ret = getaddrinfo(NULL, (const char*)portStr->c_str(), &hints, &result); + if (ret != 0) { + OATPP_LOGE("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]", "Error. Call to getaddrinfo() failed with result=%d: %s", ret, strerror(errno)); + throw std::runtime_error("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]: Error. Call to getaddrinfo() failed."); +@@ -233,4 +233,4 @@ provider::ResourceHandle SimpleUdpStreamProvider::get() + ); + } + +-}} +\ No newline at end of file ++}} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/fix_win_close.patch b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/fix_win_close.patch new file mode 100644 index 0000000000000000000000000000000000000000..c6410187996a55ff96d36de0c02054fc23a49959 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/fix_win_close.patch @@ -0,0 +1,20 @@ +diff --git i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp +index d351c1e..f5774bd 100644 +--- i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp ++++ w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp +@@ -129,7 +129,7 @@ v_io_handle SimpleUdpStreamProvider::instantiateServer() { + + ret = bind(serverHandle, result->ai_addr, (int)result->ai_addrlen); + if (ret != 0) { +- ::close(serverHandle); ++ ::_close(serverHandle); + OATPP_LOGE("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]", "Error. Failed to bind port %d: %s", m_port, strerror(errno)); + throw std::runtime_error("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]: Error. Can't bind to address: %s"); + } +@@ -233,4 +233,4 @@ provider::ResourceHandle SimpleUdpStreamProvider::get() + ); + } + +-}} +\ No newline at end of file ++}} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..3523504d23085955f0fd1d677b85f8b85385cad0 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/portfile.cmake @@ -0,0 +1,27 @@ +set(OATPP_VERSION "1.3.0") + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO oatpp/oatpp-ssdp + REF ${OATPP_VERSION} + SHA512 ab6f10bb79cb058eb7ce4115327e2f2d85133753d02dc2b4339505cc2ed4ef8b6284b5e832d0e190de17b8ae70e0b9a99b1b074d0691ca9a613873e8d4e1ace8 + HEAD_REF master + PATCHES + fix_String_to_string.patch + fix_win_close.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DOATPP_BUILD_TESTS:BOOL=OFF" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-ssdp CONFIG_PATH lib/cmake/oatpp-ssdp-${OATPP_VERSION}) +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/oatpp-ssdp/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..8a7496deb306682187e47e2a58bdc24a69cd86ed --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/oatpp-ssdp/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "oatpp-ssdp", + "version": "1.3.0", + "port-version": 1, + "description": "Oat++ SSDP (Simple Service Discovery Protocol) submodule.", + "homepage": "https://github.com/oatpp/oatpp-ssdp", + "license": "Apache-2.0", + "dependencies": [ + "oatpp", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/pangomm/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/pangomm/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..27b7b28fe18cb5dded2b43d12e69fa90295a60d2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/pangomm/portfile.cmake @@ -0,0 +1,27 @@ +# Keep distfile, don't use GitLab! +vcpkg_download_distfile(ARCHIVE + URLS "https://ftp.gnome.org/pub/GNOME/sources/pangomm/2.50/pangomm-2.50.1.tar.xz" + FILENAME "pangomm-2.50.1.tar.xz" + SHA512 bffc55eedc4f278480a74afcf119b79a295bf5775123f582746ba425e19e2690d627baa9a9813b70db9e063db7efe959f365567dd7bcbc1fc862212ba8225a98 +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE ${ARCHIVE} +) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dmsvc14x-parallel-installable=false + -Dbuild-documentation=false + ADDITIONAL_BINARIES + glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal' + glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums' +) + +vcpkg_install_meson() +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/pangomm/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/pangomm/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..955bef04fd64f0fc4d5971c283b6a90ab7827d03 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/pangomm/vcpkg.json @@ -0,0 +1,28 @@ +{ + "name": "pangomm", + "version": "2.50.1", + "port-version": 3, + "description": "pangomm is the official C++ interface for the Pango font layout library. See, for instance, the Pango::Layout class.", + "homepage": "https://gitlab.gnome.org/GNOME/pangomm", + "license": "LGPL-2.1-or-later", + "supports": "!(arm | xbox)", + "dependencies": [ + "cairo", + "cairomm", + "fontconfig", + "freetype", + "gettext", + "glib", + { + "name": "glib", + "host": true + }, + "glibmm", + "harfbuzz", + "pango", + { + "name": "vcpkg-tool-meson", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/pdqsort/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/pdqsort/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..9e4c3e798a28b56c65693624f26fb80dc6fb566c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/pdqsort/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO orlp/pdqsort + REF 08879029ab8dcb80a70142acb709e3df02de5d37 + SHA512 38e8b6e35edf1e88e26850a13ce892d8adc0d3e1d7954287d024b3bb858a6b2284e25fbf7c92a694b3ec77cacaf6bbc27fc365187115f7cca6bc88088f67a18f + HEAD_REF master +) + +file(COPY ${SOURCE_PATH}/pdqsort.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/pdqsort) + +# Handle copyright +file(COPY ${SOURCE_PATH}/license.txt ${SOURCE_PATH}/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/pdqsort) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/pdqsort/license.txt ${CURRENT_PACKAGES_DIR}/share/pdqsort/copyright) \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/pdqsort/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/pdqsort/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..d286162170c0b809e165515575975c70ac4ddce8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/pdqsort/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "pdqsort", + "version-date": "2019-07-30", + "port-version": 2, + "description": "Pattern-defeating quicksort (pdqsort) is a novel sorting algorithm", + "homepage": "https://github.com/orlp/pdqsort" +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qt5-quickcontrols2/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/qt5-quickcontrols2/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..214726759f3cf1bd62fd56f62c48fb1525af45d2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qt5-quickcontrols2/portfile.cmake @@ -0,0 +1,2 @@ +include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake) +qt_submodule_installation() \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qt5-quickcontrols2/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/qt5-quickcontrols2/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..f39d04e3fe9434c55d0073967504c1ba6b4ef4ac --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qt5-quickcontrols2/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "qt5-quickcontrols2", + "version": "5.15.13", + "port-version": 1, + "description": "Qt Quick Controls provides a set of controls that can be used to build complete interfaces in Qt Quick.", + "license": null, + "dependencies": [ + { + "name": "qt5-base", + "default-features": false + }, + "qt5-declarative", + "qt5-imageformats" + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qtdatavis3d/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/qtdatavis3d/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1a3a6f1bfedbd721df5802eed56231f634527970 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qtdatavis3d/portfile.cmake @@ -0,0 +1,10 @@ +set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase") +include("${SCRIPT_PATH}/qt_install_submodule.cmake") + +set(${PORT}_PATCHES) + +qt_install_submodule(PATCHES ${${PORT}_PATCHES} + CONFIGURE_OPTIONS + CONFIGURE_OPTIONS_RELEASE + CONFIGURE_OPTIONS_DEBUG + ) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qtdatavis3d/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/qtdatavis3d/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..d0fe97755212626ec4ad40bfbfd81230722b77f5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qtdatavis3d/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "qtdatavis3d", + "version": "6.6.1", + "port-version": 1, + "description": "The Qt Data Visualization module enables you to visualize data in 3D as bar, scatter, and surface graphs.", + "homepage": "https://www.qt.io/", + "license": null, + "dependencies": [ + { + "name": "qtbase", + "default-features": false, + "features": [ + "gui", + "testlib" + ] + }, + { + "name": "qtdeclarative", + "default-features": false + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..4304d663909f5242790d00d0ff0b9d5e095b86ce --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/portfile.cmake @@ -0,0 +1,17 @@ +set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase") +include("${SCRIPT_PATH}/qt_install_submodule.cmake") + +set(${PORT}_PATCHES protoc-host.patch) +set(TOOL_NAMES qtprotobufgen qtgrpcgen) +# native_grpc ->grpc WrapgRPC +# grp -> qt[network] +# qtprotobufgen -> protobuf WrapProtobuf +qt_install_submodule(PATCHES ${${PORT}_PATCHES} + TOOL_NAMES ${TOOL_NAMES} + CONFIGURE_OPTIONS + -DCMAKE_FIND_PACKAGE_TARGETS_GLOBAL=ON + #--trace-expand + CONFIGURE_OPTIONS_MAYBE_UNUSED + QT_BUILD_EXAMPLES + QT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS + ) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/protoc-host.patch b/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/protoc-host.patch new file mode 100644 index 0000000000000000000000000000000000000000..a2d81fb5aff1dfa692f35755a0ea7345644ed35f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/protoc-host.patch @@ -0,0 +1,23 @@ +diff --git a/cmake/FindWrapProtoc.cmake b/cmake/FindWrapProtoc.cmake +index 82972c8f18..08335fa746 100644 +--- a/cmake/FindWrapProtoc.cmake ++++ b/cmake/FindWrapProtoc.cmake +@@ -13,7 +13,7 @@ if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY) + list(APPEND __WrapProtoc_find_package_args QUIET) + endif() + +-if(NOT CMAKE_CROSSCOMPILING) ++if(0) + if(NOT TARGET Threads::Threads) + find_package(Threads ${__WrapProtoc_find_package_args}) + endif() +@@ -52,8 +52,8 @@ if(NOT CMAKE_CROSSCOMPILING) + endif() + endif() + +-if(NOT __WrapProtoc_protoc_imported_location) ++if(1) + if(CMAKE_CROSSCOMPILING) + set(__WrapProtoc_extra_prefix_paths "${QT_ADDITIONAL_HOST_PACKAGES_PREFIX_PATH}") + endif() + find_program(__WrapProtoc_protoc_imported_location diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..e3e723a693af7e5103710a10c5ebcc007a8071b7 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qtgrpc/vcpkg.json @@ -0,0 +1,27 @@ +{ + "name": "qtgrpc", + "version": "6.6.1", + "port-version": 1, + "description": "The Qt GRPC and Qt Protobuf modules together allow you to define data and messages in proto files, and then use the code generators, which generate client code allowing accessors for fields and gRPC services in the Qt framework.", + "homepage": "https://www.qt.io/", + "license": null, + "dependencies": [ + { + "name": "grpc", + "default-features": false + }, + { + "name": "protobuf", + "default-features": false + }, + { + "name": "qtbase", + "default-features": false + }, + { + "name": "qtgrpc", + "host": true, + "default-features": false + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qtkeychain-qt6/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/qtkeychain-qt6/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..50e1b3cd866f4d13ca02a94dbc76207c18905eda --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qtkeychain-qt6/portfile.cmake @@ -0,0 +1,48 @@ +message(WARNING "qtkeychain is a third-party extension to Qt and is not affiliated with The Qt Company") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO frankosterfeld/qtkeychain + REF "${VERSION}" + SHA512 bf84b19090e667a2946297e63d9813574193d80e4eecbde2fdfca317a66da3f029b3abef326f4ffb32de032a48004f9cf1bc818468af612723d762652dc25eb6 + HEAD_REF master +) + +if(VCPKG_CROSSCOMPILING) + list(APPEND QTKEYCHAIN_OPTIONS -DQT_HOST_PATH=${CURRENT_HOST_INSTALLED_DIR}) + list(APPEND QTKEYCHAIN_OPTIONS -DQT_HOST_PATH_CMAKE_DIR:PATH=${CURRENT_HOST_INSTALLED_DIR}/share) + # remove when https://github.com/microsoft/vcpkg/pull/16111 is merged + if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 AND VCPKG_TARGET_IS_WINDOWS) + list(APPEND QTKEYCHAIN_OPTIONS -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_PROCESSOR:STRING=ARM64 -DCMAKE_SYSTEM_NAME:STRING=Windows) + endif() +endif() + +list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TEST_APPLICATION:BOOL=OFF) + +# FIXME: Why does build translations fail on arm64-windows? +if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL arm64) + list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TRANSLATIONS:BOOL=OFF) +else() + list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TRANSLATIONS:BOOL=ON) +endif() + +vcpkg_cmake_configure( + DISABLE_PARALLEL_CONFIGURE + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DBUILD_WITH_QT6=ON + ${QTKEYCHAIN_OPTIONS} +) +vcpkg_cmake_install() + +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Qt6Keychain PACKAGE_NAME Qt6Keychain) + +# Remove unneeded dirs +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/qtkeychain-qt6/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/qtkeychain-qt6/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..18351698bc8bdae3d3a2fe3fe4ba8110ab1b8a05 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/qtkeychain-qt6/vcpkg.json @@ -0,0 +1,33 @@ +{ + "name": "qtkeychain-qt6", + "version": "0.14.1", + "port-version": 1, + "description": "(Unaffiliated with Qt) Platform-independent Qt6 API for storing passwords securely", + "homepage": "https://github.com/frankosterfeld/qtkeychain", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "libsecret", + "platform": "linux" + }, + { + "name": "qtbase", + "default-features": false + }, + { + "name": "qttools", + "host": true, + "features": [ + "linguist" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/sqlitecpp/add_runtime_destination.patch b/cc-multilingual-main/cc_net/vcpkg/ports/sqlitecpp/add_runtime_destination.patch new file mode 100644 index 0000000000000000000000000000000000000000..71b2b85261a74e46c953cf4a780f7f8147e9ce1d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/sqlitecpp/add_runtime_destination.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e5723d0..ecc1ac2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -337,6 +337,7 @@ target_include_directories(SQLiteCpp + include(GNUInstallDirs) + install(TARGETS SQLiteCpp + EXPORT ${PROJECT_NAME}Targets ++ RUNTIME DESTINATION bin + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + COMPONENT libraries) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/sqlitecpp/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/sqlitecpp/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..9eb7de68d7ed6964caf90cdf78ebfb5d6a547b71 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/sqlitecpp/vcpkg.json @@ -0,0 +1,35 @@ +{ + "name": "sqlitecpp", + "version": "3.3.1", + "description": "SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper.", + "homepage": "https://github.com/SRombauts/SQLiteCpp", + "license": "MIT", + "dependencies": [ + "sqlite3", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "sqlite" + ], + "features": { + "sqlcipher": { + "description": "Use the sqlcipher port", + "dependencies": [ + { + "name": "sqlcipher", + "default-features": false + } + ] + }, + "sqlite": { + "description": "Deprecated; no effects" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/szip/fix-linkage-config.patch b/cc-multilingual-main/cc_net/vcpkg/ports/szip/fix-linkage-config.patch new file mode 100644 index 0000000000000000000000000000000000000000..6d862e41877303dadb0665d11ddf342be0405a7e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/szip/fix-linkage-config.patch @@ -0,0 +1,47 @@ +diff -urN a/config/cmake/szip-config.cmake.in b/config/cmake/szip-config.cmake.in +--- a/config/cmake/szip-config.cmake.in 2017-01-09 16:14:35.000000000 +0100 ++++ b/config/cmake/szip-config.cmake.in 2021-05-14 21:26:09.490134839 +0200 +@@ -39,8 +39,13 @@ + + # Handle default component(static) : + if (NOT ${SZIP_PACKAGE_NAME}_FIND_COMPONENTS) ++ if(@BUILD_SHARED_LIBS@) ++ set (${SZIP_PACKAGE_NAME}_FIND_COMPONENTS shared) ++ set (${SZIP_PACKAGE_NAME}_FIND_REQUIRED_shared true) ++ else() + set (${SZIP_PACKAGE_NAME}_FIND_COMPONENTS static) + set (${SZIP_PACKAGE_NAME}_FIND_REQUIRED_static true) ++ endif() + endif () + + # Handle requested components: +diff -urN a/src/CMakeLists.txt b/src/CMakeLists.txt +--- a/src/CMakeLists.txt 2017-02-03 20:42:43.000000000 +0100 ++++ b/src/CMakeLists.txt 2021-05-14 22:20:28.237632925 +0200 +@@ -22,6 +22,7 @@ + ${SZIP_SRC_SOURCE_DIR}/szlib.h + ) + ++if(NOT BUILD_SHARED_LIBS) + add_library (${SZIP_LIB_TARGET} STATIC ${SZIP_SRCS} ${SZIP_PUBLIC_HEADERS}) + #set_target_properties (${SZIP_LIB_TARGET} + # PROPERTIES +@@ -36,6 +37,7 @@ + set_global_variable (SZIP_LIBRARIES_TO_EXPORT ${SZIP_LIB_TARGET}) + SZIP_SET_LIB_OPTIONS (${SZIP_LIB_TARGET} ${SZIP_LIB_NAME} STATIC) + set (install_targets ${SZIP_LIB_TARGET}) ++endif(NOT BUILD_SHARED_LIBS) + + if (BUILD_SHARED_LIBS) + add_library (${SZIP_LIBSH_TARGET} SHARED ${SZIP_SRCS} ${SZIP_PUBLIC_HEADERS}) +@@ -62,8 +64,9 @@ + if (SZIP_EXPORTED_TARGETS) + if (BUILD_SHARED_LIBS) + INSTALL_TARGET_PDB (${SZIP_LIBSH_TARGET} ${SZIP_INSTALL_BIN_DIR} libraries) +- endif (BUILD_SHARED_LIBS) ++ else() + INSTALL_TARGET_PDB (${SZIP_LIB_TARGET} ${SZIP_INSTALL_BIN_DIR} libraries) ++ endif() + + install ( + TARGETS diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/szip/mingw-lib-names.patch b/cc-multilingual-main/cc_net/vcpkg/ports/szip/mingw-lib-names.patch new file mode 100644 index 0000000000000000000000000000000000000000..c9d2c249fee777f51190c0cbd69e9f0d5a75bac9 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/szip/mingw-lib-names.patch @@ -0,0 +1,30 @@ +diff -urN a/config/cmake/SZIPMacros.cmake b/config/cmake/SZIPMacros.cmake +--- a/config/cmake/SZIPMacros.cmake 2021-05-15 09:06:50.546455249 +0200 ++++ b/config/cmake/SZIPMacros.cmake 2021-05-15 09:01:24.933765423 +0200 +@@ -126,7 +126,7 @@ + macro (SZIP_SET_BASE_OPTIONS libtarget libname libtype) + # message (STATUS "${libname} libtype: ${libtype}") + if (${libtype} MATCHES "SHARED") +- if (WIN32) ++ if (WIN32 AND NOT MINGW) + set (LIB_RELEASE_NAME "${libname}") + set (LIB_DEBUG_NAME "${libname}_D") + else () +@@ -134,7 +134,7 @@ + set (LIB_DEBUG_NAME "${libname}_debug") + endif () + else () +- if (WIN32) ++ if (WIN32 AND NOT MINGW) + set (LIB_RELEASE_NAME "lib${libname}") + set (LIB_DEBUG_NAME "lib${libname}_D") + else () +@@ -164,7 +164,7 @@ + endif () + + #----- Use MSVC Naming conventions for Shared Libraries +- if (MINGW AND ${libtype} MATCHES "SHARED") ++ if (FALSE AND MINGW AND ${libtype} MATCHES "SHARED") + set_target_properties (${libtarget} + PROPERTIES + IMPORT_SUFFIX ".lib" diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/szip/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/szip/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..119825480c33ffca1f85117e92db4f8eb86f2587 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/szip/portfile.cmake @@ -0,0 +1,82 @@ +set(SZIP_VERSION "2.1.1") +vcpkg_download_distfile(ARCHIVE + URLS "https://support.hdfgroup.org/ftp/lib-external/szip/${SZIP_VERSION}/src/szip-${SZIP_VERSION}.tar.gz" + FILENAME "szip-${SZIP_VERSION}.tar.gz" + SHA512 ada6406efb096cd8a2daf8f9217fe9111a96dcae87e29d1c31f58ddd2ad2aa7bac03f23c7205dc9360f3b62d259461759330c7189ef0c2fe559704b1ea9d40dd +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" + SOURCE_BASE "szip-${SZIP_VERSION}" + PATCHES + fix-linkage-config.patch + mingw-lib-names.patch +) + +if (VCPKG_TARGET_IS_ANDROID OR VCPKG_TARGET_IS_IOS OR VCPKG_TARGET_IS_OSX) + # when cross-compiling, try_run will not work. + # LFS "large file support" is keyed on + # 1) 64-bit off_t (https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/64bitPorting/transition/transition.html table 2-1) + # 2) stat works properly, which is true + set(extra_opts + -DTEST_LFS_WORKS_RUN=TRUE + -DTEST_LFS_WORKS_RUN__TRYRUN_OUTPUT="" + -DHAVE_DEFAULT_SOURCE_RUN=0 + -DHAVE_DEFAULT_SOURCE_RUN__TRYRUN_OUTPUT="" + ) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DSZIP_INSTALL_DATA_DIR=share/szip/data + -DSZIP_INSTALL_CMAKE_DIR=share/szip + ${extra_opts} +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/szip_adpt.h" + "\n#ifdef SZ_BUILT_AS_DYNAMIC_LIB" + "\n#if 1 // SZ_BUILT_AS_DYNAMIC_LIB") +endif() + +if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_MINGW) + set(SZIP_LIB_RELEASE "-lszip") + set(SZIP_LIB_DEBUG "-lszip_debug") + set(SZIP_LIBS_PRIVATE "-lm") +elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + set(SZIP_LIB_RELEASE "-llibszip") + set(SZIP_LIB_DEBUG "-llibszip_D") + set(SZIP_LIBS_PRIVATE "") +else() + set(SZIP_LIB_RELEASE "-lszip") + set(SZIP_LIB_DEBUG "-lszip_D") + set(SZIP_LIBS_PRIVATE "") +endif() +if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + set(SZIP_LINKAGE_FLAGS "-DSZ_BUILT_AS_DYNAMIC_LIB=1") +else() + set(SZIP_LINKAGE_FLAGS "") +endif() +if(EXISTS "${CURRENT_PACKAGES_DIR}/lib") + set(SZIP_LIB "${SZIP_LIB_RELEASE}") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/pkgconfig") + configure_file("${CMAKE_CURRENT_LIST_DIR}/szip.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/szip.pc" @ONLY) +endif() +if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib") + set(SZIP_LIB "${SZIP_LIB_DEBUG}") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig") + configure_file("${CMAKE_CURRENT_LIST_DIR}/szip.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/szip.pc" @ONLY) +endif() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/szip/data") + +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/szip/szip.pc.in b/cc-multilingual-main/cc_net/vcpkg/ports/szip/szip.pc.in new file mode 100644 index 0000000000000000000000000000000000000000..b89c9a1ddeddb816f87d08761232b6f440a4d30a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/szip/szip.pc.in @@ -0,0 +1,16 @@ +prefix=${pcfiledir}/../.. + +exec_prefix=${prefix} +libdir=${prefix}/lib +sharedlibdir=${prefix}/lib +includedir=${prefix}/include + +Name: szip +Description: Szip compression software +Version: @SZIP_VERSION@ + +Requires: +Cflags: -I"${includedir}" @SZIP_LINKAGE_FLAGS@ +Libs: -L"${libdir}" @SZIP_LIB@ +Libs.private: @SZIP_LIBS_PRIVATE@ + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/szip/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/szip/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..46a492bb33ac2f13379b11c7d13ecdc6e828f9b6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/szip/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "szip", + "version": "2.1.1", + "port-version": 12, + "description": "Szip compression software, providing lossless compression of scientific data", + "homepage": "https://support.hdfgroup.org/ftp/lib-external/szip", + "license": null, + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +}