applied-ai-018 commited on
Commit
44ab8d8
·
verified ·
1 Parent(s): 7e86781

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/build.patch +267 -0
  2. cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/fix-dependency-clfft.patch +14 -0
  3. cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/portfile.cmake +107 -0
  4. cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/vcpkg.json +57 -0
  5. cc-multilingual-main/cc_net/vcpkg/ports/atl/portfile.cmake +10 -0
  6. cc-multilingual-main/cc_net/vcpkg/ports/atl/vcpkg.json +6 -0
  7. cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/CMakeLists.txt +100 -0
  8. cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/fix-compatibility-with-boost-1.83.patch +46 -0
  9. cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/portfile.cmake +31 -0
  10. cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/vcpkg.json +32 -0
  11. cc-multilingual-main/cc_net/vcpkg/ports/b64/CMakeLists.txt +40 -0
  12. cc-multilingual-main/cc_net/vcpkg/ports/b64/windows-fix.patch +130 -0
  13. cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/portfile.cmake +12 -0
  14. cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/vcpkg.json +46 -0
  15. cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/portfile.cmake +12 -0
  16. cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/vcpkg.json +50 -0
  17. cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/portfile.cmake +12 -0
  18. cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/vcpkg.json +22 -0
  19. cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/portfile.cmake +22 -0
  20. cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/vcpkg.json +18 -0
  21. cc-multilingual-main/cc_net/vcpkg/ports/flux/portfile.cmake +25 -0
  22. cc-multilingual-main/cc_net/vcpkg/ports/flux/targets-fixup.patch +33 -0
  23. cc-multilingual-main/cc_net/vcpkg/ports/flux/vcpkg.json +16 -0
  24. cc-multilingual-main/cc_net/vcpkg/ports/libfork/portfile.cmake +22 -0
  25. cc-multilingual-main/cc_net/vcpkg/ports/libfork/usage +4 -0
  26. cc-multilingual-main/cc_net/vcpkg/ports/libfork/vcpkg.json +19 -0
  27. cc-multilingual-main/cc_net/vcpkg/ports/libjuice/fix-for-vcpkg.patch +32 -0
  28. cc-multilingual-main/cc_net/vcpkg/ports/libjuice/portfile.cmake +36 -0
  29. cc-multilingual-main/cc_net/vcpkg/ports/libjuice/vcpkg.json +26 -0
  30. cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp.pc.in +12 -0
  31. cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp_1.5.2-13.diff +37 -0
  32. cc-multilingual-main/cc_net/vcpkg/ports/libopensp/portfile.cmake +59 -0
  33. cc-multilingual-main/cc_net/vcpkg/ports/libopensp/use-cpp-using-declarations.patch +72 -0
  34. cc-multilingual-main/cc_net/vcpkg/ports/libopensp/uwp_getenv_fix.diff +13 -0
  35. cc-multilingual-main/cc_net/vcpkg/ports/libopensp/vcpkg.json +24 -0
  36. cc-multilingual-main/cc_net/vcpkg/ports/libopensp/windows_cmake_build.diff +133 -0
  37. cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-install-py.patch +37 -0
  38. cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-module-lib-name.patch +13 -0
  39. cc-multilingual-main/cc_net/vcpkg/ports/libproxy/portfile.cmake +59 -0
  40. cc-multilingual-main/cc_net/vcpkg/ports/libproxy/support-windows.patch +41 -0
  41. cc-multilingual-main/cc_net/vcpkg/ports/libproxy/usage +5 -0
  42. cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg-cmake-wrapper.cmake +6 -0
  43. cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg.json +42 -0
  44. cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/portfile.cmake +17 -0
  45. cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/vcpkg.json +17 -0
  46. cc-multilingual-main/cc_net/vcpkg/ports/libxmp/portfile.cmake +42 -0
  47. cc-multilingual-main/cc_net/vcpkg/ports/libxmp/usage +4 -0
  48. cc-multilingual-main/cc_net/vcpkg/ports/libxmp/vcpkg.json +31 -0
  49. cc-multilingual-main/cc_net/vcpkg/ports/lzfse/disable-cli-option.patch +51 -0
  50. cc-multilingual-main/cc_net/vcpkg/ports/lzfse/portfile.cmake +34 -0
cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/build.patch ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 682f416..a8cbec8 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -104,8 +104,6 @@ mark_as_advanced(
6
+ CUDA_HOST_COMPILER
7
+ CUDA_USE_STATIC_CUDA_RUNTIME
8
+ CUDA_rt_LIBRARY
9
+ - SPDLOG_BUILD_EXAMPLES
10
+ - SPDLOG_BUILD_TESTING
11
+ ADDR2LINE_PROGRAM
12
+ Backtrace_LIBRARY
13
+ AF_WITH_STATIC_MKL
14
+ @@ -159,9 +157,7 @@ if(NOT LAPACK_FOUND)
15
+ endif()
16
+ endif()
17
+
18
+ -set(SPDLOG_BUILD_TESTING OFF CACHE INTERNAL "Disable testing in spdlog")
19
+ -add_subdirectory(extern/spdlog EXCLUDE_FROM_ALL)
20
+ -add_subdirectory(extern/glad)
21
+ +find_package(spdlog CONFIG REQUIRED)
22
+ add_subdirectory(src/backend/common)
23
+ add_subdirectory(src/api/c)
24
+ add_subdirectory(src/api/cpp)
25
+ @@ -269,10 +265,6 @@ install(DIRECTORY examples/ #NOTE The slash at the end is important
26
+ DESTINATION ${AF_INSTALL_EXAMPLE_DIR}
27
+ COMPONENT examples)
28
+
29
+ -install(DIRECTORY assets/examples/ #NOTE The slash at the end is important
30
+ - DESTINATION ${AF_INSTALL_EXAMPLE_DIR}
31
+ - COMPONENT examples)
32
+ -
33
+ install(DIRECTORY "${ArrayFire_SOURCE_DIR}/LICENSES/"
34
+ DESTINATION LICENSES
35
+ COMPONENT licenses)
36
+ diff --git a/CMakeModules/AFInstallDirs.cmake b/CMakeModules/AFInstallDirs.cmake
37
+ index 2c7b96e..b5006ee 100644
38
+ --- a/CMakeModules/AFInstallDirs.cmake
39
+ +++ b/CMakeModules/AFInstallDirs.cmake
40
+ @@ -7,8 +7,12 @@ include(GNUInstallDirs)
41
+ # NOTE: These paths are all relative to the project installation prefix.
42
+
43
+ # Executables
44
+ -if(NOT DEFINED AF_INSTALL_BIN_DIR)
45
+ - set(AF_INSTALL_BIN_DIR "lib" CACHE PATH "Installation path for executables")
46
+ +if(CMAKE_BUILD_TYPE MATCHES Debug)
47
+ + set(AF_INSTALL_BIN_DIR "${AF_BIN_DIR}/debug/bin")
48
+ + message(STATUS " Setting install to debug path ${AF_INSTALL_BIN_DIR}")
49
+ +else()
50
+ + set(AF_INSTALL_BIN_DIR "${AF_BIN_DIR}/bin")
51
+ + message(STATUS " Setting install to release path ${AF_INSTALL_BIN_DIR}")
52
+ endif()
53
+
54
+ # Libraries
55
+ diff --git a/CMakeModules/AFconfigure_forge_submodule.cmake b/CMakeModules/AFconfigure_forge_submodule.cmake
56
+ index d16849f..36ab01b 100644
57
+ --- a/CMakeModules/AFconfigure_forge_submodule.cmake
58
+ +++ b/CMakeModules/AFconfigure_forge_submodule.cmake
59
+ @@ -39,13 +39,13 @@ if(AF_BUILD_FORGE)
60
+ COMPONENT common_backend_dependencies)
61
+ set_property(TARGET forge APPEND_STRING PROPERTY COMPILE_FLAGS " -w")
62
+ else(AF_BUILD_FORGE)
63
+ - set(FG_VERSION "1.0.0")
64
+ + set(FG_VERSION "1.0.5")
65
+ set(FG_VERSION_MAJOR 1)
66
+ set(FG_VERSION_MINOR 0)
67
+ - set(FG_VERSION_PATCH 0)
68
+ + set(FG_VERSION_PATCH 5)
69
+ set(FG_API_VERSION_CURRENT 10)
70
+ configure_file(
71
+ - ${PROJECT_SOURCE_DIR}/extern/forge/CMakeModules/version.h.in
72
+ - ${PROJECT_BINARY_DIR}/extern/forge/include/fg/version.h
73
+ + ${AF_FORGE_PATH}/CMakeModules/version.h.in
74
+ + ${AF_FORGE_PATH}/include/fg/version.h
75
+ )
76
+ endif(AF_BUILD_FORGE)
77
+ diff --git a/src/api/unified/CMakeLists.txt b/src/api/unified/CMakeLists.txt
78
+ index 967eaa6..16bb633 100644
79
+ --- a/src/api/unified/CMakeLists.txt
80
+ +++ b/src/api/unified/CMakeLists.txt
81
+ @@ -96,7 +96,8 @@ target_include_directories(af
82
+ target_link_libraries(af
83
+ PRIVATE
84
+ cpp_api_interface
85
+ - spdlog
86
+ + spdlog::spdlog
87
+ + spdlog::spdlog_header_only
88
+ Threads::Threads
89
+ Boost::boost
90
+ ${CMAKE_DL_LIBS}
91
+ diff --git a/src/backend/common/CMakeLists.txt b/src/backend/common/CMakeLists.txt
92
+ index c9fe088..8c128fa 100644
93
+ --- a/src/backend/common/CMakeLists.txt
94
+ +++ b/src/backend/common/CMakeLists.txt
95
+ @@ -77,12 +77,15 @@ else()
96
+ target_sources(afcommon_interface INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/module_loading_unix.cpp)
97
+ endif()
98
+
99
+ +find_package(glad CONFIG REQUIRED)
100
+ +
101
+ target_link_libraries(afcommon_interface
102
+ INTERFACE
103
+ - spdlog
104
+ + spdlog::spdlog
105
+ + spdlog::spdlog_header_only
106
+ Boost::boost
107
+ - af_glad_interface
108
+ ${CMAKE_DL_LIBS}
109
+ + glad::glad
110
+ )
111
+
112
+ if(AF_BUILD_FORGE)
113
+ @@ -93,10 +96,9 @@ target_include_directories(afcommon_interface
114
+ INTERFACE
115
+ ${ArrayFire_SOURCE_DIR}/src/backend
116
+ ${ArrayFire_BINARY_DIR}
117
+ + ${AF_FORGE_PATH}/include # passed via vcpkg
118
+ SYSTEM INTERFACE
119
+ $<$<PLATFORM_ID:Darwin>:${OPENGL_INCLUDE_DIR}>
120
+ - ${ArrayFire_SOURCE_DIR}/extern/forge/include
121
+ - ${ArrayFire_BINARY_DIR}/extern/forge/include
122
+ )
123
+
124
+ if(APPLE AND NOT USE_MKL)
125
+ diff --git a/src/backend/cpu/CMakeLists.txt b/src/backend/cpu/CMakeLists.txt
126
+ index 170bb0f..c6e2017 100644
127
+ --- a/src/backend/cpu/CMakeLists.txt
128
+ +++ b/src/backend/cpu/CMakeLists.txt
129
+ @@ -266,9 +266,10 @@ endif(AF_WITH_CPUID)
130
+
131
+ target_sources(afcpu
132
+ PRIVATE
133
+ - ${CMAKE_CURRENT_SOURCE_DIR}/threads/async_queue.hpp
134
+ - ${CMAKE_CURRENT_SOURCE_DIR}/threads/event.hpp
135
+ + ${AF_CPU_THREAD_PATH}/include/threads/async_queue.hpp
136
+ + ${AF_CPU_THREAD_PATH}/include/threads/event.hpp
137
+ )
138
+ +target_include_directories(afcpu PRIVATE ${AF_CPU_THREAD_PATH}/include)
139
+
140
+ arrayfire_set_default_cxx_flags(afcpu)
141
+
142
+ diff --git a/src/backend/cuda/CMakeLists.txt b/src/backend/cuda/CMakeLists.txt
143
+ index 7e3e408..2edaacd 100644
144
+ --- a/src/backend/cuda/CMakeLists.txt
145
+ +++ b/src/backend/cuda/CMakeLists.txt
146
+ @@ -110,7 +110,11 @@ cuda_include_directories(
147
+ ${COMMON_INTERFACE_DIRS}
148
+ )
149
+ if(CUDA_VERSION_MAJOR VERSION_LESS 11)
150
+ - cuda_include_directories(${ArrayFire_SOURCE_DIR}/extern/cub)
151
+ + find_path(CUB_INCLUDE_DIRS "cub/agent/agent_histogram.cuh")
152
+ + if (${CUB_INCLUDE_DIRS} EQUAL "CUB_INCLUDE_DIRS-NOTFOUND")
153
+ + set(CUB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/cub)
154
+ + endif()
155
+ + cuda_include_directories(${CUB_INCLUDE_DIRS})
156
+ endif()
157
+
158
+ file(GLOB jit_src "kernel/jit.cuh")
159
+ @@ -242,7 +246,7 @@ endif()
160
+
161
+ if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR
162
+ (UNIX AND
163
+ - CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0))
164
+ + CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1))
165
+ list(APPEND cxx_definitions -DAF_USE_NEW_CUSPARSE_API)
166
+ endif()
167
+
168
+ @@ -301,7 +305,7 @@ set_target_properties(af_cuda_static_cuda_library
169
+
170
+ if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR
171
+ (UNIX AND
172
+ - CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0))
173
+ + CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1))
174
+ target_compile_definitions(af_cuda_static_cuda_library PRIVATE AF_USE_NEW_CUSPARSE_API)
175
+ endif()
176
+
177
+ diff --git a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt b/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt
178
+ index 9a796c9..d9864b0 100644
179
+ --- a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt
180
+ +++ b/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt
181
+ @@ -27,6 +27,7 @@ foreach(SBK_BINARY_OP ${SBK_BINARY_OPS})
182
+ add_dependencies(opencl_scan_by_key_${SBK_BINARY_OP}
183
+ ${cl_kernel_targets} OpenCL::cl2hpp Boost::boost)
184
+
185
+ + find_package(glad CONFIG REQUIRED)
186
+ target_include_directories(opencl_scan_by_key_${SBK_BINARY_OP}
187
+ PRIVATE
188
+ .
189
+ @@ -39,9 +40,7 @@ foreach(SBK_BINARY_OP ${SBK_BINARY_OPS})
190
+ $<TARGET_PROPERTY:OpenCL::OpenCL,INTERFACE_INCLUDE_DIRECTORIES>
191
+ $<TARGET_PROPERTY:OpenCL::cl2hpp,INTERFACE_INCLUDE_DIRECTORIES>
192
+ $<TARGET_PROPERTY:Boost::boost,INTERFACE_INCLUDE_DIRECTORIES>
193
+ - $<TARGET_PROPERTY:af_glad_interface,INTERFACE_INCLUDE_DIRECTORIES>
194
+ - ${ArrayFire_SOURCE_DIR}/extern/forge/include
195
+ - ${ArrayFire_BINARY_DIR}/extern/forge/include
196
+ + $<TARGET_PROPERTY:glad::glad,INTERFACE_INCLUDE_DIRECTORIES>
197
+ )
198
+
199
+ set_target_properties(opencl_scan_by_key_${SBK_BINARY_OP}
200
+ diff --git a/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt b/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt
201
+ index d618ff2..9f51739 100644
202
+ --- a/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt
203
+ +++ b/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt
204
+ @@ -32,14 +32,13 @@ foreach(SBK_TYPE ${SBK_TYPES})
205
+ ../../../include
206
+ ${CMAKE_CURRENT_BINARY_DIR})
207
+
208
+ + find_package(glad CONFIG REQUIRED)
209
+ target_include_directories(opencl_sort_by_key_${SBK_TYPE}
210
+ SYSTEM PRIVATE
211
+ $<TARGET_PROPERTY:OpenCL::OpenCL,INTERFACE_INCLUDE_DIRECTORIES>
212
+ $<TARGET_PROPERTY:OpenCL::cl2hpp,INTERFACE_INCLUDE_DIRECTORIES>
213
+ $<TARGET_PROPERTY:Boost::boost,INTERFACE_INCLUDE_DIRECTORIES>
214
+ - $<TARGET_PROPERTY:af_glad_interface,INTERFACE_INCLUDE_DIRECTORIES>
215
+ - ${ArrayFire_SOURCE_DIR}/extern/forge/include
216
+ - ${ArrayFire_BINARY_DIR}/extern/forge/include
217
+ + $<TARGET_PROPERTY:glad::glad,INTERFACE_INCLUDE_DIRECTORIES>
218
+ )
219
+
220
+ set_target_properties(opencl_sort_by_key_${SBK_TYPE}
221
+ diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt
222
+ index b543433..9b5923b 100644
223
+ --- a/src/backend/opencl/CMakeLists.txt
224
+ +++ b/src/backend/opencl/CMakeLists.txt
225
+ @@ -432,12 +432,9 @@ if(AF_OPENCL_BLAS_LIBRARY STREQUAL "clBLAS")
226
+ PRIVATE
227
+ clBLAS::clBLAS)
228
+ elseif(AF_OPENCL_BLAS_LIBRARY STREQUAL "CLBlast")
229
+ - include(build_CLBlast)
230
+ + find_package(CLBlast CONFIG REQUIRED)
231
+ target_compile_definitions(afopencl PRIVATE USE_CLBLAST)
232
+ - target_link_libraries(afopencl
233
+ - PRIVATE
234
+ - CLBlast)
235
+ - add_dependencies(afopencl CLBlast-ext)
236
+ + target_link_libraries(afopencl PRIVATE clblast)
237
+ endif()
238
+
239
+
240
+ diff --git a/src/backend/opencl/homography.cpp b/src/backend/opencl/homography.cpp
241
+ index 3b598b0..2815923 100644
242
+ --- a/src/backend/opencl/homography.cpp
243
+ +++ b/src/backend/opencl/homography.cpp
244
+ @@ -39,7 +39,7 @@ int homography(Array<T> &bestH, const Array<float> &x_src,
245
+ ::std::min(iter, static_cast<unsigned>(
246
+ log(1.f - LMEDSConfidence) /
247
+ log(1.f - pow(1.f - LMEDSOutlierRatio, 4.f))));
248
+ - err = createValueArray<float>(af::dim4(nsamples, iter), FLT_MAX);
249
+ + err = createValueArray<float>(af::dim4(nsamples, iter), std::numeric_limits<float>::max());
250
+ } else {
251
+ // Avoid passing "null" cl_mem object to kernels
252
+ err = createEmptyArray<float>(af::dim4(1));
253
+ diff --git a/src/backend/opencl/kernel/homography.hpp b/src/backend/opencl/kernel/homography.hpp
254
+ index b84e599..90d0c80 100644
255
+ --- a/src/backend/opencl/kernel/homography.hpp
256
+ +++ b/src/backend/opencl/kernel/homography.hpp
257
+ @@ -39,7 +39,9 @@ std::array<Kernel, 5> getHomographyKernels(const af_homography_type htype) {
258
+ };
259
+ options.emplace_back(getTypeBuildDefinition<T>());
260
+ options.emplace_back(DefineKeyValue(
261
+ - EPS, (std::is_same<T, double>::value ? DBL_EPSILON : FLT_EPSILON)));
262
+ + EPS, (std::is_same<T, double>::value
263
+ + ? std::numeric_limits<double>::epsilon()
264
+ + : std::numeric_limits<float>::epsilon())));
265
+ if (htype == AF_HOMOGRAPHY_RANSAC) {
266
+ options.emplace_back(DefineKey(RANSAC));
267
+ }
cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/fix-dependency-clfft.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt
2
+ index f970da0..b543433 100644
3
+ --- a/src/backend/opencl/CMakeLists.txt
4
+ +++ b/src/backend/opencl/CMakeLists.txt
5
+ @@ -12,7 +12,8 @@ set_property(CACHE AF_OPENCL_BLAS_LIBRARY PROPERTY STRINGS "clBLAS" "CLBlast")
6
+
7
+ af_deprecate(OPENCL_BLAS_LIBRARY AF_OPENCL_BLAS_LIBRARY)
8
+
9
+ -include(build_clFFT)
10
+ +find_package(clFFT CONFIG REQUIRED)
11
+ +add_library(clFFT::clFFT ALIAS clFFT)
12
+
13
+ file(GLOB kernel_src kernel/*.cl kernel/KParam.hpp)
14
+
cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/portfile.cmake ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO arrayfire/arrayfire
4
+ REF d99887ae431fcd58168b653a1e69f027f04d5188 # v3.8.0
5
+ SHA512 d8ddf6ba254744e62acf5ecf680f0ae56b05f8957b5463572923977ba2ffea7fa37cc1b6179421a1188a6f9e66565ca0f8cd00807513ccbe66ba1e9bbd41a3da
6
+ HEAD_REF master
7
+ PATCHES
8
+ build.patch
9
+ Fix-constexpr-error-with-vs2019-with-half.patch
10
+ fix-dependency-clfft.patch
11
+ )
12
+
13
+ # arrayfire cpu thread lib needed as a submodule for the CPU backend
14
+ vcpkg_from_github(
15
+ OUT_SOURCE_PATH CPU_THREADS_PATH
16
+ REPO arrayfire/threads
17
+ REF b666773940269179f19ef11c8f1eb77005e85d9a
18
+ SHA512 b3e8b54acf3a588b1f821c2774d5da2d8f8441962c6d99808d513f7117278b9066eb050b8b501bddbd3882e68eb5cc5da0b2fca54e15ab1923fe068a3fe834f5
19
+ HEAD_REF master
20
+ )
21
+
22
+ # Get forge. We only need headers and aren't actually linking.
23
+ # We don't want to use the vcpkg dependency since it is broken in many
24
+ # environments - see https://github.com/microsoft/vcpkg/issues/14864. This
25
+ # can be relaxed when the issue is fixed. Forge and its dependencies
26
+ # are still runtime dependencies, so the user can use the graphics
27
+ # library by installing forge and freeimage.
28
+ vcpkg_from_github(
29
+ OUT_SOURCE_PATH FORGE_PATH
30
+ REPO arrayfire/forge
31
+ REF 1a0f0cb6371a8c8053ab5eb7cbe3039c95132389 # v1.0.5
32
+ SHA512 8f8607421880a0f0013380eb5efb3a4f05331cd415d68c9cd84dd57eb727da1df6223fc6d65b106675d6aa09c3388359fab64443c31fadadf7641161be6b3b89
33
+ HEAD_REF master
34
+ )
35
+
36
+ ################################### Build ###################################
37
+
38
+ # Default flags
39
+ set(AF_DEFAULT_VCPKG_CMAKE_FLAGS
40
+ -DBUILD_TESTING=OFF
41
+ -DAF_BUILD_DOCS=OFF
42
+ -DAF_BUILD_EXAMPLES=OFF
43
+ -DUSE_CPU_MKL=ON
44
+ -DUSE_OPENCL_MKL=ON
45
+ -DAF_CPU_THREAD_PATH=${CPU_THREADS_PATH} # for building the arrayfire cpu threads lib
46
+ -DAF_FORGE_PATH=${FORGE_PATH} # forge headers for building the graphics lib
47
+ -DAF_BUILD_FORGE=OFF
48
+ )
49
+
50
+ if("cpu" IN_LIST FEATURES)
51
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_CRT_LINKAGE STREQUAL "static")
52
+ list(APPEND AF_DEFAULT_VCPKG_CMAKE_FLAGS "-DMKL_THREAD_LAYER=Sequential")
53
+ endif()
54
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
55
+ list(APPEND AF_DEFAULT_VCPKG_CMAKE_FLAGS "-DINT_SIZE=8")
56
+ # This seems scary but only selects the MKL interface. 4 = lp; 8 = ilp; Since x64 has ilp as the default use it!
57
+ endif()
58
+ endif()
59
+
60
+ # bin/dll directory for Windows non-static builds for the unified backend dll
61
+ if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_LIBRARY_LINKAGE STREQUAL "static")
62
+ set(AF_BIN_DIR ${CURRENT_PACKAGES_DIR})
63
+ list(APPEND AF_DEFAULT_VCPKG_CMAKE_FLAGS "-DAF_BIN_DIR=${AF_BIN_DIR}")
64
+ endif()
65
+
66
+ if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
67
+ message(WARNING "NOTE: Windows support with static linkeage is still experimental.")
68
+ endif()
69
+
70
+ # Determine which backend to build via specified feature
71
+ vcpkg_check_features(
72
+ OUT_FEATURE_OPTIONS AF_BACKEND_FEATURE_OPTIONS
73
+ FEATURES
74
+ unified AF_BUILD_UNIFIED
75
+ cpu AF_BUILD_CPU
76
+ cuda AF_BUILD_CUDA
77
+ opencl AF_BUILD_OPENCL
78
+ )
79
+
80
+ # Build and install
81
+ vcpkg_cmake_configure(
82
+ SOURCE_PATH "${SOURCE_PATH}"
83
+ OPTIONS
84
+ ${AF_DEFAULT_VCPKG_CMAKE_FLAGS}
85
+ ${AF_BACKEND_FEATURE_OPTIONS}
86
+ OPTIONS_DEBUG
87
+ -DAF_INSTALL_CMAKE_DIR="${CURRENT_PACKAGES_DIR}/debug/share/${PORT}" # for CMake configs/targets
88
+ OPTIONS_RELEASE
89
+ -DAF_INSTALL_CMAKE_DIR="${CURRENT_PACKAGES_DIR}/share/${PORT}" # for CMake configs/targets
90
+ MAYBE_UNUSED_VARIABLES
91
+ AF_CPU_THREAD_PATH
92
+ )
93
+ vcpkg_cmake_install()
94
+
95
+ vcpkg_copy_pdbs()
96
+
97
+ vcpkg_cmake_config_fixup()
98
+
99
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
100
+ "${CURRENT_PACKAGES_DIR}/debug/examples"
101
+ "${CURRENT_PACKAGES_DIR}/examples"
102
+ "${CURRENT_PACKAGES_DIR}/debug/share"
103
+ "${CURRENT_PACKAGES_DIR}/debug/LICENSES")
104
+
105
+ # Copyright and license
106
+ file(INSTALL "${SOURCE_PATH}/COPYRIGHT.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
107
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/vcpkg.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "arrayfire",
3
+ "version-semver": "3.8.0",
4
+ "port-version": 5,
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.",
6
+ "homepage": "https://github.com/arrayfire/arrayfire",
7
+ "license": "BSD-3-Clause",
8
+ "supports": "x64",
9
+ "dependencies": [
10
+ "boost-compute",
11
+ "boost-stacktrace",
12
+ "glad",
13
+ "spdlog",
14
+ {
15
+ "name": "vcpkg-cmake",
16
+ "host": true
17
+ },
18
+ {
19
+ "name": "vcpkg-cmake-config",
20
+ "host": true
21
+ }
22
+ ],
23
+ "default-features": [
24
+ "cpu",
25
+ "unified"
26
+ ],
27
+ "features": {
28
+ "cpu": {
29
+ "description": "ArrayFire CPU backend",
30
+ "dependencies": [
31
+ "intel-mkl"
32
+ ]
33
+ },
34
+ "cuda": {
35
+ "description": "ArrayFire CUDA backend. This feature only supports dynamic because dependency cudnn is dynamic only.",
36
+ "dependencies": [
37
+ "cub",
38
+ "cuda",
39
+ "cudnn"
40
+ ]
41
+ },
42
+ "opencl": {
43
+ "description": "ArrayFire OpenCL backend",
44
+ "dependencies": [
45
+ "clblast",
46
+ "clfft",
47
+ "opencl"
48
+ ]
49
+ },
50
+ "unified": {
51
+ "description": "ArrayFire unified backend",
52
+ "dependencies": [
53
+ "intel-mkl"
54
+ ]
55
+ }
56
+ }
57
+ }
cc-multilingual-main/cc_net/vcpkg/ports/atl/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ find_path(ATLBASE_H
2
+ NAMES atlbase.h
3
+ PATHS $ENV{INCLUDE}
4
+ )
5
+
6
+ if(NOT ATLBASE_H)
7
+ message(FATAL_ERROR "Unable to locate 'atlbase.h'. Ensure you have installed the Active Template Library (ATL) component of Visual Studio.")
8
+ endif()
9
+
10
+ SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
cc-multilingual-main/cc_net/vcpkg/ports/atl/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "atl",
3
+ "version": "0",
4
+ "description": "A stub package that ensures Visual Studio has Active Template Library (ATL) installed.",
5
+ "supports": "windows"
6
+ }
cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/CMakeLists.txt ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.11)
2
+ cmake_policy(VERSION 3.11)
3
+
4
+ project(autodock-vina)
5
+
6
+ set(GIT_VERSION v1.2.5)
7
+ set(CMAKE_CXX_STANDARD 11)
8
+
9
+ find_package(Boost REQUIRED COMPONENTS
10
+ filesystem
11
+ log
12
+ math_tr1
13
+ program_options
14
+ random
15
+ serialization
16
+ thread
17
+ timer
18
+ )
19
+
20
+ file(GLOB SRC_AUTODOCK_VINA_LIBS
21
+ "src/lib/*.cpp"
22
+ )
23
+
24
+ file(GLOB SRC_AUTODOCK_VINA_SPLIT
25
+ "src/split/*.cpp"
26
+ )
27
+
28
+ file(GLOB HEADERS
29
+ "src/lib/*.h"
30
+ )
31
+
32
+ add_library(vina ${SRC_AUTODOCK_VINA_LIBS})
33
+ add_library(vina_split ${SRC_AUTODOCK_VINA_SPLIT})
34
+
35
+ target_include_directories(vina
36
+ PUBLIC
37
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
38
+ $<INSTALL_INTERFACE:include>
39
+ PRIVATE
40
+ $<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
41
+ )
42
+
43
+ target_include_directories(vina_split
44
+ PUBLIC
45
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
46
+ $<INSTALL_INTERFACE:include>
47
+ PRIVATE
48
+ $<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
49
+ )
50
+
51
+ target_compile_definitions(vina
52
+ PUBLIC
53
+ -DVERSION=\"${GIT_VERSION}\"
54
+ )
55
+
56
+ target_compile_definitions(vina_split
57
+ PUBLIC
58
+ -DVERSION=\"${GIT_VERSION}\"
59
+ )
60
+
61
+ target_link_libraries(vina
62
+ PRIVATE
63
+ Boost::boost
64
+ Boost::filesystem
65
+ Boost::log
66
+ Boost::math_tr1
67
+ Boost::program_options
68
+ Boost::random
69
+ Boost::serialization
70
+ Boost::thread
71
+ Boost::timer
72
+ )
73
+
74
+ target_link_libraries(vina_split
75
+ PRIVATE
76
+ Boost::boost
77
+ Boost::filesystem
78
+ Boost::log
79
+ Boost::math_tr1
80
+ Boost::program_options
81
+ Boost::random
82
+ Boost::serialization
83
+ Boost::thread
84
+ Boost::timer
85
+ )
86
+
87
+ install(TARGETS vina EXPORT autodock-vina-config
88
+ RUNTIME DESTINATION bin
89
+ ARCHIVE DESTINATION lib
90
+ LIBRARY DESTINATION lib
91
+ )
92
+
93
+ install(TARGETS vina_split EXPORT autodock-vina-config
94
+ RUNTIME DESTINATION bin
95
+ ARCHIVE DESTINATION lib
96
+ LIBRARY DESTINATION lib
97
+ )
98
+
99
+ install(FILES ${HEADERS} DESTINATION include/autodock-vina)
100
+ install(EXPORT autodock-vina-config NAMESPACE autodock-vina::autodock-vina:: DESTINATION share/autodock-vina)
cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/fix-compatibility-with-boost-1.83.patch ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From 4a7935e1f8d1756cbeafb2564066551f9bd766f0 Mon Sep 17 00:00:00 2001
2
+ From: jjll <[email protected]>
3
+ Date: Wed, 6 Sep 2023 14:25:30 +0200
4
+ Subject: [PATCH] compatibility boost >= 1.83
5
+
6
+ ---
7
+ src/lib/parallel_progress.h | 11 +++++++++--
8
+ 1 file changed, 9 insertions(+), 2 deletions(-)
9
+
10
+ diff --git a/src/lib/parallel_progress.h b/src/lib/parallel_progress.h
11
+ index 958b170..ee938d9 100755
12
+ --- a/src/lib/parallel_progress.h
13
+ +++ b/src/lib/parallel_progress.h
14
+ @@ -23,7 +23,14 @@
15
+ #ifndef VINA_PARALLEL_PROGRESS_H
16
+ #define VINA_PARALLEL_PROGRESS_H
17
+
18
+ +#include <boost/version.hpp>
19
+ +#if BOOST_VERSION < 107200
20
+ #include <boost/progress.hpp>
21
+ +typedef boost::progress_display boost_progress;
22
+ +#else
23
+ +#include <boost/timer/progress_display.hpp>
24
+ +typedef boost::timer::progress_display boost_progress;
25
+ +#endif
26
+ #include <boost/thread/mutex.hpp>
27
+
28
+ #include <functional>
29
+ @@ -34,7 +41,7 @@ struct parallel_progress : public incrementable {
30
+ parallel_progress(std::function<void(double)>* c = NULL) : p(NULL), callback(c) {}
31
+ void init(unsigned long n) {
32
+ count = n;
33
+ - p = new boost::progress_display(count);
34
+ + p = new boost_progress(count);
35
+ }
36
+ void operator++() {
37
+ if(p) {
38
+ @@ -47,7 +54,7 @@ struct parallel_progress : public incrementable {
39
+ virtual ~parallel_progress() { delete p; }
40
+ private:
41
+ boost::mutex self;
42
+ - boost::progress_display* p;
43
+ + boost_progress* p;
44
+ std::function<void(double)>* callback;
45
+ unsigned long count;
46
+ };
cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO ccsb-scripps/AutoDock-Vina
6
+ REF v${VERSION}
7
+ SHA512 d36908e5833d22bcbc4dae353ef32b905d6eb46511302f7583a291398bfadff5e75fc99ce7b380860578b2257e5c32434cc75b1ca51fafb4b5f12d9477a878e9
8
+ HEAD_REF develop
9
+ PATCHES fix-compatibility-with-boost-1.83.patch
10
+ )
11
+
12
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ )
17
+
18
+ vcpkg_cmake_install()
19
+
20
+ vcpkg_cmake_config_fixup()
21
+
22
+ vcpkg_copy_pdbs()
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
26
+
27
+ file(
28
+ INSTALL "${SOURCE_PATH}/LICENSE"
29
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
30
+ RENAME copyright
31
+ )
cc-multilingual-main/cc_net/vcpkg/ports/autodock-vina/vcpkg.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "autodock-vina",
3
+ "version-semver": "1.2.5",
4
+ "port-version": 1,
5
+ "description": "AutoDock Vina is one of the fastest and most widely used open-source docking engines.",
6
+ "homepage": "http://vina.scripps.edu/",
7
+ "dependencies": [
8
+ "boost-algorithm",
9
+ "boost-array",
10
+ "boost-filesystem",
11
+ "boost-lexical-cast",
12
+ "boost-log",
13
+ "boost-math",
14
+ "boost-optional",
15
+ "boost-program-options",
16
+ "boost-ptr-container",
17
+ "boost-random",
18
+ "boost-serialization",
19
+ "boost-static-assert",
20
+ "boost-thread",
21
+ "boost-timer",
22
+ "boost-utility",
23
+ {
24
+ "name": "vcpkg-cmake",
25
+ "host": true
26
+ },
27
+ {
28
+ "name": "vcpkg-cmake-config",
29
+ "host": true
30
+ }
31
+ ]
32
+ }
cc-multilingual-main/cc_net/vcpkg/ports/b64/CMakeLists.txt ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.20)
2
+ project(b64)
3
+
4
+ if (BUILD_SHARED_LIBS)
5
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/b64_dynamic_config.h ${CMAKE_CURRENT_BINARY_DIR}/b64_config.h)
6
+ else()
7
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/b64_static_config.h ${CMAKE_CURRENT_BINARY_DIR}/b64_config.h)
8
+ endif()
9
+
10
+ set(SRC_DIR src)
11
+ set(INC_DIR include/b64)
12
+ set(SOURCE_FILES ${SRC_DIR}/cdecode.c ${SRC_DIR}/cencode.c)
13
+ 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)
14
+
15
+ add_library(b64 ${SOURCE_FILES} ${HEADER_FILES})
16
+
17
+ if (BUILD_SHARED_LIBS)
18
+ target_compile_definitions(b64 PRIVATE LIBB64_EXPORTS=1)
19
+ endif()
20
+
21
+ target_include_directories(b64
22
+ PRIVATE include ${CMAKE_CURRENT_BINARY_DIR}
23
+ INTERFACE $<INSTALL_INTERFACE:include>
24
+ )
25
+
26
+ set_property(TARGET b64
27
+ PROPERTY PUBLIC_HEADER ${HEADER_FILES})
28
+
29
+ install(TARGETS b64
30
+ EXPORT unofficial-b64-config
31
+ LIBRARY DESTINATION lib
32
+ PUBLIC_HEADER DESTINATION include/b64
33
+ )
34
+
35
+ install(EXPORT unofficial-b64-config
36
+ FILE unofficial-b64-config.cmake
37
+ NAMESPACE unofficial::b64::
38
+ DESTINATION share/unofficial-b64
39
+ )
40
+
cc-multilingual-main/cc_net/vcpkg/ports/b64/windows-fix.patch ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/include/b64/ccommon.h b/include/b64/ccommon.h
2
+ index 2b614df..0e46141 100644
3
+ --- a/include/b64/ccommon.h
4
+ +++ b/include/b64/ccommon.h
5
+ @@ -10,11 +10,12 @@ For details, see http://sourceforge.net/projects/libb64
6
+
7
+ #define BASE64_VER_MAJOR 2
8
+ #define BASE64_VER_MINOR 0
9
+ +#include "b64_config.h"
10
+
11
+ #ifndef HAVE_SIZE_T
12
+ #ifdef _WIN32
13
+ #include <crtdefs.h>
14
+ - #elseif defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
15
+ + #elif defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
16
+ #include <stdlib.h>
17
+ #else
18
+ typedef unsigned long size_t;
19
+ diff --git a/include/b64/cdecode.h b/include/b64/cdecode.h
20
+ index d6ff24c..4553efc 100644
21
+ --- a/include/b64/cdecode.h
22
+ +++ b/include/b64/cdecode.h
23
+ @@ -24,11 +24,11 @@ typedef struct
24
+ char plainchar;
25
+ } base64_decodestate;
26
+
27
+ -extern void base64_init_decodestate(base64_decodestate* state_in);
28
+ +extern LIBB64 void base64_init_decodestate(base64_decodestate* state_in);
29
+
30
+ -extern size_t base64_decode_maxlength(size_t encode_len);
31
+ +extern LIBB64 size_t base64_decode_maxlength(size_t encode_len);
32
+
33
+ -extern int base64_decode_value(signed char value_in);
34
+ -extern size_t base64_decode_block(const char* code_in, const size_t length_in, void* plaintext_out, base64_decodestate* state_in);
35
+ +extern LIBB64 int base64_decode_value(signed char value_in);
36
+ +extern LIBB64 size_t base64_decode_block(const char* code_in, const size_t length_in, void* plaintext_out, base64_decodestate* state_in);
37
+
38
+ #endif /* BASE64_CDECODE_H */
39
+ diff --git a/include/b64/cencode.h b/include/b64/cencode.h
40
+ index 96b0cdb..1feb695 100644
41
+ --- a/include/b64/cencode.h
42
+ +++ b/include/b64/cencode.h
43
+ @@ -31,12 +31,12 @@ typedef struct
44
+ char result;
45
+ } base64_encodestate;
46
+
47
+ -extern void base64_init_encodestate(base64_encodestate* state_in);
48
+ +extern LIBB64 void base64_init_encodestate(base64_encodestate* state_in);
49
+
50
+ -extern size_t base64_encode_length(size_t plain_len, base64_encodestate* state_in);
51
+ +extern LIBB64 size_t base64_encode_length(size_t plain_len, base64_encodestate* state_in);
52
+
53
+ -extern char base64_encode_value(signed char value_in);
54
+ -extern size_t base64_encode_block(const void* plaintext_in, const size_t length_in, char* code_out, base64_encodestate* state_in);
55
+ -extern size_t base64_encode_blockend(char* code_out, base64_encodestate* state_in);
56
+ +extern LIBB64 char base64_encode_value(signed char value_in);
57
+ +extern LIBB64 size_t base64_encode_block(const void* plaintext_in, const size_t length_in, char* code_out, base64_encodestate* state_in);
58
+ +extern LIBB64 size_t base64_encode_blockend(char* code_out, base64_encodestate* state_in);
59
+
60
+ #endif /* BASE64_CENCODE_H */
61
+ diff --git a/include/b64/decode.h b/include/b64/decode.h
62
+ index b2362e5..dd772d4 100644
63
+ --- a/include/b64/decode.h
64
+ +++ b/include/b64/decode.h
65
+ @@ -22,23 +22,23 @@ namespace base64
66
+ base64_decodestate _state;
67
+ int _buffersize;
68
+
69
+ - decoder(int buffersize_in = BUFFERSIZE)
70
+ + LIBB64 decoder(int buffersize_in = BUFFERSIZE)
71
+ : _buffersize(buffersize_in)
72
+ {
73
+ base64_init_decodestate(&_state);
74
+ }
75
+
76
+ - int decode(char value_in)
77
+ + LIBB64 int decode(char value_in)
78
+ {
79
+ return base64_decode_value(value_in);
80
+ }
81
+
82
+ - std::streamsize decode(const char* code_in, const std::streamsize length_in, char* plaintext_out)
83
+ + LIBB64 std::streamsize decode(const char* code_in, const std::streamsize length_in, char* plaintext_out)
84
+ {
85
+ return base64_decode_block(code_in, static_cast<int>(length_in), plaintext_out, &_state);
86
+ }
87
+
88
+ - void decode(std::istream& istream_in, std::ostream& ostream_in)
89
+ + LIBB64 void decode(std::istream& istream_in, std::ostream& ostream_in)
90
+ {
91
+ base64_init_decodestate(&_state);
92
+ //
93
+ diff --git a/include/b64/encode.h b/include/b64/encode.h
94
+ index c1a5f88..ff2c9b4 100644
95
+ --- a/include/b64/encode.h
96
+ +++ b/include/b64/encode.h
97
+ @@ -22,28 +22,28 @@ namespace base64
98
+ base64_encodestate _state;
99
+ int _buffersize;
100
+
101
+ - encoder(int buffersize_in = BUFFERSIZE)
102
+ + LIBB64 encoder(int buffersize_in = BUFFERSIZE)
103
+ : _buffersize(buffersize_in)
104
+ {
105
+ base64_init_encodestate(&_state);
106
+ }
107
+
108
+ - int encode(char value_in)
109
+ + LIBB64 int encode(char value_in)
110
+ {
111
+ return base64_encode_value(value_in);
112
+ }
113
+
114
+ - std::streamsize encode(const char* code_in, const std::streamsize length_in, char* plaintext_out)
115
+ + LIBB64 std::streamsize encode(const char* code_in, const std::streamsize length_in, char* plaintext_out)
116
+ {
117
+ return base64_encode_block(code_in, static_cast<int>(length_in), plaintext_out, &_state);
118
+ }
119
+
120
+ - int encode_end(char* plaintext_out)
121
+ + LIBB64 int encode_end(char* plaintext_out)
122
+ {
123
+ return base64_encode_blockend(plaintext_out, &_state);
124
+ }
125
+
126
+ - void encode(std::istream& istream_in, std::ostream& ostream_in)
127
+ + LIBB64 void encode(std::istream& istream_in, std::ostream& ostream_in)
128
+ {
129
+ base64_init_encodestate(&_state);
130
+ //
cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/portfile.cmake ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatically generated by scripts/boost/generate-ports.ps1
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO boostorg/circular_buffer
6
+ REF boost-${VERSION}
7
+ SHA512 e945cb9d701b23043fdd6ceaede292e2605f3ae7b9038e79e95eddf69fe781f4efcea67877f041db1eb8fe95f4bcf4ca34f845e90e5307c72ce811f68d649b6b
8
+ HEAD_REF master
9
+ )
10
+
11
+ include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
12
+ boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/boost-circular-buffer/vcpkg.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-circular-buffer",
4
+ "version": "1.84.0",
5
+ "description": "Boost circular_buffer module",
6
+ "homepage": "https://github.com/boostorg/circular_buffer",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-assert",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-concept-check",
15
+ "version>=": "1.84.0"
16
+ },
17
+ {
18
+ "name": "boost-config",
19
+ "version>=": "1.84.0"
20
+ },
21
+ {
22
+ "name": "boost-core",
23
+ "version>=": "1.84.0"
24
+ },
25
+ {
26
+ "name": "boost-move",
27
+ "version>=": "1.84.0"
28
+ },
29
+ {
30
+ "name": "boost-static-assert",
31
+ "version>=": "1.84.0"
32
+ },
33
+ {
34
+ "name": "boost-throw-exception",
35
+ "version>=": "1.84.0"
36
+ },
37
+ {
38
+ "name": "boost-type-traits",
39
+ "version>=": "1.84.0"
40
+ },
41
+ {
42
+ "name": "boost-vcpkg-helpers",
43
+ "version>=": "1.84.0"
44
+ }
45
+ ]
46
+ }
cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/portfile.cmake ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatically generated by scripts/boost/generate-ports.ps1
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO boostorg/functional
6
+ REF boost-${VERSION}
7
+ SHA512 bd00304aa41eaa9894ba36909af164bbf15ea8286770b23f5ed5b1d2b6f5b0cf94704cc8ed6af1ac05e831581b50b7852e928e98df3e603256a67abbe963823a
8
+ HEAD_REF master
9
+ )
10
+
11
+ include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
12
+ boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/boost-functional/vcpkg.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-functional",
4
+ "version": "1.84.0",
5
+ "description": "Boost functional module",
6
+ "homepage": "https://github.com/boostorg/functional",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-config",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-core",
15
+ "version>=": "1.84.0"
16
+ },
17
+ {
18
+ "name": "boost-function",
19
+ "version>=": "1.84.0"
20
+ },
21
+ {
22
+ "name": "boost-function-types",
23
+ "version>=": "1.84.0"
24
+ },
25
+ {
26
+ "name": "boost-mpl",
27
+ "version>=": "1.84.0"
28
+ },
29
+ {
30
+ "name": "boost-preprocessor",
31
+ "version>=": "1.84.0"
32
+ },
33
+ {
34
+ "name": "boost-type-traits",
35
+ "version>=": "1.84.0"
36
+ },
37
+ {
38
+ "name": "boost-typeof",
39
+ "version>=": "1.84.0"
40
+ },
41
+ {
42
+ "name": "boost-utility",
43
+ "version>=": "1.84.0"
44
+ },
45
+ {
46
+ "name": "boost-vcpkg-helpers",
47
+ "version>=": "1.84.0"
48
+ }
49
+ ]
50
+ }
cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/portfile.cmake ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatically generated by scripts/boost/generate-ports.ps1
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO boostorg/throw_exception
6
+ REF boost-${VERSION}
7
+ SHA512 e654e745a7c3efd0f871e25bb7dde940f1fc0c7df5d68f4e61aa947ec5c903606ab52c5a853c226c1f16f5becf0ea2505556900c72143e98fc802df27b102e9e
8
+ HEAD_REF master
9
+ )
10
+
11
+ include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
12
+ boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/boost-throw-exception/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-throw-exception",
4
+ "version": "1.84.0",
5
+ "description": "Boost throw_exception module",
6
+ "homepage": "https://github.com/boostorg/throw_exception",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-assert",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-config",
15
+ "version>=": "1.84.0"
16
+ },
17
+ {
18
+ "name": "boost-vcpkg-helpers",
19
+ "version>=": "1.84.0"
20
+ }
21
+ ]
22
+ }
cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/portfile.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO beached/utf_range
5
+ REF "v${VERSION}"
6
+ SHA512 67c009f207d7a25918e78072fedcd399367ebe4f5433bbc8203ad37680e8598a54a08a35953a91dfd1b417c448875b39a3975b1edec48018c6fef29cb36a486c
7
+ HEAD_REF master
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ -DDAW_USE_PACKAGE_MANAGEMENT=ON
14
+ )
15
+
16
+ vcpkg_cmake_install()
17
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
18
+
19
+ # remove empty lib and debug/lib directories (and duplicate files from debug/include)
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
21
+
22
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
cc-multilingual-main/cc_net/vcpkg/ports/daw-utf-range/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "daw-utf-range",
3
+ "version": "2.2.4",
4
+ "description": "Header-only utf8 string range used by daw-json-link. Includes a constexpr/noexcept modified version of utfcpp.",
5
+ "homepage": "https://github.com/beached/header_libraries",
6
+ "license": "BSL-1.0",
7
+ "dependencies": [
8
+ "daw-header-libraries",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
cc-multilingual-main/cc_net/vcpkg/ports/flux/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO tcbrindle/flux
4
+ REF 1c128b50af95fc39b6683d437f9210239e219836
5
+ SHA512 c07d3053227d6a62f5a7b0aba8535c0ed42195249d131a77989b3ee79a697f8d540b68639dcd9e89b5cdd76ee5d7f07db9b3be23bc325761c85af625f507e393
6
+ HEAD_REF master
7
+ PATCHES
8
+ targets-fixup.patch
9
+ )
10
+
11
+ set(VCPKG_BUILD_TYPE release) # header-only port
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ -DFLUX_BUILD_EXAMPLES=OFF
17
+ -DFLUX_BUILD_TESTS=OFF
18
+ )
19
+
20
+
21
+ vcpkg_cmake_install()
22
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/flux)
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
25
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt")
cc-multilingual-main/cc_net/vcpkg/ports/flux/targets-fixup.patch ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git i/CMakeLists.txt w/CMakeLists.txt
2
+ index e87b3c7..c6239f0 100644
3
+ --- i/CMakeLists.txt
4
+ +++ w/CMakeLists.txt
5
+ @@ -118,4 +118,27 @@ install(
6
+ DIRECTORY "${PROJECT_SOURCE_DIR}/include"
7
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/.."
8
+ PATTERN "build2file" EXCLUDE
9
+ -)
10
+ +)
11
+ +
12
+ +#
13
+ +# Removes the INTERFACE_SOURCES flux::flux property in the flux-targets.cmake
14
+ +# file that is there only because of the poor interaction of the
15
+ +# $<BUILD_INTERFACE:...> with the install(TARGETS...) command. The generator
16
+ +# creates an empty string instead of no string and the install(TARGETS...)
17
+ +# takes that empty string as a indication that the code should put the source
18
+ +# path in as a source file list (why?).
19
+ +#
20
+ +# The code here gets inserted into near the end of the cmake_install.cmake
21
+ +# file. It reads the flux-targets.cmake file into memory, clears the file,
22
+ +# then recreates the file skipping the line that contains the malformed
23
+ +# INTERFACE_SOURCES property value.
24
+ +#
25
+ +set(FLUX_TARGETS_FILE "${CMAKE_INSTALL_PREFIX}/lib/cmake/flux/flux-targets.cmake")
26
+ +install(CODE
27
+ + "file (STRINGS \"${FLUX_TARGETS_FILE}\" FLUX_TARGETS_FILE_LINES)
28
+ + file(WRITE \"${FLUX_TARGETS_FILE}\" \"\")
29
+ + foreach(FLUX_TARGETS_FILE_LINE IN LISTS FLUX_TARGETS_FILE_LINES)
30
+ + if (NOT FLUX_TARGETS_FILE_LINE MATCHES \"^[ \t]*INTERFACE_SOURCES[ \t].*$\")
31
+ + file(APPEND \"${FLUX_TARGETS_FILE}\" \"\${FLUX_TARGETS_FILE_LINE}\\n\")
32
+ + endif()
33
+ + endforeach()")
cc-multilingual-main/cc_net/vcpkg/ports/flux/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "flux",
3
+ "version-date": "2023-08-25",
4
+ "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.",
5
+ "homepage": "https://github.com/tcbrindle/flux",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ },
11
+ {
12
+ "name": "vcpkg-cmake-config",
13
+ "host": true
14
+ }
15
+ ]
16
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libfork/portfile.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO conorwilliams/libfork
4
+ REF "v${VERSION}"
5
+ SHA512 1e94f91924abdda8950af634896fcdc6317b6487a4b51619733758291d3fa2ba9004f9204440b2e6a827b5ba417503e7120e4d32cf3bb3a96495792efb14fcfc
6
+ HEAD_REF main
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ )
12
+
13
+ vcpkg_cmake_install()
14
+
15
+ vcpkg_cmake_config_fixup(PACKAGE_NAME "libfork")
16
+
17
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
18
+
19
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
20
+
21
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
22
+
cc-multilingual-main/cc_net/vcpkg/ports/libfork/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ libfork provides CMake targets:
2
+
3
+ find_package(libfork CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE libfork::libfork)
cc-multilingual-main/cc_net/vcpkg/ports/libfork/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libfork",
3
+ "version": "3.7.1",
4
+ "description": "A bleeding-edge, lock-free, wait-free, continuation-stealing fork-join library built on C++20's coroutines.",
5
+ "homepage": "https://github.com/conorwilliams/libfork",
6
+ "license": "MPL-2.0",
7
+ "dependencies": [
8
+ "boost-atomic",
9
+ "hwloc",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ]
19
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libjuice/fix-for-vcpkg.patch ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 3e2a2dc..011a4ca 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -66,7 +66,7 @@ set(TESTS_SOURCES
6
+ set(THREADS_PREFER_PTHREAD_FLAG ON)
7
+ find_package(Threads REQUIRED)
8
+
9
+ -add_library(juice SHARED ${LIBJUICE_SOURCES})
10
+ +add_library(juice ${LIBJUICE_SOURCES})
11
+ set_target_properties(juice PROPERTIES VERSION ${PROJECT_VERSION})
12
+ target_include_directories(juice PUBLIC
13
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
14
+ @@ -96,11 +96,15 @@ if(WIN32)
15
+ endif()
16
+
17
+ if (USE_NETTLE)
18
+ - find_package(Nettle REQUIRED)
19
+ + find_path(NETTLE_INCLUDE_PATH "nettle/hmac.h" REQUIRED)
20
+ + find_library(NETTLE_LIBRARY_PATH NAMES nettle libnettle REQUIRED)
21
+ + target_include_directories(juice PRIVATE ${NETTLE_INCLUDE_PATH})
22
+ + target_include_directories(juice-static PRIVATE ${NETTLE_INCLUDE_PATH})
23
+ +
24
+ target_compile_definitions(juice PRIVATE USE_NETTLE=1)
25
+ - target_link_libraries(juice PRIVATE Nettle::Nettle)
26
+ + target_link_libraries(juice PRIVATE ${NETTLE_LIBRARY_PATH})
27
+ target_compile_definitions(juice-static PRIVATE USE_NETTLE=1)
28
+ - target_link_libraries(juice-static PRIVATE Nettle::Nettle)
29
+ + target_link_libraries(juice-static PRIVATE ${NETTLE_LIBRARY_PATH})
30
+ else()
31
+ target_compile_definitions(juice PRIVATE USE_NETTLE=0)
32
+ target_compile_definitions(juice-static PRIVATE USE_NETTLE=0)
cc-multilingual-main/cc_net/vcpkg/ports/libjuice/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO paullouisageneau/libjuice
4
+ REF "v${VERSION}"
5
+ SHA512 0c690940fab9c29c52955ee96c254c086f4170c8e59a26b767b9ffc288db9ecc7195136f958b9773903201e2719279bca63c7f64b6bb89bf8a41b6dd1da4eb63
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-for-vcpkg.patch
9
+ )
10
+
11
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ nettle USE_NETTLE
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ ${FEATURE_OPTIONS}
20
+ -DNO_TESTS=ON
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
26
+
27
+ vcpkg_cmake_config_fixup(PACKAGE_NAME libjuice CONFIG_PATH lib/cmake/LibJuice)
28
+ vcpkg_fixup_pkgconfig()
29
+
30
+ file(READ "${CURRENT_PACKAGES_DIR}/share/libjuice/LibJuiceConfig.cmake" DATACHANNEL_CONFIG)
31
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/libjuice/LibJuiceConfig.cmake" "
32
+ include(CMakeFindDependencyMacro)
33
+ find_dependency(Threads)
34
+ ${DATACHANNEL_CONFIG}")
35
+
36
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/libjuice/vcpkg.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libjuice",
3
+ "version": "1.3.4",
4
+ "port-version": 1,
5
+ "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.",
6
+ "homepage": "https://github.com/paullouisageneau/libjuice",
7
+ "license": "LGPL-2.1-only",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ],
18
+ "features": {
19
+ "nettle": {
20
+ "description": "Use nettle for HMAC computation instead of the Builtin",
21
+ "dependencies": [
22
+ "nettle"
23
+ ]
24
+ }
25
+ }
26
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp.pc.in ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=@PREFIX@
2
+ exec_prefix=${prefix}
3
+ libdir=${prefix}/lib
4
+ includedir=${prefix}/include/OpenSP
5
+
6
+ Name: opensp
7
+ Description: SGML parser algorithm library
8
+ Version: @VERSION@
9
+ Libs: -L${libdir} -losp
10
+ Libs.private: @EXTRA_LIBS@
11
+ Cflags: -I${includedir}
12
+ Cflags.private:
cc-multilingual-main/cc_net/vcpkg/ports/libopensp/opensp_1.5.2-13.diff ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- opensp-1.5.2.orig/sx/XmlOutputEventHandler.cxx
2
+ +++ opensp-1.5.2/sx/XmlOutputEventHandler.cxx
3
+ @@ -1199,12 +1199,22 @@
4
+ // Check to make sure we haven't passed outside of the
5
+ // output directory
6
+ char *dirs = strdup (filePath);
7
+ +#ifdef MAXPATHLEN
8
+ char realDirs[MAXPATHLEN];
9
+ char realOutputDir[MAXPATHLEN];
10
+ +#else
11
+ + char *realDirs;
12
+ + char *realOutputDir;
13
+ +#endif
14
+ char *outputDir = strdup(outputDir_);
15
+
16
+ +#ifdef MAXPATHLEN
17
+ realpath((const char *)dirname(dirs), realDirs);
18
+ realpath((const char *)dirname(outputDir), realOutputDir);
19
+ +#else
20
+ + realDirs = realpath((const char *)dirname(dirs), NULL);
21
+ + realOutputDir = realpath((const char *)dirname(outputDir), NULL);
22
+ +#endif
23
+
24
+ if (strncmp(realDirs, realOutputDir, strlen (realOutputDir)) != 0) {
25
+ app_->message(XmlOutputMessages::pathOutsideOutputDirectory,
26
+ @@ -1214,6 +1224,11 @@
27
+ }
28
+ }
29
+
30
+ +#ifndef MAXPATHLEN
31
+ + free(realDirs);
32
+ + free(realOutputDir);
33
+ +#endif
34
+ +
35
+ // Make the necessary directories
36
+ maybeCreateDirectories(dirname(dirs));
37
+
cc-multilingual-main/cc_net/vcpkg/ports/libopensp/portfile.cmake ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(PATCHES
2
+ opensp_1.5.2-13.diff # http://deb.debian.org/debian/pool/main/o/opensp/opensp_1.5.2-13.diff.gz
3
+ use-cpp-using-declarations.patch
4
+ )
5
+ if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
6
+ list(APPEND PATCHES windows_cmake_build.diff) # https://invent.kde.org/packaging/craft-blueprints-kde/-/tree/master/libs/libopensp
7
+ endif()
8
+ if (VCPKG_TARGET_IS_UWP)
9
+ list(APPEND PATCHES uwp_getenv_fix.diff)
10
+ endif()
11
+
12
+ vcpkg_download_distfile(ARCHIVE
13
+ URLS "https://downloads.sourceforge.net/project/openjade/opensp/${VERSION}/OpenSP-${VERSION}.tar.gz"
14
+ FILENAME "OpenSP-${VERSION}.tar.gz"
15
+ SHA512 a7dcc246ba7f58969ecd6d107c7b82dede811e65f375b7aa3e683621f2c6ff3e7dccefdd79098fcadad6cca8bb94c2933c63f4701be2c002f9a56f1bbe6b047e
16
+ )
17
+
18
+ vcpkg_extract_source_archive(
19
+ SOURCE_PATH
20
+ ARCHIVE "${ARCHIVE}"
21
+ SOURCE_BASE ${VERSION}
22
+ PATCHES ${PATCHES}
23
+ )
24
+
25
+ if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
26
+ vcpkg_cmake_configure(
27
+ SOURCE_PATH "${SOURCE_PATH}"
28
+ )
29
+
30
+ vcpkg_cmake_install()
31
+ else()
32
+ if(VCPKG_TARGET_IS_OSX)
33
+ # libintl links to those
34
+ set(EXTRA_LIBS "-framework CoreFoundation -lintl -liconv")
35
+ endif()
36
+
37
+ vcpkg_configure_make(
38
+ AUTOCONFIG
39
+ SOURCE_PATH "${SOURCE_PATH}"
40
+ OPTIONS
41
+ --disable-doc-build
42
+ "LDFLAGS=${EXTRA_LIBS} \$LDFLAGS"
43
+ )
44
+
45
+ vcpkg_install_make()
46
+ endif()
47
+
48
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/opensp.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/opensp.pc" @ONLY)
49
+ vcpkg_fixup_pkgconfig()
50
+ vcpkg_copy_pdbs()
51
+
52
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
53
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
54
+ endif()
55
+
56
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
57
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
58
+
59
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
cc-multilingual-main/cc_net/vcpkg/ports/libopensp/use-cpp-using-declarations.patch ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/include/IList.h b/include/IList.h
2
+ index e66cd00..c94cfed 100644
3
+ --- a/include/IList.h
4
+ +++ b/include/IList.h
5
+ @@ -26,7 +26,9 @@ public:
6
+ void swap(IList<T> &list) { IListBase::swap(list); }
7
+ T *head() const { return (T *)IListBase::head(); }
8
+ T *get() { return (T *)IListBase::get(); }
9
+ + using
10
+ IListBase::clear;
11
+ + using
12
+ IListBase::empty;
13
+ friend class IListIter<T>;
14
+ private:
15
+ diff --git a/include/IListIter.h b/include/IListIter.h
16
+ index 74e1bd6..d322bf8 100644
17
+ --- a/include/IListIter.h
18
+ +++ b/include/IListIter.h
19
+ @@ -17,7 +17,9 @@ public:
20
+ IListIter(const IList<T> &list) : IListIterBase(list) { }
21
+ T *cur() const { return (T *)IListIterBase::cur(); }
22
+
23
+ + using
24
+ IListIterBase::next;
25
+ + using
26
+ IListIterBase::done;
27
+ };
28
+
29
+ diff --git a/include/Ptr.h b/include/Ptr.h
30
+ index c6b2767..5dda0ca 100644
31
+ --- a/include/Ptr.h
32
+ +++ b/include/Ptr.h
33
+ @@ -69,7 +69,9 @@ public:
34
+ const T *operator->() const { return Ptr<T>::pointer(); }
35
+ const T &operator*() const { return *Ptr<T>::pointer(); }
36
+ void swap(ConstPtr<T> &p) { Ptr<T>::swap(p); }
37
+ + using
38
+ Ptr<T>::isNull;
39
+ + using
40
+ Ptr<T>::clear;
41
+ Boolean operator==(const Ptr<T> &p) const { return Ptr<T>::operator==(p); }
42
+ Boolean operator!=(const Ptr<T> &p) const { return Ptr<T>::operator!=(p); }
43
+ diff --git a/lib/Parser.h b/lib/Parser.h
44
+ index e721000..c6c41b2 100644
45
+ --- a/lib/Parser.h
46
+ +++ b/lib/Parser.h
47
+ @@ -62,15 +62,25 @@ public:
48
+ Parser(const SgmlParser::Params &);
49
+ Event *nextEvent();
50
+ void parseAll(EventHandler &, const volatile sig_atomic_t *cancelPtr);
51
+ + using
52
+ ParserState::sdPointer;
53
+ + using
54
+ ParserState::instanceSyntaxPointer;
55
+ + using
56
+ ParserState::prologSyntaxPointer;
57
+ + using
58
+ ParserState::activateLinkType;
59
+ + using
60
+ ParserState::allLinkTypesActivated;
61
+ + using
62
+ ParserState::entityManager;
63
+ + using
64
+ ParserState::entityCatalog;
65
+ + using
66
+ ParserState::baseDtd;
67
+ + using
68
+ ParserState::options;
69
+ + using
70
+ ParserState::instantiateDtd;
71
+ friend class PiAttspecParser;
72
+ private:
cc-multilingual-main/cc_net/vcpkg/ports/libopensp/uwp_getenv_fix.diff ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config.h b/config.h
2
+ index 6a2b097..7db8a93 100644
3
+ --- a/config.h
4
+ +++ b/config.h
5
+ @@ -64,6 +64,8 @@
6
+ #pragma warning ( disable : 4251 ) // __declspec(dllexport)
7
+ #pragma warning ( disable : 4275 )
8
+ #pragma warning ( disable : 4237 ) // future reserved keyword
9
+ +#pragma warning ( disable : 4996 ) // 'getenv': This function or variable may be unsafe (on UWP)
10
+ +#pragma warning ( disable : 4703 ) // potentially uninitialized local pointer variable 'declaredValue'
11
+ #define huge verybig
12
+ #if _MSC_VER == 900
13
+ #define SP_DECLARE_PLACEMENT_OPERATOR_NEW
cc-multilingual-main/cc_net/vcpkg/ports/libopensp/vcpkg.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libopensp",
3
+ "version": "1.5.2",
4
+ "port-version": 3,
5
+ "description": "SGML parser algorithm",
6
+ "homepage": "http://openjade.sourceforge.net",
7
+ "license": "MIT",
8
+ "dependencies": [
9
+ {
10
+ "name": "gettext",
11
+ "platform": "!(windows | uwp)"
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true,
16
+ "platform": "windows"
17
+ },
18
+ {
19
+ "name": "vcpkg-cmake-config",
20
+ "host": true,
21
+ "platform": "windows"
22
+ }
23
+ ]
24
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libopensp/windows_cmake_build.diff ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff -Nru -x '*~' OpenSP-1.5.2.orig/CMakeLists.txt OpenSP-1.5.2/CMakeLists.txt
2
+ --- OpenSP-1.5.2.orig/CMakeLists.txt 1970-01-01 02:00:00.000000000 +0200
3
+ +++ OpenSP-1.5.2/CMakeLists.txt 2014-08-24 17:23:19.941495700 +0300
4
+ @@ -0,0 +1,20 @@
5
+ +project(opensp)
6
+ +
7
+ +cmake_minimum_required(VERSION 2.6)
8
+ +
9
+ +include_directories(
10
+ + .
11
+ + include
12
+ + generic
13
+ +)
14
+ +
15
+ +file(GLOB SRC_SOURCES lib/*.cxx)
16
+ +file(GLOB libopensp_HEADERS config.h generic/*.h include/*.h)
17
+ +
18
+ +add_library(opensp ${SRC_SOURCES})
19
+ +set_target_properties(opensp PROPERTIES OUTPUT_NAME "osp")
20
+ +target_link_libraries(opensp)
21
+ +
22
+ +install(TARGETS opensp RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
23
+ +install(FILES ${libopensp_HEADERS} DESTINATION include/opensp)
24
+ +
25
+ diff -Nru -x '*~' OpenSP-1.5.2.orig/config.h OpenSP-1.5.2/config.h
26
+ --- OpenSP-1.5.2.orig/config.h 2005-12-23 16:16:30.000000000 +0200
27
+ +++ OpenSP-1.5.2/config.h 2014-08-24 17:26:33.724698900 +0300
28
+ @@ -26,6 +26,12 @@
29
+ #endif
30
+ #endif /* __GNUG__ */
31
+
32
+ +#ifdef __MINGW32__
33
+ +#define SP_HAVE_BOOL
34
+ +#define SP_HAVE_TYPENAME
35
+ +#define SP_DEFINE_TEMPLATES
36
+ +#endif /* __MINGW32__ */
37
+ +
38
+ #if defined(sun) || defined(__sun)
39
+ // struct stat has st_blksize member
40
+ #define SP_STAT_BLKSIZE
41
+ @@ -80,6 +86,11 @@
42
+ #define SP_HAVE_TYPENAME
43
+ #endif
44
+
45
+ +#if _MSC_VER >=1800
46
+ +// Visual Studio 2013
47
+ +#define SP_ANSI_FOR_SCOPE
48
+ +#endif
49
+ +
50
+ #define SP_HAVE_SETMODE
51
+ #define SP_DLLEXPORT __declspec(dllexport)
52
+ #define SP_DLLIMPORT __declspec(dllimport)
53
+ @@ -301,12 +312,5 @@
54
+ #define PATH_SEPARATOR ':'
55
+ #endif
56
+
57
+ -
58
+ -/* new stuff */
59
+ -
60
+ -#ifndef HAVE_MUTABLE
61
+ -#define mutable
62
+ -#endif
63
+ -
64
+ // NOTE: This is processed as a Makefile, not as a header by autoconf.
65
+ #define SP_PACKAGE "OpenSP"
66
+ diff -Nru -x '*~' OpenSP-1.5.2.orig/generic/SGMLApplication.h OpenSP-1.5.2/generic/SGMLApplication.h
67
+ --- OpenSP-1.5.2.orig/generic/SGMLApplication.h 2005-05-14 12:17:41.000000000 +0300
68
+ +++ OpenSP-1.5.2/generic/SGMLApplication.h 2014-08-24 17:23:19.957120700 +0300
69
+ @@ -269,6 +269,7 @@
70
+ unsigned count_;
71
+ friend class OpenEntityPtr;
72
+ };
73
+ + SGMLApplication();
74
+ virtual ~SGMLApplication();
75
+ virtual void appinfo(const AppinfoEvent &);
76
+ virtual void startDtd(const StartDtdEvent &);
77
+ diff -Nru -x '*~' OpenSP-1.5.2.orig/include/OutputCharStream.h OpenSP-1.5.2/include/OutputCharStream.h
78
+ --- OpenSP-1.5.2.orig/include/OutputCharStream.h 2005-07-21 17:04:39.000000000 +0300
79
+ +++ OpenSP-1.5.2/include/OutputCharStream.h 2014-08-24 17:23:19.957120700 +0300
80
+ @@ -31,6 +31,7 @@
81
+ OutputCharStream &operator<<(const char *);
82
+ OutputCharStream &operator<<(const StringC &);
83
+ OutputCharStream &operator<<(unsigned long);
84
+ + OutputCharStream &operator<<(unsigned long long);
85
+ OutputCharStream &operator<<(int);
86
+ OutputCharStream &operator<<(Newline);
87
+ private:
88
+ diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/MessageReporter.cxx OpenSP-1.5.2/lib/MessageReporter.cxx
89
+ --- OpenSP-1.5.2.orig/lib/MessageReporter.cxx 2005-07-21 17:05:17.000000000 +0300
90
+ +++ OpenSP-1.5.2/lib/MessageReporter.cxx 2014-08-24 17:23:19.957120700 +0300
91
+ @@ -123,7 +123,11 @@
92
+ os() << ':';
93
+ }
94
+ if (options_ & messageNumbers)
95
+ +#ifdef _WIN64
96
+ + os() << (unsigned long long)message.type->module() << "."
97
+ +#else
98
+ os() << (unsigned long)message.type->module() << "."
99
+ +#endif
100
+ << (unsigned long)message.type->number() << ":";
101
+ switch (message.type->severity()) {
102
+ case MessageType::info:
103
+ diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/OutputCharStream.cxx OpenSP-1.5.2/lib/OutputCharStream.cxx
104
+ --- OpenSP-1.5.2.orig/lib/OutputCharStream.cxx 2005-07-21 17:05:17.000000000 +0300
105
+ +++ OpenSP-1.5.2/lib/OutputCharStream.cxx 2014-08-24 17:23:19.957120700 +0300
106
+ @@ -61,6 +61,13 @@
107
+ return *this << buf;
108
+ }
109
+
110
+ +OutputCharStream &OutputCharStream::operator<<(unsigned long long n)
111
+ +{
112
+ + char buf[sizeof(unsigned long long)*3 + 1];
113
+ + sprintf(buf, "%I64u", n);
114
+ + return *this << buf;
115
+ +}
116
+ +
117
+ OutputCharStream &OutputCharStream::operator<<(int n)
118
+ {
119
+ char buf[sizeof(int)*3 + 2];
120
+ diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/SGMLApplication.cxx OpenSP-1.5.2/lib/SGMLApplication.cxx
121
+ --- OpenSP-1.5.2.orig/lib/SGMLApplication.cxx 2005-07-21 17:05:18.000000000 +0300
122
+ +++ OpenSP-1.5.2/lib/SGMLApplication.cxx 2014-08-24 17:23:19.972745700 +0300
123
+ @@ -9,6 +9,10 @@
124
+ #include "Boolean.h"
125
+ #include "SGMLApplication.h"
126
+
127
+ +SGMLApplication::SGMLApplication()
128
+ +{
129
+ +}
130
+ +
131
+ SGMLApplication::~SGMLApplication()
132
+ {
133
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-install-py.patch ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/bindings/perl/lib/CMakeLists.txt b/bindings/perl/lib/CMakeLists.txt
2
+ index 7c36e51..ee2c5bc 100644
3
+ --- a/bindings/perl/lib/CMakeLists.txt
4
+ +++ b/bindings/perl/lib/CMakeLists.txt
5
+ @@ -1,2 +1 @@
6
+ add_custom_target(PMlibproxy ALL ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.pm ${CMAKE_BINARY_DIR}/perl/Net/Libproxy.pm)
7
+ -install( FILES Libproxy.pm DESTINATION ${PX_PERL_ARCH}/Net )
8
+ diff --git a/bindings/perl/src/CMakeLists.txt b/bindings/perl/src/CMakeLists.txt
9
+ index 29e656d..dec5799 100644
10
+ --- a/bindings/perl/src/CMakeLists.txt
11
+ +++ b/bindings/perl/src/CMakeLists.txt
12
+ @@ -20,5 +20,3 @@ endif()
13
+ target_link_libraries(PLlibproxy ${PLlibproxy_LIB_DEPENDENCIES})
14
+ set_target_properties(PLlibproxy PROPERTIES OUTPUT_NAME "Libproxy")
15
+ set_target_properties(PLlibproxy PROPERTIES PREFIX "")
16
+ -
17
+ -install( TARGETS PLlibproxy DESTINATION ${PX_PERL_ARCH}/auto/Net/Libproxy )
18
+ diff --git a/bindings/python/python2/CMakeLists.txt b/bindings/python/python2/CMakeLists.txt
19
+ index f4d2b91..a79decc 100644
20
+ --- a/bindings/python/python2/CMakeLists.txt
21
+ +++ b/bindings/python/python2/CMakeLists.txt
22
+ @@ -21,5 +21,4 @@ if(PYTHON2INTERP_FOUND)
23
+
24
+ message(STATUS "Using PYTHON2_SITEPKG_DIR=${PYTHON2_SITEPKG_DIR}")
25
+
26
+ - install(FILES ../libproxy.py DESTINATION ${PYTHON2_SITEPKG_DIR})
27
+ endif()
28
+ diff --git a/bindings/python/python3/CMakeLists.txt b/bindings/python/python3/CMakeLists.txt
29
+ index fc3b24b..a13b6b7 100644
30
+ --- a/bindings/python/python3/CMakeLists.txt
31
+ +++ b/bindings/python/python3/CMakeLists.txt
32
+ @@ -21,5 +21,4 @@ if(PYTHON3INTERP_FOUND)
33
+
34
+ message(STATUS "Using PYTHON3_SITEPKG_DIR=${PYTHON3_SITEPKG_DIR}")
35
+
36
+ - install(FILES ../libproxy.py DESTINATION ${PYTHON3_SITEPKG_DIR})
37
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/libproxy/fix-module-lib-name.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/libproxy/Findlibproxy.cmake.in b/libproxy/Findlibproxy.cmake.in
2
+ index ef44489..c0bd2ae 100644
3
+ --- a/libproxy/Findlibproxy.cmake.in
4
+ +++ b/libproxy/Findlibproxy.cmake.in
5
+ @@ -12,7 +12,7 @@
6
+
7
+ # Find proxy.h and the corresponding library (libproxy.so)
8
+ FIND_PATH(LIBPROXY_INCLUDE_DIR proxy.h )
9
+ -FIND_LIBRARY(LIBPROXY_LIBRARIES NAMES proxy )
10
+ +FIND_LIBRARY(LIBPROXY_LIBRARIES NAMES proxy libproxy)
11
+
12
+ # Set library version
13
+ SET(LIBPROXY_VERSION @PROJECT_VERSION@)
cc-multilingual-main/cc_net/vcpkg/ports/libproxy/portfile.cmake ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO libproxy/libproxy
4
+ REF "${VERSION}"
5
+ SHA512 1148d688a9f070273a1a2b110a788561789799089660292bbba59fbf0a9caf7d28cb039a9ccdcb935f752e1e34739b2d2f4c784b1bb3bbaa03d108e7b38a4754
6
+ HEAD_REF master
7
+ PATCHES
8
+ support-windows.patch
9
+ fix-install-py.patch
10
+ fix-module-lib-name.patch
11
+ )
12
+
13
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATICCRT)
14
+
15
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
16
+ FEATURES
17
+ bindings-csharp WITH_DOTNET
18
+ bindings-python WITH_PYTHON2
19
+ bindings-python WITH_PYTHON3
20
+ bindings-perl WITH_PERL
21
+ bindings-vala WITH_VALA
22
+ tools BUILD_TOOLS
23
+ tests BUILD_TESTING
24
+ )
25
+
26
+ vcpkg_cmake_configure(
27
+ SOURCE_PATH "${SOURCE_PATH}"
28
+ OPTIONS ${FEATURE_OPTIONS}
29
+ -DWITH_WEBKIT3=OFF
30
+ -DWITH_KDE=${VCPKG_TARGET_IS_LINUX}
31
+ -DMSVC_STATIC=${STATICCRT}
32
+ -DWITH_GNOME3=OFF
33
+ MAYBE_UNUSED_VARIABLES
34
+ WITH_DOTNET
35
+ WITH_PERL
36
+ WITH_PYTHON2
37
+ WITH_PYTHON3
38
+ WITH_VALA
39
+ MSVC_STATIC
40
+ BUILD_TOOLS
41
+ WITH_GNOME3
42
+ )
43
+
44
+ vcpkg_cmake_install()
45
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Modules)
46
+ vcpkg_copy_pdbs()
47
+ vcpkg_fixup_pkgconfig()
48
+
49
+ vcpkg_copy_tools(TOOL_NAMES proxy AUTO_CLEAN)
50
+
51
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
52
+ "${CMAKE_CURRENT_LIST_DIR}/usage"
53
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
54
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
55
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
56
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
57
+ endif()
58
+
59
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
cc-multilingual-main/cc_net/vcpkg/ports/libproxy/support-windows.patch ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/paths.cmk b/cmake/paths.cmk
2
+ index 593ebc1..bbf8754 100644
3
+ --- a/cmake/paths.cmk
4
+ +++ b/cmake/paths.cmk
5
+ @@ -1,4 +1,4 @@
6
+ -if(WIN32 AND NOT MINGW)
7
+ +if(0)
8
+ set(CMAKE_INSTALL_PREFIX "" CACHE PATH "Install prefix")
9
+ set(BIN_INSTALL_DIR . CACHE PATH "Binary install dir")
10
+ set(LIB_INSTALL_DIR . CACHE PATH "Library install dir")
11
+ diff --git a/libproxy/cmake/devfiles.cmk b/libproxy/cmake/devfiles.cmk
12
+ index 0301dce..0eb5f83 100644
13
+ --- a/libproxy/cmake/devfiles.cmk
14
+ +++ b/libproxy/cmake/devfiles.cmk
15
+ @@ -1,4 +1,4 @@
16
+ -if(NOT WIN32 OR MINGW)
17
+ +if(1)
18
+ # PkgConfig file
19
+ set (PKGCONFIG_PREFIX ${CMAKE_INSTALL_PREFIX})
20
+
21
+ diff --git a/libproxy/cmake/libproxy.cmk b/libproxy/cmake/libproxy.cmk
22
+ index de68e5c..9356486 100644
23
+ --- a/libproxy/cmake/libproxy.cmk
24
+ +++ b/libproxy/cmake/libproxy.cmk
25
+ @@ -24,5 +24,5 @@ set_target_properties(libproxy PROPERTIES LINK_INTERFACE_LIBRARIES "")
26
+ if(NOT APPLE)
27
+ set_target_properties(libproxy PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libproxy.map")
28
+ endif()
29
+ -install(TARGETS libproxy DESTINATION ${LIB_INSTALL_DIR})
30
+ +install(TARGETS libproxy RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
31
+ install(FILES proxy.h DESTINATION ${INCLUDE_INSTALL_DIR})
32
+ diff --git a/libproxy/cmake/pkgconfig.cmk b/libproxy/cmake/pkgconfig.cmk
33
+ index 89bfc62..ffa0897 100644
34
+ --- a/libproxy/cmake/pkgconfig.cmk
35
+ +++ b/libproxy/cmake/pkgconfig.cmk
36
+ @@ -1,4 +1,4 @@
37
+ -if(NOT WIN32 AND NOT APPLE)
38
+ +if(NOT WIN32)
39
+ find_package(PkgConfig)
40
+
41
+ # Define our magical px_check_modules function
cc-multilingual-main/cc_net/vcpkg/ports/libproxy/usage ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ The package libproxy provides CMake targets:
2
+
3
+ find_package(libproxy REQUIRED)
4
+ target_include_directories(main PRIVATE ${LIBPROXY_INCLUDE_DIR})
5
+ target_link_libraries(main PRIVATE ${LIBPROXY_LIBRARIES})
cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ set(LIBPROXY_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
2
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
3
+
4
+ _find_package(${ARGS})
5
+
6
+ set(CMAKE_MODULE_PATH ${LIBPROXY_PREV_MODULE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/libproxy/vcpkg.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libproxy",
3
+ "version": "0.4.18",
4
+ "port-version": 3,
5
+ "description": "libproxy is a library that provides automatic proxy configuration management.",
6
+ "homepage": "https://github.com/libproxy/libproxy",
7
+ "license": "LGPL-2.1-only",
8
+ "supports": "!(uwp | xbox | android)",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ],
19
+ "features": {
20
+ "bindings-csharp": {
21
+ "description": "Install C# bindings"
22
+ },
23
+ "bindings-perl": {
24
+ "description": "Install PERL bindings"
25
+ },
26
+ "bindings-python": {
27
+ "description": "Install Python bindings"
28
+ },
29
+ "bindings-ruby": {
30
+ "description": "Install Ruby bindings"
31
+ },
32
+ "bindings-vala": {
33
+ "description": "Install Vala bindings"
34
+ },
35
+ "tests": {
36
+ "description": "Build libproxy tests"
37
+ },
38
+ "tools": {
39
+ "description": "build tools"
40
+ }
41
+ }
42
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/portfile.cmake ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO claytonotey/libsbsms
4
+ REF 2.3.0
5
+ SHA512 e5b544c2bdbaa2169236987c7a043838c8d1761b25280c476d7a32656d482c6485cb33f579ea9d1ce586ec7b2913ed8fdcf1abe5c7cc8b9e4eef9ce87de54627
6
+ HEAD_REF main
7
+ )
8
+
9
+ vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
10
+ vcpkg_cmake_install()
11
+
12
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/sbsms" PACKAGE_NAME sbsms)
13
+ vcpkg_fixup_pkgconfig()
14
+ vcpkg_copy_pdbs()
15
+
16
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
17
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
cc-multilingual-main/cc_net/vcpkg/ports/libsbsms/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libsbsms",
3
+ "version-semver": "2.3.0",
4
+ "description": "libsbsms is a library for high quality time and pitch scale modification of digital audio. It uses octave subband sinusoidal modeling.",
5
+ "homepage": "https://github.com/claytonotey/libsbsms",
6
+ "license": "GPL-2.0-or-later",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libxmp/portfile.cmake ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO libxmp/libxmp
4
+ REF libxmp-${VERSION}
5
+ SHA512 5f7690e274f3857bd6889cd2ba637473f4a85359a6ef87c76313f87d0c725e3880ba6e428b542dbbf0c8a7725a87b5019289b3f19d2c5bb49527b380f1b4f7e4
6
+ PATCHES
7
+ fix-cmake-config-dir.patch
8
+ )
9
+
10
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
11
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
12
+
13
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
14
+ INVERTED_FEATURES
15
+ depackers LIBXMP_DISABLE_DEPACKERS
16
+ prowizard LIBXMP_DISABLE_PROWIZARD
17
+ )
18
+
19
+ vcpkg_cmake_configure(
20
+ SOURCE_PATH "${SOURCE_PATH}"
21
+ OPTIONS
22
+ ${FEATURE_OPTIONS}
23
+ -DBUILD_STATIC=${BUILD_STATIC}
24
+ -DBUILD_SHARED=${BUILD_SHARED}
25
+ -DLIBXMP_DOCS=OFF
26
+ )
27
+
28
+ vcpkg_cmake_install()
29
+ vcpkg_copy_pdbs()
30
+
31
+ vcpkg_cmake_config_fixup(
32
+ PACKAGE_NAME "libxmp"
33
+ CONFIG_PATH "lib/cmake/libxmp"
34
+ )
35
+
36
+ vcpkg_fixup_pkgconfig()
37
+
38
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
39
+
40
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
41
+
42
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/docs/COPYING.LIB")
cc-multilingual-main/cc_net/vcpkg/ports/libxmp/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ libxmp provides CMake targets:
2
+
3
+ find_package(libxmp CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:libxmp::xmp_shared>,libxmp::xmp_shared,libxmp::xmp_static>)
cc-multilingual-main/cc_net/vcpkg/ports/libxmp/vcpkg.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxmp",
3
+ "version": "4.6.0",
4
+ "port-version": 1,
5
+ "description": "Libxmp is a library that renders module files to PCM data.",
6
+ "homepage": "https://sourceforge.net/projects/xmp/",
7
+ "license": "LGPL-2.1-or-later",
8
+ "supports": "!xbox",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ],
19
+ "default-features": [
20
+ "depackers",
21
+ "prowizard"
22
+ ],
23
+ "features": {
24
+ "depackers": {
25
+ "description": "Enable archive depackers."
26
+ },
27
+ "prowizard": {
28
+ "description": "Enable ProWizard format loaders."
29
+ }
30
+ }
31
+ }
cc-multilingual-main/cc_net/vcpkg/ports/lzfse/disable-cli-option.patch ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 336a68d..96a2a74 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -67,18 +67,20 @@ add_library(lzfse
6
+ src/lzvn_encode_base.c)
7
+ lzfse_add_compiler_flags(lzfse -Wall -Wno-unknown-pragmas -Wno-unused-variable)
8
+
9
+ -add_executable(lzfse_cli
10
+ - src/lzfse_main.c)
11
+ -target_link_libraries(lzfse_cli lzfse)
12
+ -set_target_properties(lzfse_cli PROPERTIES OUTPUT_NAME lzfse)
13
+ -lzfse_add_compiler_flags(lzfse_cli -Wall -Wno-unknown-pragmas -Wno-unused-variable)
14
+ -
15
+ -if(CMAKE_VERSION VERSION_LESS 3.1 OR CMAKE_C_COMPLIER_ID STREQUAL "Intel")
16
+ - lzfse_add_compiler_flags(lzfse -std=c99)
17
+ - lzfse_add_compiler_flags(lzfse_cli -std=c99)
18
+ -else()
19
+ - set_property(TARGET lzfse PROPERTY C_STANDARD 99)
20
+ - set_property(TARGET lzfse_cli PROPERTY C_STANDARD 99)
21
+ +if(NOT LZFSE_DISABLE_CLI)
22
+ + add_executable(lzfse_cli
23
+ + src/lzfse_main.c)
24
+ + target_link_libraries(lzfse_cli lzfse)
25
+ + set_target_properties(lzfse_cli PROPERTIES OUTPUT_NAME lzfse)
26
+ + lzfse_add_compiler_flags(lzfse_cli -Wall -Wno-unknown-pragmas -Wno-unused-variable)
27
+ +
28
+ + if(CMAKE_VERSION VERSION_LESS 3.1 OR CMAKE_C_COMPLIER_ID STREQUAL "Intel")
29
+ + lzfse_add_compiler_flags(lzfse -std=c99)
30
+ + lzfse_add_compiler_flags(lzfse_cli -std=c99)
31
+ + else()
32
+ + set_property(TARGET lzfse PROPERTY C_STANDARD 99)
33
+ + set_property(TARGET lzfse_cli PROPERTY C_STANDARD 99)
34
+ + endif()
35
+ endif()
36
+
37
+ set_target_properties(lzfse PROPERTIES
38
+ @@ -95,7 +97,12 @@ endif()
39
+ if(NOT LZFSE_BUNDLE_MODE)
40
+ include(GNUInstallDirs)
41
+
42
+ - install(TARGETS lzfse lzfse_cli
43
+ + if(NOT LZFSE_DISABLE_CLI)
44
+ + install(TARGETS lzfse_cli
45
+ + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
46
+ + endif()
47
+ +
48
+ + install(TARGETS lzfse
49
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
50
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
51
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
cc-multilingual-main/cc_net/vcpkg/ports/lzfse/portfile.cmake ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
2
+ message(FATAL_ERROR "ARM build not supported")
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO lzfse/lzfse
8
+ REF lzfse-1.0
9
+ SHA512 9d7ca44e6d3d2bdf4b82b0eb66c14922369b8b6fe2cf891187a77c6708b8d26c2c1b2ccddec6059e85dbbbb37c497419549f02812b5f34d06238ac246a8cf912
10
+ HEAD_REF master
11
+ PATCHES
12
+ disable-cli-option.patch
13
+ )
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ -DLZFSE_DISABLE_TESTS=ON
19
+ -DLZFSE_DISABLE_CLI=ON)
20
+
21
+ vcpkg_cmake_install()
22
+ vcpkg_copy_pdbs()
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
25
+
26
+ file(READ "${CURRENT_PACKAGES_DIR}/include/lzfse.h" LZFSE_H)
27
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
28
+ string(REPLACE "defined(LZFSE_DLL)" "1" LZFSE_H "${LZFSE_H}")
29
+ else()
30
+ string(REPLACE "defined(LZFSE_DLL)" "0" LZFSE_H "${LZFSE_H}")
31
+ endif()
32
+ file(WRITE "${CURRENT_PACKAGES_DIR}/include/lzfse.h" "${LZFSE_H}")
33
+
34
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)