diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..a7c62f6487a7380e353ac1446026d0879a1f3ae8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/CMakeLists.txt @@ -0,0 +1,48 @@ +cmake_minimum_required (VERSION 3.9) +project (alac_decoder) + +set(HEADERS + decomp.h + demux.h + stream.h + wavwriter.h +) + +set (SRCS + decomp.c + alac.c + demux.c + stream.c + wavwriter.c +) + +if(MSVC) + add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32) +else() + add_compile_options(-Wno-error=implicit-function-declaration) +endif() + +include_directories(.) + +add_library(libalac_decoder ${SRCS}) + +add_executable(alac_decoder main.c) +target_link_libraries(alac_decoder libalac_decoder) + +install( + TARGETS libalac_decoder + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) + +if(NOT DISABLE_INSTALL_TOOLS) + install ( + TARGETS alac_decoder + RUNTIME DESTINATION tools/alac-decoder + ) +endif() + +if(NOT DISABLE_INSTALL_HEADERS) + install(FILES ${HEADERS} DESTINATION include/alac_decoder) +endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/decomp.c b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/decomp.c new file mode 100644 index 0000000000000000000000000000000000000000..a769533258a32909bdc499d1834955963395745d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/decomp.c @@ -0,0 +1,11 @@ +#include "decomp.h" +#include + +int set_endian() +{ + uint32_t integer = 0x000000aa; + unsigned char *p = (unsigned char*)&integer; + + if (p[0] == 0xaa) return 0; + else return 1; +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/no-pragma-warning.patch b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/no-pragma-warning.patch new file mode 100644 index 0000000000000000000000000000000000000000..1dc7c06874a9fcbde939a75a7a56493e156d2f8f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/no-pragma-warning.patch @@ -0,0 +1,14 @@ +diff --git a/alac.c b/alac.c +index b829e29..8e8805f 100644 +--- a/alac.c ++++ b/alac.c +@@ -284,7 +284,9 @@ static int count_leading_zeros(int input) + return output; + } + #else ++#if !defined(_MSC_VER) + #warning using generic count leading zeroes. You may wish to write one for your CPU / compiler ++#endif + static int count_leading_zeros(int input) + { + int output = 0; diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..9792d5a6b74beee3b26f6501ea02ea4dcb89f1ed --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "alac-decoder", + "version": "0.2", + "port-version": 7, + "description": "ALAC C implementation of a decoder, written from reverse engineering the file format", + "homepage": "https://distfiles.macports.org/alac_decoder", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-assign/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/boost-assign/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..55d0ce710c6cb4b552cec448cc3b298b6c973dde --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-assign/portfile.cmake @@ -0,0 +1,12 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/assign + REF boost-${VERSION} + SHA512 e6887a3000b356b3c343d4a14c63757870493c264eff22a2c00f3c8c3dec30891dec336dce6121497e97146e5ece404f7dc2088715bf9fc7704b3d4aae44c598 + 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-assign/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/boost-assign/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..506a54c98016b0681befe20512624c7f046c7cc1 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-assign/vcpkg.json @@ -0,0 +1,58 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-assign", + "version": "1.84.0", + "description": "Boost assign module", + "homepage": "https://github.com/boostorg/assign", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-array", + "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-preprocessor", + "version>=": "1.84.0" + }, + { + "name": "boost-ptr-container", + "version>=": "1.84.0" + }, + { + "name": "boost-range", + "version>=": "1.84.0" + }, + { + "name": "boost-static-assert", + "version>=": "1.84.0" + }, + { + "name": "boost-throw-exception", + "version>=": "1.84.0" + }, + { + "name": "boost-tuple", + "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-interval/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/boost-interval/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..59293879a884aade8ed62e5b843919b77499593a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-interval/portfile.cmake @@ -0,0 +1,12 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/interval + REF boost-${VERSION} + SHA512 5940cccab41e298e3eb442940f6dfccf00a89bdc5f9c9540eb530a8bfe5f19f06b3bcb2efaa81530e6712515946adc8a2854e28e0d395cd201e99b1068cd2511 + 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-interval/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/boost-interval/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..44cbd02933ba6a63476208cf47e71080dcb8c0fd --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-interval/vcpkg.json @@ -0,0 +1,26 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-interval", + "version": "1.84.0", + "description": "Boost interval module", + "homepage": "https://github.com/boostorg/interval", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-config", + "version>=": "1.84.0" + }, + { + "name": "boost-detail", + "version>=": "1.84.0" + }, + { + "name": "boost-logic", + "version>=": "1.84.0" + }, + { + "name": "boost-vcpkg-helpers", + "version>=": "1.84.0" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/boost-io/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/boost-io/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..6063b1f392c1a300af18190515ce2a02fe01f437 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-io/portfile.cmake @@ -0,0 +1,12 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/io + REF boost-${VERSION} + SHA512 1297ead38cde0c8859a43270dbb6d4e47050350fc22a3152b7f0b2f488ac3ed841f9ebb0f6c8ba40c56a93a700d5bb4656f9498dd9153040385509493e5dd9b9 + 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-io/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/boost-io/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..f750d446570646629f2c6ff0981e6348704170a7 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-io/vcpkg.json @@ -0,0 +1,18 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-io", + "version": "1.84.0", + "description": "Boost io module", + "homepage": "https://github.com/boostorg/io", + "license": "BSL-1.0", + "dependencies": [ + { + "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/boost-redis/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/boost-redis/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..2f6c54a38b30b0cffe70156041b5af16dff20488 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-redis/portfile.cmake @@ -0,0 +1,12 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/redis + REF boost-${VERSION} + SHA512 f402f177ff0611655d44288c8cad08654db8d233e0f43baaf514c3d60438e5bb4a44a2dbf2ada0914123d09d591e703d6d9f00e409ae4dd01eeaf3d92cd5df17 + 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-redis/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/boost-redis/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..4aa2104d52ecb16069e1fd8d2bb2d4279d3a0a86 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/boost-redis/vcpkg.json @@ -0,0 +1,42 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-redis", + "version": "1.84.0", + "description": "Boost redis module", + "homepage": "https://github.com/boostorg/redis", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-asio", + "version>=": "1.84.0" + }, + { + "name": "boost-assert", + "version>=": "1.84.0" + }, + { + "name": "boost-config", + "version>=": "1.84.0" + }, + { + "name": "boost-core", + "version>=": "1.84.0" + }, + { + "name": "boost-mp11", + "version>=": "1.84.0" + }, + { + "name": "boost-system", + "version>=": "1.84.0" + }, + { + "name": "boost-throw-exception", + "version>=": "1.84.0" + }, + { + "name": "boost-vcpkg-helpers", + "version>=": "1.84.0" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..fd198f39aaae5f6dd8a9873dcfcdb21bf71f28f9 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO tmaklin/bxzstr + REF "v${VERSION}" + SHA512 e357eb99b007031a1b15b20077883ebb20b294fda97d4aa354ded04c8d0b398fdeae9e1e97747caf55699a8feadf8c10eb807a9c6a66837a0816002df34fb7a1 + HEAD_REF master +) + +file(INSTALL + "${SOURCE_PATH}/include/bxzstr.hpp" + "${SOURCE_PATH}/include/bz_stream_wrapper.hpp" + "${SOURCE_PATH}/include/compression_types.hpp" + "${SOURCE_PATH}/include/config.hpp" + "${SOURCE_PATH}/include/lzma_stream_wrapper.hpp" + "${SOURCE_PATH}/include/stream_wrapper.hpp" + "${SOURCE_PATH}/include/strict_fstream.hpp" + "${SOURCE_PATH}/include/z_stream_wrapper.hpp" + "${SOURCE_PATH}/include/zstd_stream_wrapper.hpp" + DESTINATION "${CURRENT_PACKAGES_DIR}/include/bxzstr") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cjson/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/cjson/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..fdfbb94cc388d2f7d0a768d952f6091f5ac152da --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cjson/portfile.cmake @@ -0,0 +1,61 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO DaveGamble/cJSON + REF "v${VERSION}" + SHA512 4feebafa5225297fa3e6a7bf23f8d31b5c3e172f437078c5a07528522ad58ca2e9c72dd9e8611241d2b8321e9aa0a1a9af7743689d1c2001d1d9cb624aae6fa8 + HEAD_REF master +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + utils ENABLE_CJSON_UTILS +) + +if(CMAKE_HOST_WIN32) + string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_PUBLIC_SYMBOLS) + string(COMPARE NOTEQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DENABLE_HIDDEN_SYMBOLS) +else() + set(ENABLE_PUBLIC_SYMBOLS OFF) + set(DENABLE_HIDDEN_SYMBOLS OFF) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_SHARED_AND_STATIC_LIBS=OFF + -DCJSON_OVERRIDE_BUILD_SHARED_LIBS=OFF + -DENABLE_PUBLIC_SYMBOLS=${ENABLE_PUBLIC_SYMBOLS} + -DENABLE_HIDDEN_SYMBOLS=${DENABLE_HIDDEN_SYMBOLS} + -DENABLE_TARGET_EXPORT=ON # Export CMake config files + -DENABLE_CJSON_TEST=OFF + -DENABLE_CUSTOM_COMPILER_FLAGS=OFF + -DENABLE_FUZZING=OFF + ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() + +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cJSON) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +file(READ "${CURRENT_PACKAGES_DIR}/include/cjson/cJSON.h" _contents) +if(ENABLE_PUBLIC_SYMBOLS) + string(REPLACE "defined(CJSON_HIDE_SYMBOLS)" "0 /* defined(CJSON_HIDE_SYMBOLS) */" _contents "${_contents}") + string(REPLACE "defined(CJSON_EXPORT_SYMBOLS)" "0 /* defined(CJSON_EXPORT_SYMBOLS) */" _contents "${_contents}") + string(REPLACE "defined(CJSON_IMPORT_SYMBOLS)" "1 /* defined(CJSON_IMPORT_SYMBOLS) */" _contents "${_contents}") +else() + string(REPLACE "defined(CJSON_HIDE_SYMBOLS)" "1 /* defined(CJSON_HIDE_SYMBOLS) */" _contents "${_contents}") +endif() +file(WRITE "${CURRENT_PACKAGES_DIR}/include/cjson/cJSON.h" "${_contents}") + +# Handle copyright +configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY) + +vcpkg_fixup_pkgconfig() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/cjson/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/cjson/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..5031eb62a2aa6d9232943d386feed317e92e3208 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/cjson/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "cjson", + "version": "1.7.17", + "description": "Ultralightweight JSON parser in ANSI C", + "homepage": "https://github.com/DaveGamble/cJSON", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "utils": { + "description": "Enable building the cJSON_Utils library" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..99de8417827f8178e95f898498233ec82ca585c3 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.5) +project(concurrentqueue C) + +add_library(concurrentqueue INTERFACE) + +target_include_directories(concurrentqueue INTERFACE $ $) + +install(TARGETS concurrentqueue + EXPORT concurrentqueue +) +install(EXPORT concurrentqueue FILE unofficial-concurrentqueue-targets.cmake NAMESPACE unofficial::concurrentqueue:: DESTINATION share/unofficial-concurrentqueue) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..17f4190721f3ba79d07b5f93f5cf3d2e889c4f01 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/portfile.cmake @@ -0,0 +1,31 @@ +# header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cameron314/concurrentqueue + REF v${VERSION} + SHA512 a27306d1a7ad725daf5155a8e33a93efd29839708b2147ba703d036c4a92e04cbd8a505d804d2596ccb4dd797e88aca030b1cb34a4eaf09c45abb0ab55e604ea + HEAD_REF master +) + +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(PACKAGE_NAME unofficial-concurrentqueue) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +configure_file( + "${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-config.in.cmake" + "${CURRENT_PACKAGES_DIR}/share/unofficial-concurrentqueue/unofficial-concurrentqueue-config.cmake" + @ONLY +) + +file(GLOB HEADER_FILES "${SOURCE_PATH}/*.h") +file(INSTALL ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/unofficial-concurrentqueue-config.in.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/unofficial-concurrentqueue-config.in.cmake new file mode 100644 index 0000000000000000000000000000000000000000..c3639637a896bee9f8ba377b9841694d9bd43f15 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/unofficial-concurrentqueue-config.in.cmake @@ -0,0 +1,6 @@ +if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT WIN32) + include(CMakeFindDependencyMacro) + find_dependency(Threads) +endif() + +include(${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-targets.cmake) \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..3572aede27cbeec415cb83bce98552922efc2963 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "concurrentqueue", + "version": "1.0.4", + "description": "A fast multi-producer, multi-consumer lock-free concurrent queue for C++11", + "homepage": "https://github.com/cameron314/concurrentqueue", + "license": "BSD-2-Clause OR BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-visibility.patch b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-visibility.patch new file mode 100644 index 0000000000000000000000000000000000000000..f4c808fac5a146bddc225e9c2eb79098bfd4ce74 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-visibility.patch @@ -0,0 +1,12 @@ +diff --git a/include/fmt/core.h b/include/fmt/core.h +index b51c1406..bb139509 100644 +--- a/include/fmt/core.h ++++ b/include/fmt/core.h +@@ -2306,6 +2306,7 @@ enum class state { start, align, sign, hash, zero, width, precision, locale }; + + // Parses standard format specifiers. + template ++FMT_VISIBILITY("hidden") // Suppress an ld warning on macOS (#3769). + FMT_CONSTEXPR FMT_INLINE auto parse_format_specs( + const Char* begin, const Char* end, dynamic_format_specs& specs, + basic_format_parse_context& ctx, type arg_type) -> const Char* { diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-write-batch.patch b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-write-batch.patch new file mode 100644 index 0000000000000000000000000000000000000000..6bec3b8e4b694711521d36fe38f80ed74f54744a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-write-batch.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 88c12148..967b53dd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -260,7 +260,7 @@ if (FMT_MASTER_PROJECT AND CMAKE_GENERATOR MATCHES "Visual Studio") + join(netfxpath + "C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\" + ".NETFramework\\v4.0") +- file(WRITE run-msbuild.bat " ++ file(WRITE "${CMAKE_BINARY_DIR}/run-msbuild.bat" " + ${MSBUILD_SETUP} + ${CMAKE_MAKE_PROGRAM} -p:FrameworkPathOverride=\"${netfxpath}\" %*") + endif () diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fmt/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..cdc1487951316660fa1dce246b97176264951105 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/portfile.cmake @@ -0,0 +1,38 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO fmtlib/fmt + REF "${VERSION}" + SHA512 27df90c681ec37e55625062a79e3b83589b6d7e94eff37a3b412bb8c1473f757a8adb727603acc9185c3490628269216843b7d7bd5a3cb37f0029da5d1495ffa + HEAD_REF master + PATCHES + fix-visibility.patch + fix-write-batch.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DFMT_CMAKE_DIR=share/fmt + -DFMT_TEST=OFF + -DFMT_DOC=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) + vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/fmt/core.h + "defined(FMT_SHARED)" + "1" + ) +endif() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fmt/usage b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/usage new file mode 100644 index 0000000000000000000000000000000000000000..e5a9d70480699d79085ffe83e56da11c11e8c933 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/usage @@ -0,0 +1,8 @@ +The package fmt provides CMake targets: + + find_package(fmt CONFIG REQUIRED) + target_link_libraries(main PRIVATE fmt::fmt) + + # Or use the header-only version + find_package(fmt CONFIG REQUIRED) + target_link_libraries(main PRIVATE fmt::fmt-header-only) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fmt/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..63389c0139148f3ec5236efaf88384ccfe78d8c0 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fmt/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "fmt", + "version": "10.2.1", + "port-version": 1, + "description": "Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.", + "homepage": "https://github.com/fmtlib/fmt", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/dynamic_bzip2.patch b/cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/dynamic_bzip2.patch new file mode 100644 index 0000000000000000000000000000000000000000..e2bf953852fd1d5e48d154263009d70861318ef5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/dynamic_bzip2.patch @@ -0,0 +1,20 @@ +From: Josue Andrade Gomes +Date: Tue, 18 Apr 2017 09:56:53 -0300 +Subject: [PATCH] dynamic bzip2 only if dynamic gm + +--- + +diff -ur a/magick/nt_base.h b/magick/nt_base.h +--- a/magick/nt_base.h Mon May 30 14:19:55 2016 ++++ b/magick/nt_base.h Mon Apr 17 15:10:01 2017 +@@ -275,7 +275,9 @@ + */ + #if defined(HasBZLIB) + # if defined(_WIN32) +-# define BZ_IMPORT 1 ++# if defined(_DLL) // For vcpkg. Building GM DLL requires BZIP2 DLL too, otherwise static ++# define BZ_IMPORT 1 ++# endif + # endif + #endif /* defined(HasBZLIB) */ + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..f63b32f9fa091ee64f9864577a7b0f24fcfc7047 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/portfile.cmake @@ -0,0 +1,46 @@ +set(GM_VERSION 1.3.41) + +vcpkg_from_sourceforge( + OUT_SOURCE_PATH SOURCE_PATH + REPO graphicsmagick/graphicsmagick + REF ${GM_VERSION} + FILENAME "GraphicsMagick-${GM_VERSION}-windows.7z" + SHA512 4790081136af67bf406b94e3de88feff295cc98fd3b125776e014436b12dbb31331af4ee4f8497ccc39d4afda08145b5e4bfeb45b3210a50e17b14e4dc2a220d + PATCHES + # GM always requires a dynamic BZIP2. This patch makes this dependent if _DLL is defined + dynamic_bzip2.patch + + # Bake GM's own modules into the .dll itself. This fixes a bug whereby + # 'vcpkg install graphicsmagick' did not lead to a copy of GM that could + # load either PNG or JPEG files (due to missing GM Modules, with names + # matching "IM_*.DLL"). + disable_graphicsmagick_modules.patch +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") +file(COPY "${CMAKE_CURRENT_LIST_DIR}/magick_types.h" DESTINATION "${SOURCE_PATH}/magick") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS_DEBUG + -DINSTALL_HEADERS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-graphicsmagick) + +# copy license +file(INSTALL "${SOURCE_PATH}/Copyright.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) + +# copy config +file(COPY "${SOURCE_PATH}/config/colors.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config") +file(COPY "${SOURCE_PATH}/config/log.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config") +file(COPY "${SOURCE_PATH}/config/modules.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config") + +file(READ "${SOURCE_PATH}/config/type-windows.mgk.in" TYPE_MGK) +string(REPLACE "@windows_font_dir@" "$ENV{SYSTEMROOT}/Fonts/" TYPE_MGK "${TYPE_MGK}") +file(WRITE "${CURRENT_PACKAGES_DIR}/share/graphicsmagick/config/type.mgk" "${TYPE_MGK}") + +configure_file("${SOURCE_PATH}/config/delegates.mgk.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/config/delegates.mgk" @ONLY) +vcpkg_copy_pdbs() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/hashids/hashids.patch b/cc-multilingual-main/cc_net/vcpkg/ports/hashids/hashids.patch new file mode 100644 index 0000000000000000000000000000000000000000..e6877fa4d4a0bbe8d6d40cded0e3bd96ded14925 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/hashids/hashids.patch @@ -0,0 +1,18 @@ +diff --git a/src/hashids.c b/src/hashids.c +index 7f0b2f3..8d68509 100644 +--- a/src/hashids.c ++++ b/src/hashids.c +@@ -6,6 +6,13 @@ + + #include "hashids.h" + ++#ifdef _MSC_VER ++#include ++typedef SSIZE_T ssize_t; ++#else ++#include ++#endif ++ + /* branch prediction hinting */ + #ifndef __has_builtin + # define __has_builtin(x) (0) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/hashids/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/hashids/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..ebe0125190a7dbd9d396e4055ed35ca94782ab6b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/hashids/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO tzvetkoff/hashids.c + REF 11ea51510ba968438eb9b1bc3f8c9981be731521 # v1.2.1 + SHA512 a6c066ff6544502f1c0ed55afcf994e6ed52b207e428de58992ec9e3ffef1e6fdb4439f2565e7cb039065403f497fcf8e95a8e3b9843e4f0b9bef22853816270 + HEAD_REF master + PATCHES + hashids.patch +) + +set(EXTRA_OPTS "") +if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) + # $LIBS is an environment variable that vcpkg already pre-populated with some libraries. + # We need to re-purpose it when passing LIBS option to make to avoid overriding the vcpkg's own list. + list(APPEND EXTRA_OPTS "LIBS=-lgetopt \$LIBS") +endif() + +vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + AUTOCONFIG + OPTIONS + ${EXTRA_OPTS} +) + +vcpkg_install_make() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/hashids" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/hashids/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/hashids/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..9be115cd2b479ca88f3f7b1f952bac5d50d7ff1e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/hashids/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "hashids", + "version": "1.2.1", + "description": "generate short unique ids from integers", + "homepage": "https://hashids.org/c/", + "license": "MIT", + "dependencies": [ + { + "name": "getopt", + "platform": "windows & !mingw" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..e257f7637dae069b59316a69fef75eb58d116a3d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO open-source-parsers/jsoncpp + REF "${VERSION}" + SHA512 1d06e044759b1e1a4cc4960189dd7e001a0a4389d7239a6d59295af995a553518e4e0337b4b4b817e70da5d9731a4c98655af90791b6287870b5ff8d73ad8873 + HEAD_REF master +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" JSONCPP_STATIC) +string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DJSONCPP_WITH_CMAKE_PACKAGE=ON + -DBUILD_STATIC_LIBS=${JSONCPP_STATIC} + -DJSONCPP_STATIC_WINDOWS_RUNTIME=${STATIC_CRT} + -DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON + -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF + -DJSONCPP_WITH_TESTS=OFF + -DJSONCPP_WITH_EXAMPLE=OFF + -DBUILD_OBJECT_LIBS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/jsoncpp) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..fc31291aeea502dd3660b1f85a10de2603f5d641 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "jsoncpp", + "version": "1.9.5", + "port-version": 2, + "description": "jsoncpp is an implementation of a JSON reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format that it is easy to parse and redeable for human.", + "homepage": "https://github.com/open-source-parsers/jsoncpp", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..f3a9b1c55dd8a1cfd9b7343300a60a7208a98d75 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/portfile.cmake @@ -0,0 +1,15 @@ +# header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KDAB/KDAlgorithms + REF ${VERSION} + SHA512 2229712954c377e9167b78fc931988f33c82349baeae9a64e3506f66fd96508e8482ce777c4ef8928c2ab38cbeffc413e96c75a9f41902080230f8c434782232 +) + +file(INSTALL "${SOURCE_PATH}/src/kdalgorithms.h" "${SOURCE_PATH}/src/kdalgorithms_bits" + DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/usage b/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/usage new file mode 100644 index 0000000000000000000000000000000000000000..11c4103cee28dc5037015537b89a8f29e63c2f61 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/usage @@ -0,0 +1,4 @@ +kdalgorithms is header-only and can be used from CMake via: + + find_path(KDALGORITHMS_INCLUDE_DIRS "kdalgorithms.h" PATH_SUFFIXES kdalgorithms) + target_include_directories(main PRIVATE ${KDALGORITHMS_INCLUDE_DIRS}) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..abcbff625fcc5aa117f44502dc7769baaaa1339d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "kdalgorithms", + "version": "1.2", + "description": "KDAB's algorithm helpers for C++14 and up", + "homepage": "https://github.com/KDAB/KDAlgorithms", + "license": "MIT" +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lager/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/lager/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..7c55973bdac7e67e061e4765dd3a3266776bb6c2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lager/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO arximboldi/lager + REF 2016df38be90ee176bcb73ea414be2318bc1ef31 + SHA512 07d9f2cf128ad2e751abbfaa03969524ffba785ac2696e6b94ee8e28166fc3ab427de2fc6a98eba50d2f936879b9e878a011c3ba9a25ba39109e7939d39c4902 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + docs lager_BUILD_DOCS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dlager_BUILD_EXAMPLES=OFF + -Dlager_BUILD_TESTS=OFF + ${FEATURE_OPTIONS} +) + + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Lager) + +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/lager/resources_path.hpp" "${CURRENT_PACKAGES_DIR}" ".") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lager/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/lager/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..112af4136535456d6837b73253baf3cb81f9e6a9 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lager/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "lager", + "version-date": "2023-03-19", + "description": "C++ library for value-oriented design using the unidirectional data-flow architecture", + "homepage": "https://sinusoid.es/lager/", + "dependencies": [ + "boost-hana", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zug" + ], + "features": { + "docs": { + "description": "Build documentation" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/cmake-config.patch b/cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/cmake-config.patch new file mode 100644 index 0000000000000000000000000000000000000000..b2c656aa88e703b980fdd05e94cd72a72de7e079 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/cmake-config.patch @@ -0,0 +1,21 @@ +diff --git a/CMAKE/lapack-config-install.cmake.in b/CMAKE/lapack-config-install.cmake.in +index 7760960..102eb92 100644 +--- a/CMAKE/lapack-config-install.cmake.in ++++ b/CMAKE/lapack-config-install.cmake.in +@@ -12,8 +12,14 @@ unset(_LAPACK_TARGET) + set(LAPACK_Fortran_COMPILER_ID "@CMAKE_Fortran_COMPILER_ID@") + + # Report the blas and lapack raw or imported libraries. +-set(LAPACK_blas_LIBRARIES "@BLAS_LIBRARIES@") ++if("@USE_OPTIMIZED_BLAS@") ++ include(CMakeFindDependencyMacro) ++ find_dependency(BLAS) # For current build type ++ set(LAPACK_blas_LIBRARIES "${BLAS_LIBRARIES}") ++else() ++ set(LAPACK_blas_LIBRARIES "@BLASLIB@") # target carries link libraries ++endif() + set(LAPACK_lapack_LIBRARIES "@LAPACK_LIBRARIES@") +-set(LAPACK_LIBRARIES ${LAPACK_blas_LIBRARIES} ${LAPACK_lapack_LIBRARIES}) ++set(LAPACK_LIBRARIES ${LAPACK_lapack_LIBRARIES}) # target carries link libraries + + unset(_LAPACK_SELF_DIR) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libbson/fix-include-directory.patch b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/fix-include-directory.patch new file mode 100644 index 0000000000000000000000000000000000000000..398644f90ccdab823a09a43a920938cf83ab3e41 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/fix-include-directory.patch @@ -0,0 +1,13 @@ +diff --git a/src/libbson/CMakeLists.txt b/src/libbson/CMakeLists.txt +index e3eaca4..ef3644b 100644 +--- a/src/libbson/CMakeLists.txt ++++ b/src/libbson/CMakeLists.txt +@@ -302,7 +302,7 @@ endif () # ENABLE_EXAMPLES + # 8888888 888 888 88888P' "Y888 "Y888888 888 888 + + set (BSON_HEADER_INSTALL_DIR +- "${CMAKE_INSTALL_INCLUDEDIR}/libbson-${BSON_API_VERSION}" ++ "${CMAKE_INSTALL_INCLUDEDIR}" + ) + function(install_export_target target) + # Tell pkg-config where the headers are going: diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libbson/libbson-1.0-config.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/libbson-1.0-config.cmake new file mode 100644 index 0000000000000000000000000000000000000000..c4df73db09edf186759d967eb46a2afa228e83e8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/libbson-1.0-config.cmake @@ -0,0 +1,5 @@ +include(CMakeFindDependencyMacro) +find_dependency(libbson-static-1.0 ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} CONFIG) +set(BSON_DEFINITIONS "${BSON_STATIC_DEFINITIONS}") +set(BSON_INCLUDE_DIRS "${BSON_STATIC_INCLUDE_DIRS}") +set(BSON_LIBRARIES "${BSON_STATIC_LIBRARIES}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libbson/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..7ddb98203bf524e5890103591f792cb5d7beaf1f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/portfile.cmake @@ -0,0 +1,73 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mongodb/mongo-c-driver + REF "${VERSION}" + SHA512 ef55fadf66a28a7e9dd513ce9cd36fc91898775d5d20903193b1f321f7814129b1d56c980cfc81cf348830d7bbfde81885585fbcf498ead287675b67c91d470d + HEAD_REF master + PATCHES + fix-include-directory.patch # vcpkg legacy decision +) +file(WRITE "${SOURCE_PATH}/VERSION_CURRENT" "${VERSION}") + +# Cannot use string(COMPARE EQUAL ...) +set(ENABLE_STATIC OFF) +set(ENABLE_SHARED OFF) +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + set(ENABLE_STATIC ON) +else() + set(ENABLE_SHARED ON) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_PARALLEL_CONFIGURE # because it writes the file VERSION_CURRENT in the source directory + OPTIONS + "-DBUILD_VERSION=${VERSION}" + -DENABLE_BSON=ON + -DENABLE_EXAMPLES=OFF + -DENABLE_ICU=OFF + -DENABLE_MONGOC=OFF + -DENABLE_SASL=OFF + -DENABLE_SNAPPY=OFF + -DENABLE_SRV=OFF + -DENABLE_SSL=OFF + -DENABLE_STATIC=${ENABLE_STATIC} + -DENABLE_SHARED=${ENABLE_SHARED} + -DENABLE_TESTS=OFF + -DENABLE_UNINSTALL=OFF + -DENABLE_ZLIB=SYSTEM + -DENABLE_ZSTD=OFF + -DCMAKE_DISABLE_FIND_PACKAGE_Python=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Python3=ON + MAYBE_UNUSED_VARIABLES + ENABLE_ICU +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +vcpkg_cmake_config_fixup(PACKAGE_NAME bson-1.0 CONFIG_PATH "lib/cmake/bson-1.0" DO_NOT_DELETE_PARENT_CONFIG_PATH) +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/bson/bson-macros.h" + "#define BSON_MACROS_H" "#define BSON_MACROS_H\n#ifndef BSON_STATIC\n#define BSON_STATIC\n#endif") + vcpkg_cmake_config_fixup(PACKAGE_NAME libbson-static-1.0 CONFIG_PATH "lib/cmake/libbson-static-1.0") + file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/libbson-1.0") + file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/libbson-1.0-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libbson-1.0") +else() + vcpkg_cmake_config_fixup(PACKAGE_NAME libbson-1.0 CONFIG_PATH "lib/cmake/libbson-1.0") +endif() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" + "${CURRENT_PACKAGES_DIR}/share/mongo-c-driver" +) + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +vcpkg_install_copyright( + FILE_LIST + "${SOURCE_PATH}/COPYING" + "${SOURCE_PATH}/THIRD_PARTY_NOTICES" + "${SOURCE_PATH}/src/libbson/THIRD_PARTY_NOTICES" +) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libbson/usage b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/usage new file mode 100644 index 0000000000000000000000000000000000000000..6af2617d0b0ba9727141148587781e3ce0bff40a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/usage @@ -0,0 +1,4 @@ +libbson provides CMake targets: + + find_package(bson-1.0 CONFIG REQUIRED) + target_link_libraries(main PRIVATE $,mongo::bson_static,mongo::bson_shared>) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libbson/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..d8c03bb7fb4f25796cb685b73d02fe9c9ddfb06e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libbson/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "libbson", + "version": "1.26.1", + "description": "libbson is a library providing useful routines related to building, parsing, and iterating BSON documents.", + "homepage": "https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson", + "license": null, + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..1388328a188eef823b930c772c051b043a482458 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/CMakeLists.txt @@ -0,0 +1,72 @@ +cmake_minimum_required(VERSION 3.27) + +project(lmdb) + +option(LMDB_BUILD_TOOLS "Build lmdb tools" OFF) +option(LMDB_BUILD_TESTS "Build lmdb tests" OFF) +option(LMDB_INSTALL_HEADERS "Install LMDB header files" ON) + +include(GNUInstallDirs) + +add_library(lmdb mdb.c lmdb.h midl.c midl.h) +if(WIN32 AND BUILD_SHARED_LIBS) + target_sources(lmdb PRIVATE lmdb.def) +endif() + +set(THREADS_PREFER_PTHREAD_FLAG 1) +find_package(Threads REQUIRED) +target_link_libraries(lmdb PRIVATE Threads::Threads) + +install(TARGETS lmdb + EXPORT unofficial-lmdb-targets + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" +) + +if(LMDB_INSTALL_HEADERS) + install(FILES lmdb.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") +endif() +target_include_directories(lmdb INTERFACE "$") + +include(CMakePackageConfigHelpers) +configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/package-config.cmakein" "${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config.cmake" + INSTALL_DESTINATION "${CMAKE_INSTALL_DATADIR}/lmdb" +) +write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config-version.cmake" + VERSION "${LMDB_VERSION}" + COMPATIBILITY SameMajorVersion +) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config-version.cmake" + DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-lmdb" +) +install(EXPORT unofficial-lmdb-targets + NAMESPACE unofficial::lmdb:: + DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-lmdb" +) + +if(LMDB_BUILD_TOOLS) + set(getopt_libs "") + if(WIN32 AND NOT MINGW) + find_package(unofficial-getopt-win32 REQUIRED) + set(getopt_libs "unofficial::getopt-win32::getopt") + endif() + foreach(tool IN ITEMS mdb_copy mdb_dump mdb_load mdb_stat) + add_executable(${tool} ${tool}.c) + target_link_libraries(${tool} lmdb ${getopt_libs}) + install(TARGETS ${tool} + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" + ) + endforeach() +endif() + +if(LMDB_BUILD_TESTS) + enable_testing() + # mtest6 needs more symbols than provided by some builds of lmdb + foreach(test IN ITEMS mtest mtest2 mtest3 mtest4 mtest5) + add_executable(${test} ${test}.c) + target_link_libraries(${test} lmdb) + add_test(NAME ${test} + COMMAND "${CMAKE_COMMAND}" "-DTEST=$ + #include + #include ++#ifdef _MSC_VER ++#include ++#else + #include ++#endif + #include + #include "lmdb.h" + +diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c +index d2a3cec..f050286 100644 +--- a/libraries/liblmdb/mdb_load.c ++++ b/libraries/liblmdb/mdb_load.c +@@ -16,7 +16,11 @@ + #include + #include + #include ++#ifdef _MSC_VER ++#include ++#else + #include ++#endif + #include "lmdb.h" + + #define PRINT 1 +diff --git a/libraries/liblmdb/mdb_stat.c b/libraries/liblmdb/mdb_stat.c +index 3a81175..f1f4a75 100644 +--- a/libraries/liblmdb/mdb_stat.c ++++ b/libraries/liblmdb/mdb_stat.c +@@ -14,7 +14,13 @@ + #include + #include + #include ++#ifdef _MSC_VER ++#include ++#include ++typedef SSIZE_T ssize_t; ++#else + #include ++#endif + #include "lmdb.h" + + #ifdef _WIN32 diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/lmdb-config.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/lmdb-config.cmake new file mode 100644 index 0000000000000000000000000000000000000000..50b92707f12242f21bab133379c57e9ed1f6b028 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/lmdb-config.cmake @@ -0,0 +1,14 @@ +file(READ "${CMAKE_CURRENT_LIST_DIR}/../lmdb/usage" usage) +message(WARNING "find_package(lmdb) is deprecated.\n${usage}") + +include(CMakeFindDependencyMacro) +find_dependency(unofficial-lmdb ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION}) + +set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include") +set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}") +set(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES lmdb) + +string(TOUPPER "${CMAKE_FIND_PACKAGE_NAME}" UPPER_PACKAGE_NAME) +set(${UPPER_PACKAGE_NAME}_INCLUDE_DIR "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}") +set(${UPPER_PACKAGE_NAME}_INCLUDE_DIRS "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}") +set(${UPPER_PACKAGE_NAME}_LIBRARIES lmdb) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..2e32aca98934be7a6fb9b3af9ff108b3e60fb00f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/portfile.cmake @@ -0,0 +1,43 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO LMDB/lmdb + REF "LMDB_${VERSION}" + SHA512 a5763ff94af0b5bbc2406c52890797e6232e77593bacdb240441ed30c8634e4e6de6eba206880475544e21561ccd0be2dee16733d6ec35483eb1dbbb81913a8d + HEAD_REF master + PATCHES + getopt-win32.diff +) +file(COPY "${CMAKE_CURRENT_LIST_DIR}/cmake/" DESTINATION "${SOURCE_PATH}/libraries/liblmdb") + +vcpkg_check_features(OUT_FEATURE_OPTIONS options_release + FEATURES + tools LMDB_BUILD_TOOLS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/libraries/liblmdb" + OPTIONS + "-DLMDB_VERSION=${VERSION}" + OPTIONS_RELEASE + ${options_release} + OPTIONS_DEBUG + -DLMDB_INSTALL_HEADERS=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-lmdb) + +if(LMDB_BUILD_TOOLS) + vcpkg_copy_tools(TOOL_NAMES mdb_copy mdb_dump mdb_load mdb_stat AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(COPY "${CURRENT_PORT_DIR}/lmdb-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright( + FILE_LIST + "${SOURCE_PATH}/libraries/liblmdb/COPYRIGHT" + "${SOURCE_PATH}/libraries/liblmdb/LICENSE" +) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/usage b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/usage new file mode 100644 index 0000000000000000000000000000000000000000..ef273ae521f37e350cc093a99c34135239f88cdf --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/usage @@ -0,0 +1,4 @@ +lmdb provides CMake targets: + + find_package(unofficial-lmdb CONFIG REQUIRED) + target_link_libraries(main PRIVATE unofficial::lmdb::lmdb) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..f743855b2668964e860c253a20754f00292708a6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/lmdb/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "lmdb", + "version": "0.9.31", + "description": "LMDB is an extraordinarily fast, memory-efficient database", + "homepage": "https://github.com/LMDB/lmdb", + "license": "OLDAP-2.8", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "tools": { + "description": "Build tools", + "supports": "!uwp", + "dependencies": [ + "getopt" + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/fix-dependencies.patch b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/fix-dependencies.patch new file mode 100644 index 0000000000000000000000000000000000000000..71fcad78692c576e0631f6d4667ca1741d6b9aa4 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/fix-dependencies.patch @@ -0,0 +1,191 @@ +diff --git a/Matplot++Config.cmake.in b/Matplot++Config.cmake.in +index 5c402ad..1601015 100644 +--- a/Matplot++Config.cmake.in ++++ b/Matplot++Config.cmake.in +@@ -1,4 +1,5 @@ + @PACKAGE_INIT@ ++include(CMakeFindDependencyMacro) + + # How this Matplot++ installation was built + set(MATPLOT_BUILT_SHARED "@MATPLOTPP_BUILD_SHARED_LIBS@") +@@ -10,16 +11,44 @@ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL MATPLOT_BUILT_CXX_COMPILER_ID) + message(WARNING "This installation of Matplot++ was built with ${MATPLOT_BUILT_CXX_COMPILER_ID}.") + endif() + ++if ("@MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND@") ++ find_dependency(glad CONFIG) ++ find_dependency(glfw3 CONFIG) ++endif() ++find_dependency(nodesoup CONFIG ) ++if ("@WITH_JPEG@") ++find_dependency(JPEG) ++endif() ++ ++if ("@WITH_TIFF@") ++find_dependency(TIFF) ++endif() ++ ++if ("@WITH_ZLIB@") ++find_dependency(ZLIB) ++find_dependency(libpng CONFIG) ++endif() ++ ++if ("@WITH_LAPACK@") ++find_dependency(LAPACK) ++endif() ++ ++if ("@WITH_BLAS@") ++find_dependency(BLAS) ++endif() ++ ++if ("@WITH_FFTW3@") ++find_dependency(FFTW3 CONFIG) ++endif() ++ ++if ("@WITH_OPENCV@") ++find_dependency(OpenCV CONFIG) ++endif() ++ + # Find dependencies + if(NOT ${MATPLOT_BUILT_SHARED}) +- include(CMakeFindDependencyMacro) + list(APPEND CMAKE_MODULE_PATH ${MATPLOT_CONFIG_INSTALL_DIR}) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") +- # OpenGL backend +- if (@MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND@) +- find_dependency(glad) +- find_dependency(glfw3) +- endif() + list(POP_BACK CMAKE_MODULE_PATH) + endif() + +diff --git a/source/3rd_party/CMakeLists.txt b/source/3rd_party/CMakeLists.txt +index b5656e1..7c2d1f3 100644 +--- a/source/3rd_party/CMakeLists.txt ++++ b/source/3rd_party/CMakeLists.txt +@@ -1,6 +1,7 @@ + ####################################################### + ### NodeSoup ### + ####################################################### ++if(0) + if(WITH_SYSTEM_NODESOUP) + find_path(NODESOUP_INCLUDE_DIR nodesoup.hpp REQUIRED) + find_library(NODESOUP_LIB nodesoup REQUIRED) +@@ -46,7 +47,7 @@ if(MASTER_PROJECT AND NOT BUILD_SHARED_LIBS) + EXPORT Matplot++Targets + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/Matplot++) + endif() +- ++endif() + + ####################################################### + ### CImg ### +@@ -69,57 +70,52 @@ find_package(PkgConfig) + # Lots of optional packages are not a good idea in general. + # It makes the library much less "packagable" (https://youtu.be/sBP17HQAQjk) + # and much more difficult to make sure it works on multiple OSs +-find_package(JPEG) +-if(JPEG_FOUND) ++if(WITH_JPEG) ++ find_package(JPEG REQUIRED) + target_compile_definitions(cimg INTERFACE cimg_use_jpeg) + target_link_libraries(cimg INTERFACE ${JPEG_LIBRARIES}) + target_include_directories(cimg INTERFACE ${JPEG_INCLUDE_DIRS}) + endif() + +-find_package(TIFF) +-if(TIFF_FOUND) ++if(WITH_TIFF) ++ find_package(TIFF REQUIRED) + target_compile_definitions(cimg INTERFACE cimg_use_tiff) + target_link_libraries(cimg INTERFACE ${TIFF_LIBRARIES}) + target_include_directories(cimg INTERFACE ${TIFF_INCLUDE_DIRS}) + endif() + +-find_package(ZLIB) +-if(ZLIB_FOUND) +- find_package(PNG) +- if (PNG_FOUND) +- target_compile_definitions(cimg INTERFACE cimg_use_zlib cimg_use_png) +- target_include_directories(cimg INTERFACE ${ZLIB_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS}) +- target_link_libraries(cimg INTERFACE ${ZLIB_LIBRARIES} ${PNG_LIBRARIES}) +- endif () ++if(WITH_ZLIB) ++ find_package(ZLIB REQUIRED) ++ find_package(libpng CONFIG REQUIRED) ++ target_compile_definitions(cimg INTERFACE cimg_use_zlib cimg_use_png) ++ target_link_libraries(cimg INTERFACE ZLIB::ZLIB png) + endif() + +-find_package(LAPACK) +-if(LAPACK_FOUND) ++if(WITH_LAPACK) ++ find_package(LAPACK REQUIRED) + target_compile_definitions(cimg INTERFACE cimg_use_lapack) + target_link_libraries(cimg INTERFACE ${LAPACK_LIBRARIES}) + target_include_directories(cimg INTERFACE ${LAPACK_INCLUDE_DIRS}) + endif() + +-find_package(BLAS) +-if(BLAS_FOUND) ++if(WITH_BLAS) ++ find_package(BLAS REQUIRED) + target_compile_definitions(cimg INTERFACE cimg_use_blas) + target_link_libraries(cimg INTERFACE ${BLAS_LIBRARIES}) + target_include_directories(cimg INTERFACE ${BLAS_INCLUDE_DIRS}) + endif() + +-find_package(FFTW) +-if(FFTW_FOUND) ++if(WITH_FFTW3) ++ find_package(FFTW3 CONFIG REQUIRED) + target_compile_definitions(cimg INTERFACE cimg_use_fftw3) +- target_link_libraries(cimg INTERFACE ${FFTW_LIBRARIES}) +- target_include_directories(cimg INTERFACE ${FFTW_INCLUDE_DIRS}) ++ target_link_libraries(cimg INTERFACE FFTW3::fftw3) + endif() + + if (CMAKE_MODULE_PATH) +- find_package(OpenCV QUIET) +- if (OpenCV_FOUND) ++ if (WITH_OPENCV) ++ find_package(OpenCV CONFIG REQUIRED) + target_compile_definitions(cimg INTERFACE cimg_use_opencv) +- target_link_libraries(cimg INTERFACE ${OpenCV_LIBRARIES}) +- target_include_directories(cimg INTERFACE ${OpenCV_INCLUDE_DIRS}) ++ target_link_libraries(cimg INTERFACE opencv_core) + endif() + else() + message("No CMAKE_MODULE_PATH path for OpenCV configured") +diff --git a/source/matplot/CMakeLists.txt b/source/matplot/CMakeLists.txt +index a0428ac..b6abc8e 100644 +--- a/source/matplot/CMakeLists.txt ++++ b/source/matplot/CMakeLists.txt +@@ -112,7 +112,8 @@ target_include_directories(matplot + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/matplot/detail/exports.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/matplot/detail) + + # Dependencies +-target_link_libraries_system(matplot PRIVATE cimg nodesoup) ++find_package(nodesoup CONFIG REQUIRED) ++target_link_libraries_system(matplot PRIVATE cimg nodesoup::nodesoup) + + # Required compiler features required + # https://cmake.org/cmake/help/v3.14/manual/cmake-compile-features.7.html#requiring-language-standards +@@ -215,7 +216,7 @@ if (MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND) + find_package(OpenGL) + + # https://github.com/Dav1dde/glad +- find_package(glad CONFIG) ++ find_package(GLAD NAMES glad CONFIG REQUIRED) + if (NOT glad_FOUND) + find_package(GLAD QUIET) + endif() +@@ -238,7 +239,7 @@ if (MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND) + endif() + + # https://github.com/glfw/glfw +- find_package(glfw3 QUIET) ++ find_package(GLFW3 NAMES glfw3 CONFIG REQUIRED) + if ((NOT glfw3_FOUND AND NOT GLFW3_FOUND) OR NOT TARGET glfw) + # Use CPM only if not found, to avoid ODR violations + # find_package(glfw3 REQUIRE) would suffice if it worked well diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..dfd2f950f355d99828f5bc1f28969222bdb9660f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/portfile.cmake @@ -0,0 +1,54 @@ +message(STATUS " ${PORT}'s gnuplot backend currently requires Gnuplot 5.2.6+. + Windows users may get a pre-built binary installer from http://www.gnuplot.info/download.html. + Linux and MacOS users may install it from the system package manager. + Please visit https://alandefreitas.github.io/matplotplusplus/ for more information." +) + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO alandefreitas/matplotplusplus + REF "v${VERSION}" + SHA512 8ecb13fa206ff6762dec74c4de0778bf275e1ebf11ec1b48e8c0e544cf2990220e1be2b3bc9c658f06cb6714c9cc103fa81f10c079a32128218ebdaf265514d5 + HEAD_REF master + PATCHES + fix-dependencies.patch +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + opengl MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND + jpeg WITH_JPEG + tiff WITH_TIFF + zlib WITH_ZLIB + lapack WITH_LAPACK + blas WITH_BLAS + fftw3 WITH_FFTW3 + opencv WITH_OPENCV +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} + -DMATPLOTPP_BUILD_EXAMPLES=OFF + -DMATPLOTPP_BUILD_TESTS=OFF + -DMATPLOTPP_BUILD_INSTALLER=ON + -DMATPLOTPP_BUILD_PACKAGE=OFF + -DMATPLOTPP_BUILD_WITH_PEDANTIC_WARNINGS=OFF + -DWITH_SYSTEM_CIMG=ON + -DMATPLOTPP_BUILD_HIGH_RESOLUTION_WORLD_MAP=${BUILD_WORLD_MAP} + -DMATPLOTPP_BUILD_WITH_SANITIZERS=OFF +) + +vcpkg_cmake_install() + +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(PACKAGE_NAME matplot++ CONFIG_PATH lib/cmake/Matplot++) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/matplotplusplus/") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/usage b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/usage new file mode 100644 index 0000000000000000000000000000000000000000..75a127b3ae5dce08b1c8f8e97151419bd411ab5a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/usage @@ -0,0 +1,4 @@ +The package matplotplusplus provides CMake targets: + + find_package(Matplot++ CONFIG REQUIRED) + target_link_libraries(main PRIVATE Matplot++::cimg Matplot++::matplot) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..c60556ee1d610cf52961e0c4b5dbc7bbbab613cd --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/matplotplusplus/vcpkg.json @@ -0,0 +1,67 @@ +{ + "name": "matplotplusplus", + "version": "1.2.1", + "description": "A C++ graphics library for data visualization", + "homepage": "https://alandefreitas.github.io/matplotplusplus/", + "license": "MIT", + "supports": "!uwp & !(windows & arm)", + "dependencies": [ + "cimg", + "nodesoup", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "blas": { + "description": "BLAS support for Matplot++", + "dependencies": [ + "blas" + ] + }, + "fftw": { + "description": "fftw3 support for Matplot++", + "dependencies": [ + "fftw3" + ] + }, + "jpeg": { + "description": "JPEG support for Matplot++", + "dependencies": [ + "libjpeg-turbo" + ] + }, + "lapack": { + "description": "LAPACK support for Matplot++", + "dependencies": [ + "lapack" + ] + }, + "opencv": { + "description": "opencv support for Matplot++", + "dependencies": [ + "opencv" + ] + }, + "opengl": { + "description": "OpenGL backend for Matplot++", + "dependencies": [ + "glad", + "glfw3", + "opengl" + ] + }, + "zlib": { + "description": "ZLIB and libpng support for Matplot++", + "dependencies": [ + "libpng", + "zlib" + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/morton-nd/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/morton-nd/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..dba44d7dab8b4a9bc88e6e6d5d25f4d883500678 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/morton-nd/portfile.cmake @@ -0,0 +1,30 @@ +#header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO kevinhartman/morton-nd + REF v4.0.0 + SHA512 19dc51ae5d7fc868625a9c9f0dddec95a77fdeac714300033008f096bc3a83f146738e525e8a0ec541903263355a7fec84b1873d8eacfca4b93d3cd8945653da + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_PARALLEL_CONFIGURE + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH share/morton-nd/cmake) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" + "${CURRENT_PACKAGES_DIR}/share/doc" +) + +# Handle copyright +configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY) +file(COPY "${SOURCE_PATH}/NOTICE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/morton-nd/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/morton-nd/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..422dc9cf01ad966f99d586152b361b0d3d62897c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/morton-nd/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "morton-nd", + "version": "4.0.0", + "port-version": 3, + "description": "header-only constexpr library for fast Morton encoding/decoding in N dimensions.", + "homepage": "https://github.com/kevinhartman/morton-nd", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/mpark-variant/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/mpark-variant/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..7e6659f78fd64a03ac0ef3cc69b4a9f8730ef275 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/mpark-variant/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mpark/variant + REF v1.4.0 + SHA512 598ef21824f9cd7586f88de5a51bfe24dde4c492e8e6b8288d2912920812c48fd01c54d9683e1620cb034563c4eac737a382620e6b4af473808a2e77017a89e3 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mpark_variant PACKAGE_NAME mpark_variant) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +file(INSTALL + "${SOURCE_PATH}/LICENSE.md" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/mpark-variant/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/mpark-variant/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..06c30e54ecf47bdc4f189e15fb3729095ef621ca --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/mpark-variant/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "mpark-variant", + "version": "1.4.0", + "port-version": 3, + "description": "an implementation of C++17 std::variant for C++11/14/17.", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/fix-cmakelist-and-pb-header.patch b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/fix-cmakelist-and-pb-header.patch new file mode 100644 index 0000000000000000000000000000000000000000..366fa23205773dd322be30bb322b7a48c2e88fa2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/fix-cmakelist-and-pb-header.patch @@ -0,0 +1,49 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8d241c5..4a3d31e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -14,11 +14,6 @@ option(nanopb_BUILD_RUNTIME "Build the headers and libraries needed at runtime" + option(nanopb_BUILD_GENERATOR "Build the protoc plugin for code generation" ON) + option(nanopb_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON) + +-find_program(nanopb_PROTOC_PATH protoc HINTS generator-bin generator) +-if(NOT EXISTS ${nanopb_PROTOC_PATH}) +- message(FATAL_ERROR "protoc compiler not found") +-endif() +- + if(NOT DEFINED CMAKE_DEBUG_POSTFIX) + set(CMAKE_DEBUG_POSTFIX "d") + endif() +@@ -39,7 +34,6 @@ if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR) + set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/nanopb") + endif() + +-find_package(Python REQUIRED COMPONENTS Interpreter) + execute_process( + COMMAND ${Python_EXECUTABLE} -c + "import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.prefix))" +@@ -49,7 +43,9 @@ execute_process( + + if(nanopb_BUILD_GENERATOR) + set(generator_protos nanopb) +- ++ if(NOT DEFINED nanopb_PROTOC_PATH) ++ message(FATAL_ERROR "nanopb_PROTOC_PATH not defined") ++ endif() + foreach(generator_proto IN LISTS generator_protos) + string(REGEX REPLACE "([^;]+)" "${PROJECT_SOURCE_DIR}/generator/proto/\\1.proto" generator_proto_file "${generator_proto}") + string(REGEX REPLACE "([^;]+)" "\\1_pb2.py" generator_proto_py_file "${generator_proto}") +diff --git a/pb.h b/pb.h +index 5b3e1ef..693262b 100644 +--- a/pb.h ++++ b/pb.h +@@ -170,6 +170,9 @@ extern "C" { + # if defined(__ICCARM__) + /* IAR has static_assert keyword but no _Static_assert */ + # define PB_STATIC_ASSERT(COND,MSG) static_assert(COND,#MSG); ++# elif defined(_MSC_VER) ++ /* MSVC has static_assert keyword but no _Static_assert */ ++# define PB_STATIC_ASSERT(COND,MSG) static_assert(COND,#MSG); + # elif defined(PB_C99_STATIC_ASSERT) + /* Classic negative-size-array static assert mechanism */ + # define PB_STATIC_ASSERT(COND,MSG) typedef char PB_STATIC_ASSERT_MSG(MSG, __LINE__, __COUNTER__)[(COND)?1:-1]; diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/fix-install-location.patch b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/fix-install-location.patch new file mode 100644 index 0000000000000000000000000000000000000000..9fd1c93c4f1e4a4b1071adbffe401d8a7f79d475 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/fix-install-location.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4a3d31e..82611ef 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -58,12 +58,15 @@ if(nanopb_BUILD_GENERATOR) + install( + FILES ${PROJECT_BINARY_DIR}/${generator_proto_py_file} + ${generator_proto_file} +- DESTINATION ${PYTHON_INSTDIR}/proto/ ++ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/ + ) + endforeach() + + install( FILES generator/proto/_utils.py +- DESTINATION ${PYTHON_INSTDIR}/proto/ ) ++ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/ ) ++ ++ install( FILES generator/proto/__init__.py ++ DESTINATION ${CMAKE_INSTALL_BINDIR}/proto/ ) + endif() + + if(WIN32) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..006deb809b3f542395fa42907c688d8754b85176 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/portfile.cmake @@ -0,0 +1,58 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO nanopb/nanopb + REF 0.4.7 + SHA512 7fb46dad8a432898c8f9e7faa90a55276670dea3b13f15b68010fe126d7f6251ef5715d0dfe5bce66582e80cfdc5d4b1e7f5947e96a058fa7181f0a45da20860 + HEAD_REF master + PATCHES + fix-cmakelist-and-pb-header.patch + fix-install-location.patch +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" nanopb_BUILD_STATIC_LIBS) +string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" nanopb_STATIC_LINKING) + + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + generator nanopb_BUILD_GENERATOR +) + +vcpkg_find_acquire_program(PYTHON3) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DPython_EXECUTABLE=${PYTHON3} + -Dnanopb_BUILD_RUNTIME=ON + -DBUILD_STATIC_LIBS=${nanopb_BUILD_STATIC_LIBS} + -Dnanopb_MSVC_STATIC_RUNTIME=${nanopb_STATIC_LINKING} + -Dnanopb_PROTOC_PATH="${CURRENT_HOST_INSTALLED_DIR}/tools/protobuf/protoc${VCPKG_HOST_EXECUTABLE_SUFFIX}" + ${FEATURE_OPTIONS} + -DCMAKE_INSTALL_DATADIR=share/${PORT} +) +vcpkg_cmake_install() + +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") + +if(nanopb_BUILD_GENERATOR) + file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/nanopb_generator.py" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}") + if(WIN32) + file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/protoc-gen-nanopb.bat" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}") + file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/proto/" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/proto") + else() + file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/protoc-gen-nanopb" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}") + endif() +endif() + +if(nanopb_BUILD_STATIC_LIBS) + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() +# Handle copyright +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..f63e2203284f0ea1cac8c38c455c7a8a39c07d80 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanopb/vcpkg.json @@ -0,0 +1,29 @@ +{ + "name": "nanopb", + "version-semver": "0.4.7", + "port-version": 2, + "description": "A small code-size Protocol Buffers implementation in ANSI C.", + "homepage": "https://jpa.kapsi.fi/nanopb/", + "license": "Zlib", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "generator": { + "description": "build the generator", + "dependencies": [ + { + "name": "protobuf", + "host": true + } + ] + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/openldap/m4.patch b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/m4.patch new file mode 100644 index 0000000000000000000000000000000000000000..4df7e91a6d9623c89ff01ae8d7bb509b4ad079c8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/m4.patch @@ -0,0 +1,12 @@ +diff --git a/configure.ac b/configure.ac +index 71dd7a6..6741ec6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -38,6 +38,7 @@ m4_ifndef([PKG_PREREQ], + + AC_CONFIG_AUX_DIR(build)dnl + AC_CONFIG_MACRO_DIRS([build]) ++AC_CONFIG_MACRO_DIR([m4]) + + eval `$ac_aux_dir/version.sh` + if test -z "$OL_STRING"; then diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/openldap/openssl.patch b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/openssl.patch new file mode 100644 index 0000000000000000000000000000000000000000..d04dfe8e80b40a6134e2be9db1758a1997842558 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/openssl.patch @@ -0,0 +1,35 @@ +diff --git a/configure.ac b/configure.ac +index 626d024..e97f548 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1223,6 +1223,9 @@ fi + + ol_link_tls=no + if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then ++ PKG_CHECK_MODULES(OPENSSL, openssl >= 1.1.1, [have_openssl=yes], [AC_MSG_FAILURE([OpenSSL is required])]) ++ CFLAGS="${OPENSSL_CFLAGS} ${CFLAGS}" ++ ac_cv_lib_ssl_SSL_export_keying_material_early=yes + AC_CHECK_HEADERS(openssl/ssl.h) + + if test $ac_cv_header_openssl_ssl_h = yes ; then +@@ -1245,7 +1248,8 @@ if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then + AC_DEFINE(HAVE_OPENSSL, 1, + [define if you have OpenSSL]) + +- TLS_LIBS="-lssl -lcrypto" ++ TLS_LIBS="${OPENSSL_LIBS}" ++ AC_SUBST(TLS_MODULE, openssl, [TLS pkg-config module]) + fi + fi + fi +diff --git a/libraries/libldap/ldap.pc.in b/libraries/libldap/ldap.pc.in +index 3f7dd46..43b2e52 100644 +--- a/libraries/libldap/ldap.pc.in ++++ b/libraries/libldap/ldap.pc.in +@@ -10,4 +10,5 @@ Version: @VERSION@ + Requires: lber + Cflags: -I${includedir} + Libs: -L${libdir} -lldap +-Libs.private: @LIBS@ @SASL_LIBS@ @TLS_LIBS@ @AUTH_LIBS@ ++Libs.private: @LIBS@ @SASL_LIBS@ @AUTH_LIBS@ ++Requires.private: @TLS_MODULE@ diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/openldap/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..23656b5f762aa5cbaad128051506ecaab59a711a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/portfile.cmake @@ -0,0 +1,66 @@ +vcpkg_download_distfile(ARCHIVE + URLS "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.5.13.tgz" + FILENAME "openldap-2.5.13.tgz" + SHA512 30fdc884b513c53169910eec377c2ad05013b9f06bab3123d50d028108b24548791f7f47f18bcb3a2b4868edeab02c10d81ffa320c02d7b562f2e8f2fa25d6c9 +) + +vcpkg_list(SET EXTRA_PATCHES) + +# Check autoconf version < 2.70 +execute_process(COMMAND autoconf --version OUTPUT_VARIABLE AUTOCONF_VERSION_STR) +if(NOT "${AUTOCONF_VERSION_STR}" STREQUAL "" AND "${AUTOCONF_VERSION_STR}" MATCHES ".*2\\.[0-6].*") + vcpkg_list(APPEND EXTRA_PATCHES m4.patch) +endif() + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" + PATCHES + openssl.patch + subdirs.patch + ${EXTRA_PATCHES} +) + +vcpkg_list(SET FEATURE_OPTIONS) +if("tools" IN_LIST FEATURES) + vcpkg_list(APPEND FEATURE_OPTIONS --enable-tools) +endif() + +if("cyrus-sasl" IN_LIST FEATURES) + vcpkg_list(APPEND FEATURE_OPTIONS --with-cyrus-sasl) +else() + vcpkg_list(APPEND FEATURE_OPTIONS --without-cyrus-sasl) +endif() + +# Disable build environment details in binaries +set(ENV{SOURCE_DATE_EPOCH} "1659614616") + +vcpkg_configure_make( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_VERBOSE_FLAGS + AUTOCONFIG + OPTIONS + ${FEATURE_OPTIONS} + --disable-cleartext + --disable-mdb + --disable-relay + --disable-slapd + --disable-syncprov + --with-tls=openssl + --without-systemd + --without-fetch + --without-argon2 + ac_cv_lib_iodbc_SQLDriverConnect=no + ac_cv_lib_odbc_SQLDriverConnect=no + ac_cv_lib_odbc32_SQLDriverConnect=no +) + +vcpkg_build_make(BUILD_TARGET depend LOGFILE_ROOT depend) +vcpkg_install_make() +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/openldap/subdirs.patch b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/subdirs.patch new file mode 100644 index 0000000000000000000000000000000000000000..633a2542cb957163734936eeb4f7b25cd69ced2a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/subdirs.patch @@ -0,0 +1,34 @@ +diff --git a/Makefile.in b/Makefile.in +index 5c6bec0..c654210 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -13,7 +13,11 @@ + ## top-level directory of the distribution or, alternatively, at + ## . + +-SUBDIRS= include libraries clients servers tests doc ++ifeq ($(patsubst %/debug,DEBUG,$(prefix)),DEBUG) ++SUBDIRS= include libraries ++else ++SUBDIRS= include libraries @TOOLS_SUBDIRS@ ++endif + CLEANDIRS= + INSTALLDIRS= + +diff --git a/configure.ac b/configure.ac +index e97f548..71dd7a6 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -235,6 +235,12 @@ dnl OL_ARG_ENABLE(referrals,[AS_HELP_STRING([--enable-referrals], [enable LDAPv2 + ol_enable_referrals=${ol_enable_referrals-no} + OL_ARG_ENABLE(ipv6, [AS_HELP_STRING([--enable-ipv6], [enable IPv6 support])], auto)dnl + OL_ARG_ENABLE(local, [AS_HELP_STRING([--enable-local], [enable AF_LOCAL (AF_UNIX) socket support])], auto)dnl ++OL_ARG_ENABLE(tools, [AS_HELP_STRING([--enable-tools], [Build client tools])],no,[no yes]) ++TOOLS_SUBDIRS="" ++if test "$ol_enable_tools" = "yes" ; then ++ TOOLS_SUBDIRS="clients" ++fi ++AC_SUBST(TOOLS_SUBDIRS) + + dnl ---------------------------------------------------------------- + dnl General "with" options diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/openldap/usage b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/usage new file mode 100644 index 0000000000000000000000000000000000000000..6777fcdda3f919e84cd66ff849d3be8d32684538 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/usage @@ -0,0 +1,6 @@ +The package openldapp can be imported via CMake FindPkgConfig module: + + find_package(PkgConfig) + pkg_check_modules(OPENLDAP REQUIRED IMPORTED_TARGET ldap) + + target_link_libraries(main PRIVATE PkgConfig::OPENLDAP) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/openldap/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..9f744e3b3195c8753d7e77381cb8d11ec3c0fdd6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/openldap/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "openldap", + "version": "2.5.13", + "port-version": 1, + "description": "OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol.", + "homepage": "https://www.openldap.org/software/", + "license": "OLDAP-2.8", + "supports": "!windows, (mingw & !x86)", + "dependencies": [ + "openssl" + ], + "features": { + "cyrus-sasl": { + "description": "with Cyrus SASL support" + }, + "tools": { + "description": "Enable client tools" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/ptc-print/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/ptc-print/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1638033c7e3ae0c630a15c61f5c21602a92c8475 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/ptc-print/portfile.cmake @@ -0,0 +1,30 @@ +# header-only library + +# Github config +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO JustWhit3/ptc-print + REF v1.4.1 + SHA512 45f3008cb848f464ac0355660e7cdbd40db60338a4db5e35d29285c8c1afc0556c8dea6ac0e6939837916ec138dd8e385709d1fa89651d3404418cf3e7948fd9 + HEAD_REF master +) + +# Main commands +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DPTCPRINT_TESTS=OFF +) +vcpkg_cmake_install() + +# Move cmake configs +vcpkg_cmake_config_fixup(PACKAGE_NAME ptcprint CONFIG_PATH lib/cmake/ptcprint) + +# Remove duplicate files +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/lib" + "${CURRENT_PACKAGES_DIR}/lib" + "${CURRENT_PACKAGES_DIR}/debug") + +# Install license +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/ptc-print/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/ptc-print/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..e90efa4e3cfae4b09718ace3ba07607f8b99e2aa --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/ptc-print/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "ptc-print", + "version": "1.4.1", + "port-version": 1, + "description": "A single-header library for custom printing to the output stream.", + "homepage": "https://github.com/JustWhit3/ptc-print", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/so5extra/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/so5extra/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..fd3af730992c6a68a875397533c95423f332476a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/so5extra/portfile.cmake @@ -0,0 +1,20 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO stiffstream/so5extra + REF "v.${VERSION}" + SHA512 ec9de55671ecd0d49fce3e677e11776306ec9ea993b06d67eaa3e5505ea171085c35aedea3cf29e03958b2c73f438c5ccd95539c75b63fd89c50d6367ccda1fe +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/dev/so_5_extra" + OPTIONS + -DSO5EXTRA_INSTALL=ON +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/so5extra) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/so5extra" RENAME copyright) + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/so5extra/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/so5extra/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..5b0b7683bd32441114ce094d49f7d846eaa08f21 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/so5extra/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "so5extra", + "version": "1.6.1", + "description": "A set of additional tools for SObjectizer framework.", + "homepage": "https://github.com/Stiffstream/so5extra", + "license": "BSD-3-Clause", + "dependencies": [ + "sobjectizer", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/z85/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/z85/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..b3316ee9a63e58c1d280b4ec47c7dc2d756ddb9a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/z85/portfile.cmake @@ -0,0 +1,17 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO artemkin/z85 + REF v1.0 + SHA512 6b205524b8388c5709ca664a595a4db8fdd24148c5f87ef7ef16d6d6eb60d2c51db0b4ab768fe9ac3e5acf5e3fe1b46ef5b9f5e7f69a53fe40a7e8d25b098479 + HEAD_REF master +) + +# Install source files +file(INSTALL ${SOURCE_PATH}/src/z85.h + ${SOURCE_PATH}/src/z85.c + ${SOURCE_PATH}/src/z85.hpp + ${SOURCE_PATH}/src/z85_impl.cpp + DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT}) + +# Install license +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/z85/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/z85/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..2bf093296039c425d05c6b62c17cd41949a1670b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/z85/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "z85", + "version": "1.0", + "port-version": 2, + "description": "Z85 is a binary-to-text encoding library. It implements ZeroMQ Base-85 Encoding Algorithm and provides custom padding." +}