applied-ai-018 commited on
Commit
d4cab96
·
verified ·
1 Parent(s): cf6bf2d

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/boost-chrono/portfile.cmake +14 -0
  2. cc-multilingual-main/cc_net/vcpkg/ports/boost-chrono/vcpkg.json +88 -0
  3. cc-multilingual-main/cc_net/vcpkg/ports/boost-winapi/portfile.cmake +12 -0
  4. cc-multilingual-main/cc_net/vcpkg/ports/boost-winapi/vcpkg.json +22 -0
  5. cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/usage +4 -0
  6. cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/vcpkg.json +15 -0
  7. cc-multilingual-main/cc_net/vcpkg/ports/curl/0012-fix-dependency-idn2.patch +18 -0
  8. cc-multilingual-main/cc_net/vcpkg/ports/curl/0020-fix-pc-file.patch +15 -0
  9. cc-multilingual-main/cc_net/vcpkg/ports/curl/0022-deduplicate-libs.patch +12 -0
  10. cc-multilingual-main/cc_net/vcpkg/ports/curl/cmake-project-include.cmake +94 -0
  11. cc-multilingual-main/cc_net/vcpkg/ports/curl/export-components.patch +24 -0
  12. cc-multilingual-main/cc_net/vcpkg/ports/gettext/0003-Fix-win-unicode-paths.patch +62 -0
  13. cc-multilingual-main/cc_net/vcpkg/ports/gettext/assume-modern-darwin.patch +26 -0
  14. cc-multilingual-main/cc_net/vcpkg/ports/gettext/bashify.cmake +16 -0
  15. cc-multilingual-main/cc_net/vcpkg/ports/gettext/config-step-order.patch +76 -0
  16. cc-multilingual-main/cc_net/vcpkg/ports/gettext/install-autopoint.cmake +48 -0
  17. cc-multilingual-main/cc_net/vcpkg/ports/gettext/parallel-gettext-tools.patch +25 -0
  18. cc-multilingual-main/cc_net/vcpkg/ports/gettext/portfile.cmake +210 -0
  19. cc-multilingual-main/cc_net/vcpkg/ports/gettext/rel_path.patch +31 -0
  20. cc-multilingual-main/cc_net/vcpkg/ports/gettext/subdirs.patch +127 -0
  21. cc-multilingual-main/cc_net/vcpkg/ports/gettext/uwp.patch +56 -0
  22. cc-multilingual-main/cc_net/vcpkg/ports/gettext/vcpkg-port-config.cmake +6 -0
  23. cc-multilingual-main/cc_net/vcpkg/ports/gettext/vcpkg.json +30 -0
  24. cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/CMakeLists.txt +14 -0
  25. cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/LICENSE +33 -0
  26. cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/gettimeofday.c +67 -0
  27. cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/gettimeofday.def +2 -0
  28. cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/gettimeofday.h +13 -0
  29. cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/portfile.cmake +8 -0
  30. cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/vcpkg.json +12 -0
  31. cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/CMakeLists.txt +282 -0
  32. cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/disable_graphicsmagick_modules.patch +16 -0
  33. cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/magick_types.h +133 -0
  34. cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/vcpkg.json +23 -0
  35. cc-multilingual-main/cc_net/vcpkg/ports/libcerf/001-fix-static-build.patch +13 -0
  36. cc-multilingual-main/cc_net/vcpkg/ports/libcerf/portfile.cmake +37 -0
  37. cc-multilingual-main/cc_net/vcpkg/ports/libcerf/vcpkg.json +13 -0
  38. cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/portfile.cmake +48 -0
  39. cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff +12 -0
  40. cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/usage +4 -0
  41. cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/vcpkg.json +38 -0
  42. cc-multilingual-main/cc_net/vcpkg/ports/libhsplasma/portfile.cmake +33 -0
  43. cc-multilingual-main/cc_net/vcpkg/ports/libhsplasma/vcpkg.json +30 -0
  44. cc-multilingual-main/cc_net/vcpkg/ports/libsigcpp-3/portfile.cmake +1 -0
  45. cc-multilingual-main/cc_net/vcpkg/ports/libsigcpp-3/vcpkg.json +10 -0
  46. cc-multilingual-main/cc_net/vcpkg/ports/libxcvt/portfile.cmake +18 -0
  47. cc-multilingual-main/cc_net/vcpkg/ports/libxcvt/vcpkg.json +15 -0
  48. cc-multilingual-main/cc_net/vcpkg/ports/materialx/portfile.cmake +70 -0
  49. cc-multilingual-main/cc_net/vcpkg/ports/materialx/vcpkg.json +32 -0
  50. cc-multilingual-main/cc_net/vcpkg/ports/minimp3/portfile.cmake +13 -0
cc-multilingual-main/cc_net/vcpkg/ports/boost-chrono/portfile.cmake ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatically generated by scripts/boost/generate-ports.ps1
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO boostorg/chrono
6
+ REF boost-${VERSION}
7
+ SHA512 4fbd3b85fa63ee904e1134d35b676941f22e77d2d2d8b2a55527c27ce6187e45fefebe2327129850f374ccd37ec0a66e8323187e1bd616f6c73623e98076c027
8
+ HEAD_REF master
9
+ )
10
+
11
+ include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
12
+ boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
13
+ include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
14
+ boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/boost-chrono/vcpkg.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-chrono",
4
+ "version": "1.84.0",
5
+ "description": "Boost chrono module",
6
+ "homepage": "https://github.com/boostorg/chrono",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-assert",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-build",
15
+ "host": true,
16
+ "version>=": "1.84.0"
17
+ },
18
+ {
19
+ "name": "boost-config",
20
+ "version>=": "1.84.0"
21
+ },
22
+ {
23
+ "name": "boost-core",
24
+ "version>=": "1.84.0"
25
+ },
26
+ {
27
+ "name": "boost-integer",
28
+ "version>=": "1.84.0"
29
+ },
30
+ {
31
+ "name": "boost-modular-build-helper",
32
+ "host": true,
33
+ "version>=": "1.84.0"
34
+ },
35
+ {
36
+ "name": "boost-move",
37
+ "version>=": "1.84.0"
38
+ },
39
+ {
40
+ "name": "boost-mpl",
41
+ "version>=": "1.84.0"
42
+ },
43
+ {
44
+ "name": "boost-predef",
45
+ "version>=": "1.84.0"
46
+ },
47
+ {
48
+ "name": "boost-ratio",
49
+ "version>=": "1.84.0"
50
+ },
51
+ {
52
+ "name": "boost-static-assert",
53
+ "version>=": "1.84.0"
54
+ },
55
+ {
56
+ "name": "boost-system",
57
+ "version>=": "1.84.0"
58
+ },
59
+ {
60
+ "name": "boost-throw-exception",
61
+ "version>=": "1.84.0"
62
+ },
63
+ {
64
+ "name": "boost-type-traits",
65
+ "version>=": "1.84.0"
66
+ },
67
+ {
68
+ "name": "boost-typeof",
69
+ "version>=": "1.84.0"
70
+ },
71
+ {
72
+ "name": "boost-utility",
73
+ "version>=": "1.84.0"
74
+ },
75
+ {
76
+ "name": "boost-vcpkg-helpers",
77
+ "version>=": "1.84.0"
78
+ },
79
+ {
80
+ "name": "boost-winapi",
81
+ "version>=": "1.84.0"
82
+ },
83
+ {
84
+ "name": "vcpkg-cmake",
85
+ "host": true
86
+ }
87
+ ]
88
+ }
cc-multilingual-main/cc_net/vcpkg/ports/boost-winapi/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/winapi
6
+ REF boost-${VERSION}
7
+ SHA512 f0d04dcdcb930f88ec47f6580bce94258bac492e885422eb67ed2d9980d066cc46f969bd6aac29687fcc3f98a252b872df5dadfb1db19fe61cb1ddbacb70f925
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-winapi/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-winapi",
4
+ "version": "1.84.0",
5
+ "description": "Boost winapi module",
6
+ "homepage": "https://github.com/boostorg/winapi",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-config",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-predef",
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/bxzstr/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package bxzstr is header only and can be used from CMake via:
2
+
3
+ find_path(BXZSTR_INCLUDE_DIRS "bxzstr.hpp" PATH_SUFFIXES "include/bxzstr")
4
+ target_include_directories(main PRIVATE ${BXZSTR_INCLUDE_DIRS})
cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "bxzstr",
3
+ "version": "1.2.0",
4
+ "port-version": 1,
5
+ "description": "A C++ header-only ZLib/libBZ2/libLZMA/Zstandard wrapper.",
6
+ "homepage": "https://github.com/tmaklin/bxzstr",
7
+ "license": "MPL-2.0",
8
+ "supports": "!xbox",
9
+ "dependencies": [
10
+ "bzip2",
11
+ "liblzma",
12
+ "zlib",
13
+ "zstd"
14
+ ]
15
+ }
cc-multilingual-main/cc_net/vcpkg/ports/curl/0012-fix-dependency-idn2.patch ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index a54c2ff..3b83a7f 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -852,11 +852,8 @@ endif()
6
+ # Check for idn2
7
+ option(USE_LIBIDN2 "Use libidn2 for IDN support" ON)
8
+ if(USE_LIBIDN2)
9
+ - check_library_exists("idn2" "idn2_lookup_ul" "" HAVE_LIBIDN2)
10
+ - if(HAVE_LIBIDN2)
11
+ - set(CURL_LIBS "idn2;${CURL_LIBS}")
12
+ - check_include_file_concat("idn2.h" HAVE_IDN2_H)
13
+ - endif()
14
+ + set(HAVE_LIBIDN2 TRUE)
15
+ + list(INSERT CURL_LIBS 0 ${LIBIDN2_LINK_LIBRARIES})
16
+ else()
17
+ set(HAVE_LIBIDN2 OFF)
18
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/curl/0020-fix-pc-file.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 3b83a7f..0ceaf5b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -1652,7 +1652,9 @@ if(NOT CURL_DISABLE_INSTALL)
6
+ set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
7
+ set(LIBCURL_LIBS "")
8
+ set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
9
+ - foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS})
10
+ + set(CURL_LIBS_FLAT "")
11
+ + vcpkg_curl_flatten(CURL_LIBS CURL_LIBS_FLAT)
12
+ + foreach(_lib ${CURL_LIBS_FLAT})
13
+ if(TARGET "${_lib}")
14
+ set(_libname "${_lib}")
15
+ get_target_property(_imported "${_libname}" IMPORTED)
cc-multilingual-main/cc_net/vcpkg/ports/curl/0022-deduplicate-libs.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 0ceaf5b..ec714a5 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -1682,6 +1682,7 @@ if(NOT CURL_DISABLE_INSTALL)
6
+ else()
7
+ set(ENABLE_SHARED "no")
8
+ set(LIBCURL_NO_SHARED "${LIBCURL_LIBS}")
9
+ + set(LIBCURL_LIBS "")
10
+ set(CPPFLAG_CURL_STATICLIB "-DCURL_STATICLIB")
11
+ endif()
12
+ if(BUILD_STATIC_LIBS)
cc-multilingual-main/cc_net/vcpkg/ports/curl/cmake-project-include.cmake ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(ANDROID AND ANDROID_NATIVE_API_LEVEL LESS 24)
2
+ # https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md
3
+ set(HAVE_FILE_OFFSET_BITS FALSE CACHE INTERNAL "")
4
+ endif()
5
+
6
+ # Process the libs and targets in the variable named by `input`
7
+ # into a flat list of libs in the variable named by `output`.
8
+ # Simplify -framework elements.
9
+ # Use -l where possible.
10
+ # Avoid duplicates.
11
+ function(vcpkg_curl_flatten input output)
12
+ set(output_libs "${${output}}")
13
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
14
+ string(REGEX REPLACE ";optimized;[^;]*|;debug" "" input_libs "VCPKG;${${input}}")
15
+ else()
16
+ string(REGEX REPLACE ";debug;[^;]*|;optimized" "" input_libs "VCPKG;${${input}}")
17
+ endif()
18
+ list(REMOVE_AT input_libs 0)
19
+ while(input_libs)
20
+ list(POP_BACK input_libs lib)
21
+ string(REGEX REPLACE "^.<LINK_ONLY:(.*)>\$" "\\1" lib "${lib}")
22
+ if(TARGET "${lib}")
23
+ set(import_lib "")
24
+ set(import_location "")
25
+ get_target_property(type "${lib}" TYPE)
26
+ if(NOT type STREQUAL "INTERFACE_LIBRARY")
27
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
28
+ get_target_property(link_libs "${lib}" IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG)
29
+ get_target_property(import_lib "${lib}" IMPORTED_IMPLIB_DEBUG)
30
+ get_target_property(import_location "${lib}" IMPORTED_LOCATION_DEBUG)
31
+ else()
32
+ get_target_property(link_libs "${lib}" IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE)
33
+ get_target_property(import_lib "${lib}" IMPORTED_IMPLIB_RELEASE)
34
+ get_target_property(import_location "${lib}" IMPORTED_LOCATION_RELEASE)
35
+ endif()
36
+ if(link_libs)
37
+ vcpkg_curl_flatten(link_libs output_libs)
38
+ endif()
39
+ get_target_property(link_libs "${lib}" IMPORTED_LINK_INTERFACE_LIBRARIES)
40
+ if(link_libs)
41
+ vcpkg_curl_flatten(link_libs output_libs)
42
+ endif()
43
+ if(NOT import_lib)
44
+ get_target_property(import_lib "${lib}" IMPORTED_IMPLIB)
45
+ endif()
46
+ if(NOT import_location)
47
+ get_target_property(import_location "${lib}" IMPORTED_LOCATION)
48
+ endif()
49
+ endif()
50
+ get_target_property(link_libs "${lib}" INTERFACE_LINK_LIBRARIES)
51
+ if(link_libs)
52
+ vcpkg_curl_flatten(link_libs output_libs)
53
+ endif()
54
+ if(import_lib)
55
+ set(lib "${import_lib}")
56
+ elseif(import_location)
57
+ set(lib "${import_location}")
58
+ endif()
59
+ endif()
60
+ if(lib MATCHES "^(.*)/([^/]*)[.]framework$")
61
+ if(CMAKE_MATCH_1 IN_LIST CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES)
62
+ set(lib "-framework ${CMAKE_MATCH_2}")
63
+ else()
64
+ set(lib "-framework ${lib}")
65
+ endif()
66
+ elseif(WIN32 AND lib MATCHES ".*/${CMAKE_IMPORT_LIBRARY_PREFIX}([^/]*)${CMAKE_IMPORT_LIBRARY_SUFFIX}")
67
+ set(lib -l${CMAKE_MATCH_1})
68
+ elseif(lib MATCHES ".*/${CMAKE_STATIC_LIBRARY_PREFIX}([^/]*)${CMAKE_STATIC_LIBRARY_SUFFIX}")
69
+ set(lib -l${CMAKE_MATCH_1})
70
+ elseif(lib MATCHES ".*/${CMAKE_SHARED_LIBRARY_PREFIX}([^/]*)${CMAKE_SHARED_LIBRARY_SUFFIX}")
71
+ set(lib -l${CMAKE_MATCH_1})
72
+ endif()
73
+ if(NOT "${lib}" IN_LIST output_libs)
74
+ list(PREPEND output_libs "${lib}")
75
+ endif()
76
+ endwhile()
77
+ set("${output}" "${output_libs}" PARENT_SCOPE)
78
+ endfunction()
79
+
80
+ if(USE_LIBIDN2)
81
+ find_package(PkgConfig REQUIRED)
82
+ pkg_check_modules(LIBIDN2 REQUIRED libidn2)
83
+ endif()
84
+
85
+ if(NOT CURL_DISABLE_LDAP AND NOT WIN32)
86
+ find_package(PkgConfig REQUIRED)
87
+ pkg_check_modules(LDAP REQUIRED ldap)
88
+ set(HAVE_LIBLDAP 1)
89
+ set(CMAKE_LDAP_INCLUDE_DIR "${LDAP_INCLUDE_DIRS}")
90
+ set(CMAKE_LDAP_LIB "${LDAP_LINK_LIBRARIES}" CACHE STRING "")
91
+ pkg_check_modules(LBER REQUIRED lber)
92
+ set(HAVE_LIBLBER 1)
93
+ set(CMAKE_LBER_LIB "${LBER_LINK_LIBRARIES}" CACHE STRING "")
94
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/curl/export-components.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ec714a5..478527e 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -1754,9 +1754,18 @@ if(NOT CURL_DISABLE_INSTALL)
6
+ DESTINATION ${CURL_INSTALL_CMAKE_DIR}
7
+ )
8
+ endif()
9
+ +
10
+ + set(components_file "${CMAKE_CURRENT_BINARY_DIR}/CURLConfigComponents.cmake")
11
+ + file(CONFIGURE OUTPUT "${components_file}" CONTENT [[
12
+ + foreach(z_vcpkg_curl_component IN ITEMS @SUPPORT_FEATURES@ @SUPPORT_PROTOCOLS@)
13
+ + if(z_vcpkg_curl_component MATCHES "^[-_a-zA-Z0-9]*$")
14
+ + set(CURL_${z_vcpkg_curl_component}_FOUND TRUE)
15
+ + endif()
16
+ + endforeach()
17
+ + ]] @ONLY)
18
+
19
+ install(
20
+ - FILES ${version_config} ${project_config}
21
+ + FILES ${version_config} ${project_config} ${components_file}
22
+ DESTINATION ${CURL_INSTALL_CMAKE_DIR}
23
+ )
24
+
cc-multilingual-main/cc_net/vcpkg/ports/gettext/0003-Fix-win-unicode-paths.patch ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/gettext-runtime/intl/loadmsgcat.c b/gettext-runtime/intl/loadmsgcat.c
2
+ index d5a5fe1..5c47f48 100644
3
+ --- a/gettext-runtime/intl/loadmsgcat.c
4
+ +++ b/gettext-runtime/intl/loadmsgcat.c
5
+ @@ -390,9 +390,56 @@ char *alloca ();
6
+ # define munmap(addr, len) __munmap (addr, len)
7
+ #elif defined _WIN32 && !defined __CYGWIN__
8
+ /* On native Windows, don't require linking with '-loldnames'. */
9
+ -# define open _open
10
+ +# define open(name, flags) _open_utf8_windows_wrapper(name, flags)
11
+ # define read _read
12
+ # define close _close
13
+ +
14
+ +/* Provide wrapper of "open" for Windows that supports UTF-8 filenames. */
15
+ +# ifndef WIN32_LEAN_AND_MEAN
16
+ +# define WIN32_LEAN_AND_MEAN
17
+ +# endif
18
+ +# ifndef WIN32_EXTRA_LEAN
19
+ +# define WIN32_EXTRA_LEAN
20
+ +# endif
21
+ +# ifndef NOMINMAX
22
+ +# define NOMINMAX
23
+ +# endif
24
+ +# include <windows.h> // For: MultiByteToWideChar
25
+ +# include <io.h>
26
+ +# include <wchar.h>
27
+ +
28
+ +int _open_utf8_windows_wrapper(
29
+ + const char *filename,
30
+ + int flags
31
+ +)
32
+ +{
33
+ + int wstr_len = -1;
34
+ + wchar_t* pUtf16FileName = NULL;
35
+ + int fh = -1;
36
+ +
37
+ + // on Windows, convert the filename from UTF-8 to UTF-16
38
+ + wstr_len = MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0);
39
+ + if (wstr_len <= 0)
40
+ + {
41
+ + // MultiByteToWideChar failed
42
+ + errno = ENOENT;
43
+ + return -1;
44
+ + }
45
+ + pUtf16FileName = malloc(wstr_len * sizeof(wchar_t));
46
+ + if (MultiByteToWideChar(CP_UTF8, 0, filename, -1, pUtf16FileName, wstr_len) == 0)
47
+ + {
48
+ + // MultiByteToWideChar failed
49
+ + free(pUtf16FileName);
50
+ + errno = ENOENT;
51
+ + return -1;
52
+ + }
53
+ +
54
+ + // and call _wopen
55
+ + fh = _wopen(pUtf16FileName, flags);
56
+ +
57
+ + free(pUtf16FileName);
58
+ + return fh;
59
+ +}
60
+ #endif
61
+
62
+ /* For those losing systems which don't have `alloca' we have to add
cc-multilingual-main/cc_net/vcpkg/ports/gettext/assume-modern-darwin.patch ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/gettext-runtime/configure b/gettext-runtime/configure
2
+ index a984774..f436a19 100755
3
+ --- a/gettext-runtime/configure
4
+ +++ b/gettext-runtime/configure
5
+ @@ -35448,7 +35448,7 @@ fi
6
+ haiku*) use_elf_origin_trick=yes ;;
7
+ # On Mac OS X 10.4 or newer, use Mac OS X tools. See
8
+ # <https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath>.
9
+ - darwin | darwin[1-7].*) ;;
10
+ + darwin[1-7].*) ;;
11
+ darwin*) use_macos_tools=yes ;;
12
+ esac
13
+ if test $is_noop = yes; then
14
+ diff --git a/gettext-tools/configure b/gettext-tools/configure
15
+ index ee64b69..2dde1f5 100755
16
+ --- a/gettext-tools/configure
17
+ +++ b/gettext-tools/configure
18
+ @@ -48606,7 +48606,7 @@ fi
19
+ haiku*) use_elf_origin_trick=yes ;;
20
+ # On Mac OS X 10.4 or newer, use Mac OS X tools. See
21
+ # <https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath>.
22
+ - darwin | darwin[1-7].*) ;;
23
+ + darwin[1-7].*) ;;
24
+ darwin*) use_macos_tools=yes ;;
25
+ esac
26
+ if test $is_noop = yes; then
cc-multilingual-main/cc_net/vcpkg/ports/gettext/bashify.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # By using bash builtin expansion, we can avoid
2
+ # expensively spawing three sub-processes (bash, echo, sed).
3
+ foreach(dir IN LISTS SOURCE_DIRS)
4
+ file(READ "${dir}/configure" script)
5
+ string(REGEX REPLACE
6
+ "(\n[a-zA-Z0-9_]*)='`[\$]ECHO \"[\$]([^\"]*)\" \\| [\$]SED \"[\$]delay_single_quote_subst\"`'"
7
+ [[\1='${\2//\\'/\\'\\\\\\'\\'}']]
8
+ script "${script}"
9
+ )
10
+ string(REPLACE
11
+ [[ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in]]
12
+ [[ case "\${!var}" in]]
13
+ script "${script}"
14
+ )
15
+ file(WRITE "${dir}/configure" "${script}")
16
+ endforeach()
cc-multilingual-main/cc_net/vcpkg/ports/gettext/config-step-order.patch ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/gettext-runtime/configure b/gettext-runtime/configure
2
+ index 2a376c6..a984774 100755
3
+ --- a/gettext-runtime/configure
4
+ +++ b/gettext-runtime/configure
5
+ @@ -22346,6 +22346,12 @@ printf "%s\n" "$acl_cv_libdirstems" >&6; }
6
+
7
+
8
+
9
+ +### Configuration step reordering
10
+ +### Similar to AM_GNU_GETTEXT(external,...), cf. gettext-runtime/m4/gettext.m4
11
+ +### Pull (include_next and) iconv lookup before actual GNU gettext lookup.
12
+ +for configuration_step in gettext-independent gettext-main ; do
13
+ +case "$configuration_step" in
14
+ +gettext-main)
15
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16
+ printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
17
+ if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
18
+ @@ -23288,6 +23294,9 @@ printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
19
+
20
+
21
+
22
+ +### Configuration step reordering
23
+ +;;
24
+ +gettext-independent)
25
+ # Check whether --enable-cross-guesses was given.
26
+ if test ${enable_cross_guesses+y}
27
+ then :
28
+ @@ -30464,6 +30473,10 @@ printf "%s\n" "$gl_cv_next_iconv_h" >&6; }
29
+ gl_next_as_first_directive=$gl_cv_next_iconv_h
30
+ fi
31
+ NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
32
+ +### Configuration step reordering
33
+ +;;
34
+ +esac
35
+ +done
36
+
37
+
38
+
39
+ diff --git a/gettext-tools/configure b/gettext-tools/configure
40
+ index 5ce6cf1..ee64b69 100755
41
+ --- a/gettext-tools/configure
42
+ +++ b/gettext-tools/configure
43
+ @@ -25735,6 +25735,12 @@ printf "%s\n" "$acl_cv_libdirstems" >&6; }
44
+
45
+
46
+
47
+ +### Configuration step reordering
48
+ +### Similar to AM_GNU_GETTEXT(external,...), cf. gettext-runtime/m4/gettext.m4
49
+ +### Pull (include_next and) iconv lookup before actual GNU gettext lookup.
50
+ +for configuration_step in gettext-independent gettext-main; do
51
+ +case "$configuration_step" in
52
+ +gettext-main)
53
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
54
+ printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
55
+ if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
56
+ @@ -27588,6 +27594,9 @@ fi
57
+
58
+
59
+
60
+ +### Configuration step reordering
61
+ +;;
62
+ +gettext-independent)
63
+ # Check whether --enable-cross-guesses was given.
64
+ if test ${enable_cross_guesses+y}
65
+ then :
66
+ @@ -38458,6 +38467,10 @@ printf "%s\n" "$gl_cv_next_iconv_h" >&6; }
67
+ gl_next_as_first_directive=$gl_cv_next_iconv_h
68
+ fi
69
+ NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
70
+ +### Configuration step reordering
71
+ +;;
72
+ +esac
73
+ +done
74
+
75
+
76
+
cc-multilingual-main/cc_net/vcpkg/ports/gettext/install-autopoint.cmake ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function(install_autopoint)
2
+ # variables for configuring autopoint.in
3
+ set(PACKAGE "gettext-tools")
4
+ set(ARCHIVE_VERSION "${VERSION}")
5
+ set(ARCHIVE_FORMAT "dirgz")
6
+ set(bindir [[${prefix}/tools/gettext/bin]])
7
+ set(datadir [[${datarootdir}]])
8
+ set(exec_prefix [[${prefix}]])
9
+ set(PATH_SEPARATOR ":")
10
+ set(RELOCATABLE "yes")
11
+
12
+ file(STRINGS "${SOURCE_PATH}/gettext-tools/configure"
13
+ VERSIONS_FROM_CONFIGURE
14
+ REGEX "^ *(ARCHIVE_VERSION|VERSION)=.*$"
15
+ )
16
+ foreach(LINE IN LISTS VERSIONS_FROM_CONFIGURE)
17
+ if(LINE MATCHES "^ *(ARCHIVE_VERSION|VERSION)='?([0-9.]+)'?$")
18
+ set(${CMAKE_MATCH_1} "${CMAKE_MATCH_2}")
19
+ endif()
20
+ endforeach()
21
+
22
+ set(WORKING_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
23
+ file(MAKE_DIRECTORY "${WORKING_DIR}")
24
+
25
+ # autopoint script
26
+ configure_file("${SOURCE_PATH}/gettext-tools/misc/autopoint.in" "${WORKING_DIR}/autopoint" @ONLY)
27
+
28
+ # data tarball
29
+ if(CMAKE_HOST_WIN32)
30
+ vcpkg_acquire_msys(MSYS_ROOT PACKAGES gzip)
31
+ vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
32
+ endif()
33
+ file(COPY "${SOURCE_PATH}/gettext-tools/misc/archive.dir.tar" DESTINATION "${WORKING_DIR}")
34
+ vcpkg_execute_required_process(
35
+ COMMAND gzip -f archive.dir.tar
36
+ WORKING_DIRECTORY "${WORKING_DIR}"
37
+ LOGNAME gzip-${TARGET_TRIPLET}
38
+ )
39
+
40
+ # installation
41
+ file(INSTALL "${WORKING_DIR}/autopoint" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin"
42
+ FILE_PERMISSIONS
43
+ OWNER_WRITE OWNER_READ OWNER_EXECUTE
44
+ GROUP_READ GROUP_EXECUTE
45
+ WORLD_READ WORLD_EXECUTE
46
+ )
47
+ file(INSTALL "${WORKING_DIR}/archive.dir.tar.gz" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gettext/gettext")
48
+ endfunction()
cc-multilingual-main/cc_net/vcpkg/ports/gettext/parallel-gettext-tools.patch ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/gettext-tools/src/Makefile.in b/gettext-tools/src/Makefile.in
2
+ index 5d60b99..d86232d 100644
3
+ --- a/gettext-tools/src/Makefile.in
4
+ +++ b/gettext-tools/src/Makefile.in
5
+ @@ -3625,7 +3625,10 @@ USEJAVA_no = 0
6
+
7
+ # Version information according to Woe32 conventions.
8
+ @WOE32_TRUE@WOE32_LDADD = gettext.res
9
+ -all: $(BUILT_SOURCES)
10
+ +@USE_INSTALLED_LIBTEXTSTYLE_FALSE@all: textstyle.h
11
+ +all:
12
+ + $(MAKE) $(AM_MAKEFLAGS) all-parallel
13
+ +all-parallel: $(BUILT_SOURCES)
14
+ $(MAKE) $(AM_MAKEFLAGS) all-am
15
+
16
+ .SUFFIXES:
17
+ @@ -5045,7 +5048,7 @@ uninstall-tcl:
18
+ # namely those which build textstyle.h, po-gram-gen.c, cldr-plural.c.
19
+ # See <https://lists.gnu.org/archive/html/bug-make/2019-05/msg00011.html>.
20
+ # So, turn off parallel execution in this Makefile.
21
+ -.NOTPARALLEL:
22
+ +# .NOTPARALLEL:
23
+
24
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
25
+ # Otherwise a system limit (for SysV at least) may be exceeded.
cc-multilingual-main/cc_net/vcpkg/ports/gettext/portfile.cmake ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This port is just to provide gettext tools and build data, not libs.
2
+ # The "core" feature depends on port gettext-libintl which provides libintl.
3
+ # The "core" feature also installs enough for running autoreconf.
4
+ # The actual tools are only enabled by opt-in features.
5
+ # These features are typically used as a host dependency.
6
+ # For fast builds in particular on Windows, the following choices are made:
7
+ # - only release build type
8
+ # - namespacing disabled (windows only)
9
+ # - configuration cache
10
+ # - using preinstalled gettext-libintl
11
+ # - skipping some subdirs
12
+ set(VCPKG_BUILD_TYPE release)
13
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
14
+
15
+ vcpkg_download_distfile(ARCHIVE
16
+ URLS "https://ftp.gnu.org/pub/gnu/gettext/gettext-${VERSION}.tar.gz"
17
+ "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gettext/gettext-${VERSION}.tar.gz"
18
+ FILENAME "gettext-${VERSION}.tar.gz"
19
+ SHA512 d8b22d7fba10052a2045f477f0a5b684d932513bdb3b295c22fbd9dfc2a9d8fccd9aefd90692136c62897149aa2f7d1145ce6618aa1f0be787cb88eba5bc09be
20
+ )
21
+
22
+ vcpkg_extract_source_archive(SOURCE_PATH
23
+ ARCHIVE "${ARCHIVE}"
24
+ PATCHES
25
+ assume-modern-darwin.patch
26
+ uwp.patch
27
+ rel_path.patch
28
+ subdirs.patch
29
+ parallel-gettext-tools.patch
30
+ config-step-order.patch
31
+ )
32
+
33
+ set(subdirs "")
34
+ if("runtime-tools" IN_LIST FEATURES)
35
+ string(APPEND subdirs " gettext-runtime")
36
+ endif()
37
+ if("tools" IN_LIST FEATURES)
38
+ string(APPEND subdirs " libtextstyle gettext-tools")
39
+ endif()
40
+ if(subdirs)
41
+ set(ENV{VCPKG_GETTEXT_SUBDIRS} "${subdirs}")
42
+
43
+ vcpkg_find_acquire_program(BISON)
44
+ cmake_path(GET BISON FILENAME BISON_NAME)
45
+ cmake_path(GET BISON PARENT_PATH BISON_PATH)
46
+ vcpkg_add_to_path("${BISON_PATH}")
47
+
48
+ if(VCPKG_HOST_IS_WINDOWS)
49
+ message(STATUS "Modifying build system for less forks")
50
+ set(ENV{CONFIG_SHELL} "/usr/bin/bash")
51
+ vcpkg_execute_required_process(
52
+ COMMAND "${CMAKE_COMMAND}"
53
+ "-DSOURCE_DIRS=.;gettext-runtime;libtextstyle;gettext-tools"
54
+ -P "${CMAKE_CURRENT_LIST_DIR}/bashify.cmake"
55
+ WORKING_DIRECTORY "${SOURCE_PATH}"
56
+ LOGNAME "bashify-${TARGET_TRIPLET}"
57
+ )
58
+ endif()
59
+
60
+ set(OPTIONS
61
+ --enable-relocatable #symbol duplication with glib-init.c?
62
+ --enable-c++
63
+ --disable-acl
64
+ --disable-csharp
65
+ --disable-curses
66
+ --disable-java
67
+ --disable-openmp
68
+ --disable-dependency-tracking
69
+ # Avoiding system dependencies and unnecessary tests
70
+ --with-included-glib
71
+ --with-included-libxml # libtextstyle won't use external libxml
72
+ --with-included-libunistring
73
+ --with-installed-libtextstyle=no
74
+ --without-cvs
75
+ --without-emacs
76
+ --without-git
77
+ --without-libcurses-prefix
78
+ --without-libncurses-prefix
79
+ --without-libtermcap-prefix
80
+ --without-libxcurses-prefix
81
+ "INTLBISON=${BISON_NAME}"
82
+ "TOOLS_BISON=${BISON_NAME}"
83
+ )
84
+
85
+ if("nls" IN_LIST FEATURES)
86
+ vcpkg_list(APPEND options "--enable-nls")
87
+ else()
88
+ vcpkg_list(APPEND options "--disable-nls")
89
+ endif()
90
+
91
+ if(VCPKG_TARGET_IS_LINUX)
92
+ # Cannot use gettext-libintl, empty port on linux
93
+ set(ENV{VCPKG_INTL} intl)
94
+ else()
95
+ # Relying on gettext-libintl
96
+ list(APPEND OPTIONS --with-included-gettext=no)
97
+ endif()
98
+ if(VCPKG_TARGET_IS_WINDOWS)
99
+ list(APPEND OPTIONS
100
+ # Faster, but not for export
101
+ --disable-namespacing
102
+ # Avoid unnecessary tests.
103
+ am_cv_func_iconv_works=yes
104
+ "--with-libiconv-prefix=${CURRENT_INSTALLED_DIR}"
105
+ "--with-libintl-prefix=${CURRENT_INSTALLED_DIR}"
106
+ # This is required. For some reason these do not get correctly identified for release builds.
107
+ ac_cv_func_wcslen=yes
108
+ ac_cv_func_memmove=yes
109
+ # The following are required for a full gettext built (libintl and tools).
110
+ gl_cv_func_printf_directive_n=no # segfaults otherwise with popup window
111
+ ac_cv_func_memset=yes # not detected in release builds
112
+ )
113
+ if(NOT VCPKG_TARGET_IS_MINGW)
114
+ list(APPEND OPTIONS
115
+ # Don't take from port dirent
116
+ ac_cv_header_dirent_h=no
117
+ # Don't take from port getopt-win32
118
+ ac_cv_header_getopt_h=no
119
+ # Don't take from port pthreads
120
+ ac_cv_header_pthread_h=no
121
+ ac_cv_header_sched_h=no
122
+ ac_cv_header_semaphore_h=no
123
+ # Detected 'no' everywhere except x64-windows-static
124
+ ac_cv_func_snprintf=no
125
+ # Detected x64 values for gnulib, overriding guesses for cross builds
126
+ gl_cv_func_fopen_mode_x=yes
127
+ gl_cv_func_frexpl_works=yes
128
+ gl_cv_func_getcwd_null=yes
129
+ gl_cv_func_mbrtowc_empty_input=no
130
+ gl_cv_func_mbsrtowcs_works=yes
131
+ gl_cv_func_printf_flag_zero=yes
132
+ gl_cv_func_printf_infinite_long_double=yes
133
+ gl_cv_func_printf_precision=yes
134
+ gl_cv_func_snprintf_truncation_c99=yes
135
+ # Detected x64 values for gettext, overriding guesses for x86 & x64-uwp
136
+ gt_cv_int_divbyzero_sigfpe=no
137
+ )
138
+ endif()
139
+ endif()
140
+
141
+ file(REMOVE "${CURRENT_BUILDTREES_DIR}/config.cache-${TARGET_TRIPLET}-rel.log")
142
+ vcpkg_configure_make(SOURCE_PATH "${SOURCE_PATH}"
143
+ DETERMINE_BUILD_TRIPLET
144
+ USE_WRAPPERS
145
+ ADDITIONAL_MSYS_PACKAGES gzip
146
+ OPTIONS
147
+ ${OPTIONS}
148
+ OPTIONS_RELEASE
149
+ "--cache-file=${CURRENT_BUILDTREES_DIR}/config.cache-${TARGET_TRIPLET}-rel.log"
150
+ )
151
+
152
+ # This helps with Windows build times, but should work everywhere in vcpkg.
153
+ # - Avoid an extra command to move a temporary file, we are building out of source.
154
+ # - Avoid a subshell just to add comments, the build dir is temporary.
155
+ # - Avoid cygpath -w when other tools handle this for us.
156
+ file(GLOB_RECURSE makefiles "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}*/*Makefile")
157
+ foreach(file IN LISTS makefiles)
158
+ file(READ "${file}" rules)
159
+ string(REGEX REPLACE "(\n\ttest -d [^ ]* [|][|] [\$][(]MKDIR_P[)][^\n;]*)(\n\t)" "\\1 || exit 1 ; \\\\\\2" rules "${rules}")
160
+ string(REGEX REPLACE "(\n\t){ echo '/[*] [^*]* [*]/'; \\\\\n\t cat ([^;\n]*); \\\\\n\t[}] > [\$]@-t\n\tmv -f [\$]@-t ([\$]@\n)" "\\1cp \\2 \\3" rules "${rules}")
161
+ string(REGEX REPLACE " > [\$]@-t\n\t[\$][(]AM_V_at[)]mv [\$]@-t ([\$]@\n)" "> \\1" rules "${rules}")
162
+ string(REGEX REPLACE "([\$}[(]COMPILE[)] -c -o [\$]@) `[\$][(]CYGPATH_W[)] '[\$]<'`" "\\1 \$<" rules "${rules}")
163
+ file(WRITE "${file}" "${rules}")
164
+ endforeach()
165
+
166
+ vcpkg_install_make()
167
+ vcpkg_copy_pdbs()
168
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
169
+ file(GLOB unix_runtime LIST_DIRECTORIES false
170
+ "${CURRENT_PACKAGES_DIR}/lib/libgettext*${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}*"
171
+ "${CURRENT_PACKAGES_DIR}/lib/libtextstyle*${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}*"
172
+ )
173
+ if(unix_runtime)
174
+ file(INSTALL ${unix_runtime} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
175
+ endif()
176
+ file(GLOB link_libs LIST_DIRECTORIES false "${CURRENT_PACKAGES_DIR}/lib/*" "${CURRENT_PACKAGES_DIR}/bin/*.dll")
177
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include" ${link_libs})
178
+ endif()
179
+
180
+ if("tools" IN_LIST FEATURES)
181
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/gettext/user-email" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../..")
182
+ else()
183
+ # A fast installation of the autopoint tool and data, needed for autoconfig
184
+ include("${CMAKE_CURRENT_LIST_DIR}/install-autopoint.cmake")
185
+ install_autopoint()
186
+ endif()
187
+
188
+ # These files can be needed to run `autoreconf`.
189
+ # We want to install these files also for fast "core" builds without "tools".
190
+ # Cf. PACKAGING for the file list.
191
+ file(INSTALL
192
+ "${SOURCE_PATH}/gettext-runtime/m4/build-to-host.m4"
193
+ "${SOURCE_PATH}/gettext-runtime/m4/gettext.m4"
194
+ "${SOURCE_PATH}/gettext-runtime/m4/iconv.m4"
195
+ "${SOURCE_PATH}/gettext-runtime/m4/intlmacosx.m4"
196
+ "${SOURCE_PATH}/gettext-runtime/m4/nls.m4"
197
+ "${SOURCE_PATH}/gettext-runtime/m4/po.m4"
198
+ "${SOURCE_PATH}/gettext-runtime/m4/progtest.m4"
199
+ "${SOURCE_PATH}/gettext-runtime/gnulib-m4/host-cpu-c-abi.m4"
200
+ "${SOURCE_PATH}/gettext-runtime/gnulib-m4/lib-ld.m4"
201
+ "${SOURCE_PATH}/gettext-runtime/gnulib-m4/lib-link.m4"
202
+ "${SOURCE_PATH}/gettext-runtime/gnulib-m4/lib-prefix.m4"
203
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/gettext/aclocal"
204
+ )
205
+
206
+ if(NOT VCPKG_CROSSCOMPILING)
207
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gettext")
208
+ endif()
209
+
210
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/gettext-runtime/COPYING" "${SOURCE_PATH}/COPYING")
cc-multilingual-main/cc_net/vcpkg/ports/gettext/rel_path.patch ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/gettext-tools/misc/autopoint.in b/gettext-tools/misc/autopoint.in
2
+ index 3a24eee5d..56b36d5ff 100644
3
+ --- a/gettext-tools/misc/autopoint.in
4
+ +++ b/gettext-tools/misc/autopoint.in
5
+ @@ -27,8 +27,9 @@ archive_version=@ARCHIVE_VERSION@
6
+
7
+ # Set variables
8
+ # - gettext_datadir directory where the data files are stored.
9
+ -prefix="@prefix@"
10
+ -datarootdir="@datarootdir@"
11
+ +
12
+ +prefix="$(dirname "$0")/../../../"
13
+ +datarootdir="${prefix}/share/gettext"
14
+ : ${gettext_datadir="@datadir@/gettext"}
15
+ : ${AUTOM4TE=autom4te}
16
+
17
+ diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in
18
+ index c78c308bf..175ad57e7 100644
19
+ --- a/gettext-tools/misc/gettextize.in
20
+ +++ b/gettext-tools/misc/gettextize.in
21
+ @@ -27,8 +27,8 @@ archive_version=@ARCHIVE_VERSION@
22
+
23
+ # Set variables
24
+ # - gettext_datadir directory where the data files are stored.
25
+ -prefix="@prefix@"
26
+ -datarootdir="@datarootdir@"
27
+ +prefix="$(dirname "$0")/../../../"
28
+ +datarootdir="${prefix}/share/gettext"
29
+ : ${gettext_datadir="@datadir@/gettext"}
30
+ : ${AUTOM4TE=autom4te}
31
+
cc-multilingual-main/cc_net/vcpkg/ports/gettext/subdirs.patch ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ index 904bdf5..e751ffc 100755
3
+ --- a/configure
4
+ +++ b/configure
5
+ @@ -2797,7 +2797,7 @@ am__tar='${AMTAR} chf - --format=ustar --owner=root --group=root "$$tardir"'
6
+
7
+
8
+
9
+ -subdirs="$subdirs gettext-runtime libtextstyle gettext-tools"
10
+ +subdirs="$subdirs gettext-runtime $(echo ${VCPKG_GETTEXT_SUBDIRS} | sed 's/gettext-runtime//')"
11
+
12
+
13
+
14
+ diff --git a/Makefile.in b/Makefile.in
15
+ index a287d38..075ddc5 100644
16
+ --- a/Makefile.in
17
+ +++ b/Makefile.in
18
+ @@ -311,7 +311,7 @@ top_builddir = @top_builddir@
19
+ top_srcdir = @top_srcdir@
20
+ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
21
+ ACLOCAL_AMFLAGS = -I m4
22
+ -SUBDIRS = gnulib-local gettext-runtime libtextstyle gettext-tools
23
+ +SUBDIRS = $(VCPKG_GETTEXT_SUBDIRS)
24
+ changelog_etc = \
25
+ gettext-runtime/ChangeLog.0 \
26
+ gettext-runtime/doc/ChangeLog.0 \
27
+ diff --git a/gettext-runtime/Makefile.in b/gettext-runtime/Makefile.in
28
+ index 8b8b5bc..bb75447 100644
29
+ --- a/gettext-runtime/Makefile.in
30
+ +++ b/gettext-runtime/Makefile.in
31
+ @@ -1487,7 +1487,7 @@ ACLOCAL_AMFLAGS = -I m4 -I ../m4 -I gnulib-m4
32
+ # The list of subdirectories depends on whether --disable-libasprintf was
33
+ # specified.
34
+ @ENABLE_LIBASPRINTF_TRUE@SUBDIR_libasprintf = libasprintf
35
+ -SUBDIRS = doc intl intl-java intl-csharp gnulib-lib $(SUBDIR_libasprintf) src po man m4 tests
36
+ +SUBDIRS = $(VCPKG_INTL) gnulib-lib src po
37
+
38
+ # Allow users to use "gnulib-tool --update".
39
+
40
+ diff --git a/gettext-runtime/configure b/gettext-runtime/configure
41
+ index a7594ed..296f3b7 100644
42
+ --- a/gettext-runtime/configure
43
+ +++ b/gettext-runtime/configure
44
+ @@ -26906,7 +26906,7 @@ printf "%s\n" "$ac_res" >&6; }
45
+
46
+ if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
47
+ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
48
+ - && test "$PACKAGE" != gettext-runtime \
49
+ + && test "$PACKAGE" != pristine-gettext-runtime \
50
+ && test "$PACKAGE" != gettext-tools \
51
+ && test "$PACKAGE" != libintl; }; then
52
+ gt_use_preinstalled_gnugettext=yes
53
+ diff --git a/gettext-runtime/libasprintf/configure b/gettext-runtime/libasprintf/configure
54
+ --- a/gettext-runtime/libasprintf/configure
55
+ +++ b/gettext-runtime/libasprintf/configure
56
+ index ff1c212..0c0dbcd 100644
57
+ @@ -11,6 +11,7 @@
58
+ #
59
+ # This configure script is free software; the Free Software Foundation
60
+ # gives unlimited permission to copy, distribute and modify it.
61
+ +exit 0;
62
+ ## -------------------- ##
63
+ ## M4sh Initialization. ##
64
+ ## -------------------- ##
65
+ diff --git a/gettext-tools/Makefile.in b/gettext-tools/Makefile.in
66
+ index 59e81a8..107856d 100644
67
+ --- a/gettext-tools/Makefile.in
68
+ +++ b/gettext-tools/Makefile.in
69
+ @@ -2872,7 +2872,7 @@ top_builddir = @top_builddir@
70
+ top_srcdir = @top_srcdir@
71
+ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
72
+ ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
73
+ -SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc
74
+ +SUBDIRS = gnulib-lib libgrep src po its projects styles misc
75
+
76
+ # Allow users to use "gnulib-tool --update".
77
+
78
+ diff --git a/gettext-tools/configure b/gettext-tools/configure
79
+ index 056a830..9abca7e 100644
80
+ --- a/gettext-tools/configure
81
+ +++ b/gettext-tools/configure
82
+ @@ -29661,7 +29661,7 @@ printf "%s\n" "$ac_res" >&6; }
83
+ if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
84
+ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
85
+ && test "$PACKAGE" != gettext-runtime \
86
+ - && test "$PACKAGE" != gettext-tools \
87
+ + && test "$PACKAGE" != pristine-gettext-tools \
88
+ && test "$PACKAGE" != libintl; }; then
89
+ gt_use_preinstalled_gnugettext=yes
90
+ else
91
+ diff --git a/gettext-tools/examples/configure b/gettext-tools/examples/configure
92
+ --- a/gettext-tools/examples/configure
93
+ +++ b/gettext-tools/examples/configure
94
+ index ff1c212..0c0dbcd 100644
95
+ @@ -11,6 +11,7 @@
96
+ #
97
+ # This configure script is free software; the Free Software Foundation
98
+ # gives unlimited permission to copy, distribute and modify it.
99
+ +exit 0;
100
+ ## -------------------- ##
101
+ ## M4sh Initialization. ##
102
+ ## -------------------- ##
103
+ diff --git a/gettext-tools/src/Makefile.in b/gettext-tools/src/Makefile.in
104
+ --- a/gettext-tools/src/Makefile.in
105
+ +++ b/gettext-tools/src/Makefile.in
106
+ index ff1c212..0c0dbcd 100644
107
+ @@ -4381,6 +4381,7 @@
108
+ $(AM_V_GEN)$(msgfilter_LINK) $(msgfilter_OBJECTS) $(msgfilter_LDADD) $(LIBS)
109
+ ../../gettext-runtime/intl/$(am__dirstamp):
110
+ @$(MKDIR_P) ../../gettext-runtime/intl
111
+ + @$(MAKE) -C ../../gettext-runtime/intl libgnuintl.h
112
+ @: > ../../gettext-runtime/intl/$(am__dirstamp)
113
+ ../../gettext-runtime/intl/msgfmt-hash-string.$(OBJEXT): \
114
+ ../../gettext-runtime/intl/$(am__dirstamp)
115
+ diff --git a/libtextstyle/Makefile.in b/libtextstyle/Makefile.in
116
+ index ff1c212..0c0dbcd 100644
117
+ --- a/libtextstyle/Makefile.in
118
+ +++ b/libtextstyle/Makefile.in
119
+ @@ -1667,7 +1667,7 @@ AUTOMAKE_OPTIONS = 1.13 gnu no-dependencies
120
+ ACLOCAL_AMFLAGS = -I m4 -I gnulib-m4
121
+
122
+ # The list of subdirectories containing Makefiles.
123
+ -SUBDIRS = lib tests adhoc-tests doc
124
+ +SUBDIRS = lib
125
+
126
+ # Allow users to use "gnulib-tool --update".
127
+
cc-multilingual-main/cc_net/vcpkg/ports/gettext/uwp.patch ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/gettext-runtime/gnulib-lib/fcntl.c b/gettext-runtime/gnulib-lib/fcntl.c
2
+ index f9753c4..3a3caee 100644
3
+ --- a/gettext-runtime/gnulib-lib/fcntl.c
4
+ +++ b/gettext-runtime/gnulib-lib/fcntl.c
5
+ @@ -38,6 +38,12 @@
6
+ # define WIN32_LEAN_AND_MEAN
7
+ # include <windows.h>
8
+
9
+ +# if defined(WINAPI_FAMILY_PARTITION)
10
+ +# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
11
+ +# define HANDLE_FLAG_INHERIT 0
12
+ +# endif
13
+ +# endif
14
+ +
15
+ /* Get _get_osfhandle. */
16
+ # if GNULIB_MSVC_NOTHROW
17
+ # include "msvc-nothrow.h"
18
+ diff --git a/gettext-runtime/gnulib-lib/localcharset.c b/gettext-runtime/gnulib-lib/localcharset.c
19
+ index ec75427..9e063e4 100644
20
+ --- a/gettext-runtime/gnulib-lib/localcharset.c
21
+ +++ b/gettext-runtime/gnulib-lib/localcharset.c
22
+ @@ -34,6 +34,9 @@
23
+ #if defined _WIN32 && !defined __CYGWIN__
24
+ # define WINDOWS_NATIVE
25
+ # include <locale.h>
26
+ +# if !defined(WINAPI_FAMILY_PARTITION)
27
+ +# define WINAPI_FAMILY_PARTITION(x) (0)
28
+ +# endif
29
+ #endif
30
+
31
+ #if defined __EMX__
32
+ @@ -912,6 +915,8 @@ locale_charset (void)
33
+ /* The canonical name cannot be determined. */
34
+ codeset = "";
35
+
36
+ +# elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
37
+ + codeset = "";
38
+ # elif defined WINDOWS_NATIVE
39
+
40
+ char buf[2 + 10 + 1];
41
+ diff --git a/gettext-runtime/gnulib-lib/localename-unsafe.c b/gettext-runtime/gnulib-lib/localename-unsafe.c
42
+ index d77bb81..3c6e055 100644
43
+ --- a/gettext-runtime/gnulib-lib/localename-unsafe.c
44
+ +++ b/gettext-runtime/gnulib-lib/localename-unsafe.c
45
+ @@ -69,6 +69,11 @@ extern char * getlocalename_l(int, locale_t);
46
+
47
+ #if defined _WIN32 && !defined __CYGWIN__
48
+ # define WINDOWS_NATIVE
49
+ +# if defined(WINAPI_FAMILY_PARTITION)
50
+ +# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
51
+ +# undef WIN32_NATIVE
52
+ +# endif
53
+ +# endif
54
+ # include "glthread/lock.h"
55
+ #endif
56
+
cc-multilingual-main/cc_net/vcpkg/ports/gettext/vcpkg-port-config.cmake ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ get_filename_component(gettext_tools_dir "${CMAKE_CURRENT_LIST_DIR}/../../tools/gettext/bin" ABSOLUTE)
2
+ if(CMAKE_HOST_WIN32)
3
+ set(ENV{PATH} "$ENV{PATH};${gettext_tools_dir}")
4
+ else()
5
+ set(ENV{PATH} "$ENV{PATH}:${gettext_tools_dir}")
6
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/gettext/vcpkg.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gettext",
3
+ "version": "0.22.5",
4
+ "description": "A GNU framework to help produce multi-lingual messages.",
5
+ "homepage": "https://www.gnu.org/software/gettext/",
6
+ "license": "GPL-3.0-only",
7
+ "supports": "!xbox",
8
+ "dependencies": [
9
+ "gettext-libintl"
10
+ ],
11
+ "features": {
12
+ "nls": {
13
+ "description": "Enable native language support"
14
+ },
15
+ "runtime-tools": {
16
+ "description": "Build runtime tools for internationalization of scripts",
17
+ "supports": "!uwp",
18
+ "dependencies": [
19
+ "libiconv"
20
+ ]
21
+ },
22
+ "tools": {
23
+ "description": "Build gettext tools",
24
+ "supports": "!uwp",
25
+ "dependencies": [
26
+ "libiconv"
27
+ ]
28
+ }
29
+ }
30
+ }
cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/CMakeLists.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(gettimeofday C)
3
+
4
+ add_library(gettimeofday gettimeofday.c gettimeofday.def)
5
+
6
+ install(TARGETS gettimeofday
7
+ RUNTIME DESTINATION bin
8
+ ARCHIVE DESTINATION lib/manual-link
9
+ LIBRARY DESTINATION lib/manual-link
10
+ )
11
+
12
+ if(CMAKE_BUILD_TYPE STREQUAL "Release")
13
+ install(FILES gettimeofday.h DESTINATION include)
14
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/LICENSE ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copied from PostgreSQL source:
3
+ * http://doxygen.postgresql.org/gettimeofday_8c_source.html
4
+ *
5
+ */
6
+
7
+ /*
8
+ * gettimeofday.c
9
+ * Win32 gettimeofday() replacement
10
+ *
11
+ * src/port/gettimeofday.c
12
+ *
13
+ * Copyright (c) 2003 SRA, Inc.
14
+ * Copyright (c) 2003 SKC, Inc.
15
+ *
16
+ * Permission to use, copy, modify, and distribute this software and
17
+ * its documentation for any purpose, without fee, and without a
18
+ * written agreement is hereby granted, provided that the above
19
+ * copyright notice and this paragraph and the following two
20
+ * paragraphs appear in all copies.
21
+ *
22
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
23
+ * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
24
+ * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
25
+ * DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED
26
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ *
28
+ * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
29
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30
+ * A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS
31
+ * IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
32
+ * SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
33
+ */
cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/gettimeofday.c ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copied from PostgreSQL source:
3
+ * http://doxygen.postgresql.org/gettimeofday_8c_source.html
4
+ *
5
+ */
6
+
7
+ /*
8
+ * gettimeofday.c
9
+ * Win32 gettimeofday() replacement
10
+ *
11
+ * src/port/gettimeofday.c
12
+ *
13
+ * Copyright (c) 2003 SRA, Inc.
14
+ * Copyright (c) 2003 SKC, Inc.
15
+ *
16
+ * Permission to use, copy, modify, and distribute this software and
17
+ * its documentation for any purpose, without fee, and without a
18
+ * written agreement is hereby granted, provided that the above
19
+ * copyright notice and this paragraph and the following two
20
+ * paragraphs appear in all copies.
21
+ *
22
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
23
+ * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
24
+ * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
25
+ * DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED
26
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ *
28
+ * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
29
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30
+ * A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS
31
+ * IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
32
+ * SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
33
+ */
34
+
35
+ #ifdef _MSC_VER
36
+
37
+ #include <winsock2.h>
38
+
39
+
40
+ /* FILETIME of Jan 1 1970 00:00:00. */
41
+ static const unsigned __int64 epoch = 116444736000000000Ui64;
42
+
43
+ /*
44
+ * timezone information is stored outside the kernel so tzp isn't used anymore.
45
+ *
46
+ * Note: this function is not for Win32 high precision timing purpose. See
47
+ * elapsed_time().
48
+ */
49
+ int
50
+ gettimeofday(struct timeval * tp, struct timezone * tzp)
51
+ {
52
+ FILETIME file_time;
53
+ SYSTEMTIME system_time;
54
+ ULARGE_INTEGER ularge;
55
+
56
+ GetSystemTime(&system_time);
57
+ SystemTimeToFileTime(&system_time, &file_time);
58
+ ularge.LowPart = file_time.dwLowDateTime;
59
+ ularge.HighPart = file_time.dwHighDateTime;
60
+
61
+ tp->tv_sec = (long) ((ularge.QuadPart - epoch) / 10000000L);
62
+ tp->tv_usec = (long) (system_time.wMilliseconds * 1000);
63
+
64
+ return 0;
65
+ }
66
+
67
+ #endif /* _MSC_VER */
cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/gettimeofday.def ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ EXPORTS
2
+ gettimeofday
cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/gettimeofday.h ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef _MY_GETTIMEOFDAY_H_
2
+ #define _MY_GETTIMEOFDAY_H_
3
+
4
+ #ifdef _MSC_VER
5
+
6
+ #include <winsock2.h>
7
+ #include <time.h>
8
+
9
+ int gettimeofday(struct timeval * tp, struct timezone * tzp);
10
+
11
+ #endif /* _MSC_VER */
12
+
13
+ #endif /* _MY_GETTIMEOFDAY_H_ */
cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/portfile.cmake ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ vcpkg_cmake_configure(
2
+ SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}"
3
+ )
4
+
5
+ vcpkg_cmake_install()
6
+ vcpkg_copy_pdbs()
7
+
8
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/gettimeofday/vcpkg.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gettimeofday",
3
+ "version-date": "2017-10-14",
4
+ "port-version": 6,
5
+ "description": "An implementation of gettimeofday for WIN32",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ }
11
+ ]
12
+ }
cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/CMakeLists.txt ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required (VERSION 3.6)
2
+ project (graphicsmagick)
3
+
4
+ find_package(ZLIB REQUIRED)
5
+ find_package(BZip2 REQUIRED)
6
+ find_package(JPEG REQUIRED)
7
+ find_package(PNG REQUIRED)
8
+ find_package(TIFF REQUIRED)
9
+ find_package(Freetype REQUIRED)
10
+
11
+ add_definitions(-D_MAGICKLIB_ -D_WANDLIB_ -DMAGICK_IMPLEMENTATION)
12
+
13
+ if (BUILD_SHARED_LIBS)
14
+ add_definitions(-D_DLL -DDLL)
15
+ endif ()
16
+
17
+ if (MSVC)
18
+ add_definitions( -D_VISUALC_ -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
19
+ endif ()
20
+
21
+ if (WIN32)
22
+ add_definitions(-DWIN32 -D_WIN32)
23
+ add_definitions(-D_WIN32_WINNT=0x0501)
24
+ endif ()
25
+
26
+ include_directories(".")
27
+ include_directories("magick")
28
+ include_directories("Magick++")
29
+ include_directories("Magick++/lib")
30
+ include_directories("wand")
31
+ include_directories("jbig/libjbig")
32
+
33
+ file(READ "magick/magick_config.h.in" CONFIG_H)
34
+ string(REPLACE "#undef HasBZLIB" "#define HasBZLIB" CONFIG_H "${CONFIG_H}")
35
+ string(REPLACE "#undef HasJPEG" "#define HasJPEG" CONFIG_H "${CONFIG_H}")
36
+ string(REPLACE "#undef HasPNG" "#define HasPNG" CONFIG_H "${CONFIG_H}")
37
+ string(REPLACE "#undef HasTIFF" "#define HasTIFF" CONFIG_H "${CONFIG_H}")
38
+ string(REPLACE "#undef HasTTF" "#define HasTTF" CONFIG_H "${CONFIG_H}")
39
+ string(REPLACE "#undef HasTTF" "#define HasTTF" CONFIG_H "${CONFIG_H}")
40
+ string(REPLACE "#undef HAVE_FT2BUILD_H" "#define HAVE_FT2BUILD_H" CONFIG_H "${CONFIG_H}")
41
+ string(REPLACE "#undef HasZLIB" "#define HasZLIB" CONFIG_H "${CONFIG_H}")
42
+ string(REPLACE "#undef HasJBIG" "#define HasJBIG" CONFIG_H "${CONFIG_H}")
43
+ string(REPLACE "#undef HasWEBP" "#define HasWEBP" CONFIG_H "${CONFIG_H}")
44
+ string(REPLACE "#undef QuantumDepth" "#define QuantumDepth 16" CONFIG_H "${CONFIG_H}")
45
+ string(REPLACE "#undef restrict" "#define restrict" CONFIG_H "${CONFIG_H}")
46
+ string(REPLACE "#undef size_t" "/* #undef size_t */" CONFIG_H "${CONFIG_H}")
47
+ if (WIN32)
48
+ string(REPLACE "#undef HasWINGDI32" "#define HasWINGDI32" CONFIG_H "${CONFIG_H}")
49
+ else ()
50
+ string(REPLACE "#undef HAVE_VSNPRINTF" "#define HAVE_VSNPRINTF" CONFIG_H "${CONFIG_H}")
51
+ string(REPLACE "#undef MagickLibSubdir" "#define MagickLibSubdir \"magick\"" CONFIG_H "${CONFIG_H}")
52
+ string(REPLACE "#undef MagickLibConfigSubDir" "#define MagickLibConfigSubDir \"magick/config\"" CONFIG_H "${CONFIG_H}")
53
+ string(REPLACE "#undef MagickShareConfigSubDir" "#define MagickShareConfigSubDir \"magick/config\"" CONFIG_H "${CONFIG_H}")
54
+ string(REPLACE "#undef HAVE_STDINT_H" "#define HAVE_STDINT_H" CONFIG_H "${CONFIG_H}")
55
+ endif ()
56
+ file(WRITE "magick/magick_config.h" "${CONFIG_H}")
57
+
58
+ file(READ "magick/magick_config_api.h.in" CONFIG_API_H)
59
+ string(REPLACE "#undef QuantumDepth" "#define QuantumDepth 16" CONFIG_API_H "${CONFIG_API_H}")
60
+ string(REPLACE "#undef size_t" "/* #undef size_t */" CONFIG_API_H "${CONFIG_API_H}")
61
+ file(WRITE "magick/magick_config_api.h" "${CONFIG_API_H}")
62
+
63
+ add_library(graphicsmagick coders/art.c coders/avs.c
64
+ coders/bmp.c coders/braille.c coders/cals.c coders/caption.c
65
+ coders/cineon.c coders/clipboard.c coders/cmyk.c
66
+ coders/cut.c coders/dcm.c coders/dcraw.c coders/dib.c
67
+ coders/dps.c coders/dpx.c coders/emf.c coders/ept.c
68
+ coders/fax.c coders/fits.c coders/fpx.c coders/gif.c
69
+ coders/gradient.c coders/gray.c coders/histogram.c
70
+ coders/hrz.c coders/html.c coders/icon.c coders/identity.c
71
+ coders/info.c coders/jbig.c coders/jnx.c coders/jp2.c
72
+ coders/jpeg.c coders/label.c coders/locale.c coders/logo.c
73
+ coders/mac.c coders/map.c coders/mat.c coders/matte.c
74
+ coders/meta.c coders/miff.c coders/mono.c coders/mpc.c
75
+ coders/mpeg.c coders/mpr.c coders/msl.c coders/mtv.c
76
+ coders/mvg.c coders/null.c coders/otb.c coders/palm.c
77
+ coders/pcd.c coders/pcl.c coders/pcx.c coders/pdb.c
78
+ coders/pdf.c coders/pict.c coders/pix.c coders/plasma.c
79
+ coders/png.c coders/pnm.c coders/preview.c coders/ps.c
80
+ coders/ps2.c coders/ps3.c coders/psd.c coders/pwp.c coders/rgb.c
81
+ coders/rla.c coders/rle.c coders/sct.c coders/sfw.c coders/sgi.c
82
+ coders/stegano.c coders/sun.c coders/svg.c coders/tga.c
83
+ coders/tiff.c coders/tile.c coders/tim.c coders/topol.c
84
+ coders/ttf.c coders/txt.c coders/uil.c coders/url.c
85
+ coders/uyvy.c coders/vicar.c coders/vid.c coders/viff.c
86
+ coders/wbmp.c coders/webp.c coders/wmf.c coders/wpg.c
87
+ coders/x.c coders/xbm.c coders/xc.c coders/xcf.c
88
+ coders/xpm.c coders/xtrn.c coders/xwd.c coders/yuv.c
89
+ filters/analyze.c
90
+ magick/analyze.c magick/animate.c magick/annotate.c magick/attribute.c
91
+ magick/average.c magick/bit_stream.c magick/blob.c magick/cdl.c
92
+ magick/channel.c magick/color.c magick/color_lookup.c magick/colormap.c
93
+ magick/colorspace.c magick/command.c magick/compare.c magick/composite.c
94
+ magick/compress.c magick/confirm_access.c magick/constitute.c magick/decorate.c
95
+ magick/delegate.c magick/deprecate.c magick/describe.c magick/display.c magick/draw.c
96
+ magick/effect.c magick/enhance.c magick/enum_strings.c magick/error.c magick/export.c
97
+ magick/floats.c magick/fx.c magick/gem.c magick/gradient.c magick/hclut.c
98
+ magick/image.c magick/import.c magick/list.c magick/locale.c magick/log.c
99
+ magick/magic.c magick/magick.c magick/magick_endian.c magick/map.c
100
+ magick/memory.c magick/module.c magick/monitor.c magick/montage.c magick/nt_base.c
101
+ magick/nt_feature.c magick/omp_data_view.c magick/operator.c magick/paint.c
102
+ magick/pixel_cache.c magick/pixel_iterator.c magick/plasma.c magick/PreRvIcccm.c
103
+ magick/profile.c magick/quantize.c magick/random.c magick/registry.c magick/render.c
104
+ magick/resize.c magick/resource.c magick/segment.c magick/semaphore.c
105
+ magick/shear.c magick/signature.c magick/static.c magick/statistics.c
106
+ magick/tempfile.c magick/texture.c magick/timer.c magick/transform.c
107
+ magick/tsd.c magick/type.c magick/unix_port.c magick/utility.c
108
+ magick/version.c magick/widget.c magick/xwindow.c
109
+ Magick++/lib/Blob.cpp Magick++/lib/BlobRef.cpp Magick++/lib/CoderInfo.cpp
110
+ Magick++/lib/Color.cpp Magick++/lib/Drawable.cpp Magick++/lib/Exception.cpp
111
+ Magick++/lib/Functions.cpp Magick++/lib/Geometry.cpp Magick++/lib/Image.cpp
112
+ Magick++/lib/ImageRef.cpp Magick++/lib/Montage.cpp Magick++/lib/Options.cpp
113
+ Magick++/lib/Pixels.cpp Magick++/lib/STL.cpp Magick++/lib/Thread.cpp
114
+ Magick++/lib/TypeMetric.cpp
115
+ wand/drawing_wand.c wand/magick_compat.c wand/magick_wand.c wand/pixel_wand.c
116
+ jbig/libjbig/jbig.c jbig/libjbig/jbig_ar.c jbig/libjbig/jbig85.c)
117
+
118
+ TARGET_LINK_LIBRARIES(graphicsmagick PRIVATE
119
+ ZLIB::ZLIB
120
+ BZip2::BZip2
121
+ #${JPEG_LIBRARIES}
122
+ JPEG::JPEG
123
+ PNG::PNG
124
+ TIFF::TIFF
125
+ Freetype::Freetype
126
+ WebP::webp WebP::webpdemux WebP::libwebpmux WebP::webpdecoder
127
+ )
128
+ target_include_directories(graphicsmagick INTERFACE $<INSTALL_INTERFACE:include>)
129
+
130
+ install(TARGETS graphicsmagick
131
+ EXPORT graphicsmagick-targets
132
+ RUNTIME DESTINATION bin
133
+ ARCHIVE DESTINATION lib
134
+ LIBRARY DESTINATION lib)
135
+
136
+ install(
137
+ EXPORT graphicsmagick-targets
138
+ FILE unofficial-graphicsmagick-targets.cmake
139
+ NAMESPACE unofficial::graphicsmagick::
140
+ DESTINATION share/unofficial-graphicsmagick
141
+ )
142
+ find_package(ZLIB REQUIRED)
143
+ find_package(BZip2 REQUIRED)
144
+ find_package(JPEG REQUIRED)
145
+ find_package(PNG REQUIRED)
146
+ find_package(TIFF REQUIRED)
147
+ find_package(Freetype REQUIRED)
148
+ find_package(WebP CONFIG REQUIRED)
149
+
150
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/unofficial-graphicsmagick-config.cmake "
151
+ include(CMakeFindDependencyMacro)
152
+ find_dependency(ZLIB)
153
+ find_dependency(BZip2)
154
+ find_dependency(JPEG)
155
+ find_dependency(PNG)
156
+ find_dependency(TIFF)
157
+ find_dependency(Freetype)
158
+ find_dependency(WebP)
159
+
160
+ include(\${CMAKE_CURRENT_LIST_DIR}/unofficial-graphicsmagick-targets.cmake)
161
+ ")
162
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-graphicsmagick-config.cmake DESTINATION share/unofficial-graphicsmagick)
163
+
164
+ option(INSTALL_HEADERS "Install development header files" ON)
165
+
166
+ if (INSTALL_HEADERS)
167
+ install(FILES magick/alpha_composite.h DESTINATION include/magick)
168
+ install(FILES magick/analyze.h DESTINATION include/magick)
169
+ install(FILES magick/api.h DESTINATION include/magick)
170
+ install(FILES magick/attribute.h DESTINATION include/magick)
171
+ install(FILES magick/average.h DESTINATION include/magick)
172
+ install(FILES magick/bit_stream.h DESTINATION include/magick)
173
+ install(FILES magick/blob.h DESTINATION include/magick)
174
+ install(FILES magick/cdl.h DESTINATION include/magick)
175
+ install(FILES magick/channel.h DESTINATION include/magick)
176
+ install(FILES magick/color.h DESTINATION include/magick)
177
+ install(FILES magick/colormap.h DESTINATION include/magick)
178
+ install(FILES magick/colorspace.h DESTINATION include/magick)
179
+ install(FILES magick/color_lookup.h DESTINATION include/magick)
180
+ install(FILES magick/command.h DESTINATION include/magick)
181
+ install(FILES magick/common.h DESTINATION include/magick)
182
+ install(FILES magick/compare.h DESTINATION include/magick)
183
+ install(FILES magick/composite.h DESTINATION include/magick)
184
+ install(FILES magick/compress.h DESTINATION include/magick)
185
+ install(FILES magick/confirm_access.h DESTINATION include/magick)
186
+ install(FILES magick/constitute.h DESTINATION include/magick)
187
+ install(FILES magick/decorate.h DESTINATION include/magick)
188
+ install(FILES magick/delegate.h DESTINATION include/magick)
189
+ install(FILES magick/deprecate.h DESTINATION include/magick)
190
+ install(FILES magick/describe.h DESTINATION include/magick)
191
+ install(FILES magick/draw.h DESTINATION include/magick)
192
+ install(FILES magick/effect.h DESTINATION include/magick)
193
+ install(FILES magick/enhance.h DESTINATION include/magick)
194
+ install(FILES magick/enum_strings.h DESTINATION include/magick)
195
+ install(FILES magick/error.h DESTINATION include/magick)
196
+ install(FILES magick/floats.h DESTINATION include/magick)
197
+ install(FILES magick/forward.h DESTINATION include/magick)
198
+ install(FILES magick/fx.h DESTINATION include/magick)
199
+ install(FILES magick/gem.h DESTINATION include/magick)
200
+ install(FILES magick/gradient.h DESTINATION include/magick)
201
+ install(FILES magick/hclut.h DESTINATION include/magick)
202
+ install(FILES magick/image.h DESTINATION include/magick)
203
+ install(FILES magick/list.h DESTINATION include/magick)
204
+ install(FILES magick/locale_c.h DESTINATION include/magick)
205
+ install(FILES magick/log.h DESTINATION include/magick)
206
+ install(FILES magick/magic.h DESTINATION include/magick)
207
+ install(FILES magick/magick.h DESTINATION include/magick)
208
+ install(FILES magick/magick_config.h DESTINATION include/magick)
209
+ install(FILES magick/magick_config_api.h DESTINATION include/magick)
210
+ install(FILES magick/magick_endian.h DESTINATION include/magick)
211
+ install(FILES magick/magick_types.h DESTINATION include/magick)
212
+ install(FILES magick/map.h DESTINATION include/magick)
213
+ install(FILES magick/memory.h DESTINATION include/magick)
214
+ install(FILES magick/module.h DESTINATION include/magick)
215
+ install(FILES magick/module_aliases.h DESTINATION include/magick)
216
+ install(FILES magick/monitor.h DESTINATION include/magick)
217
+ install(FILES magick/montage.h DESTINATION include/magick)
218
+ install(FILES magick/nt_base.h DESTINATION include/magick)
219
+ install(FILES magick/nt_feature.h DESTINATION include/magick)
220
+ install(FILES magick/omp_data_view.h DESTINATION include/magick)
221
+ install(FILES magick/operator.h DESTINATION include/magick)
222
+ install(FILES magick/paint.h DESTINATION include/magick)
223
+ install(FILES magick/pixel_cache.h DESTINATION include/magick)
224
+ install(FILES magick/pixel_iterator.h DESTINATION include/magick)
225
+ install(FILES magick/plasma.h DESTINATION include/magick)
226
+ install(FILES magick/prefetch.h DESTINATION include/magick)
227
+ install(FILES magick/PreRvIcccm.h DESTINATION include/magick)
228
+ install(FILES magick/profile.h DESTINATION include/magick)
229
+ install(FILES magick/quantize.h DESTINATION include/magick)
230
+ install(FILES magick/random-private.h DESTINATION include/magick)
231
+ install(FILES magick/random.h DESTINATION include/magick)
232
+ install(FILES magick/registry.h DESTINATION include/magick)
233
+ install(FILES magick/render.h DESTINATION include/magick)
234
+ install(FILES magick/resize.h DESTINATION include/magick)
235
+ install(FILES magick/resource.h DESTINATION include/magick)
236
+ install(FILES magick/semaphore.h DESTINATION include/magick)
237
+ install(FILES magick/shear.h DESTINATION include/magick)
238
+ install(FILES magick/signature.h DESTINATION include/magick)
239
+ install(FILES magick/spinlock.h DESTINATION include/magick)
240
+ install(FILES magick/static.h DESTINATION include/magick)
241
+ install(FILES magick/statistics.h DESTINATION include/magick)
242
+ install(FILES magick/studio.h DESTINATION include/magick)
243
+ install(FILES magick/symbols.h DESTINATION include/magick)
244
+ install(FILES magick/tempfile.h DESTINATION include/magick)
245
+ install(FILES magick/texture.h DESTINATION include/magick)
246
+ install(FILES magick/timer.h DESTINATION include/magick)
247
+ install(FILES magick/transform.h DESTINATION include/magick)
248
+ install(FILES magick/tsd.h DESTINATION include/magick)
249
+ install(FILES magick/type.h DESTINATION include/magick)
250
+ install(FILES magick/unix_port.h DESTINATION include/magick)
251
+ install(FILES magick/utility.h DESTINATION include/magick)
252
+ install(FILES magick/version.h DESTINATION include/magick)
253
+ install(FILES magick/widget.h DESTINATION include/magick)
254
+ install(FILES magick/xwindow.h DESTINATION include/magick)
255
+
256
+ install(FILES Magick++/lib/Magick++.h DESTINATION include)
257
+
258
+ install(FILES Magick++/lib/Magick++/Blob.h DESTINATION include/Magick++)
259
+ install(FILES Magick++/lib/Magick++/BlobRef.h DESTINATION include/Magick++)
260
+ install(FILES Magick++/lib/Magick++/CoderInfo.h DESTINATION include/Magick++)
261
+ install(FILES Magick++/lib/Magick++/Color.h DESTINATION include/Magick++)
262
+ install(FILES Magick++/lib/Magick++/Drawable.h DESTINATION include/Magick++)
263
+ install(FILES Magick++/lib/Magick++/Exception.h DESTINATION include/Magick++)
264
+ install(FILES Magick++/lib/Magick++/Functions.h DESTINATION include/Magick++)
265
+ install(FILES Magick++/lib/Magick++/Geometry.h DESTINATION include/Magick++)
266
+ install(FILES Magick++/lib/Magick++/Image.h DESTINATION include/Magick++/)
267
+ install(FILES Magick++/lib/Magick++/ImageRef.h DESTINATION include/Magick++)
268
+ install(FILES Magick++/lib/Magick++/Include.h DESTINATION include/Magick++)
269
+ install(FILES Magick++/lib/Magick++/Montage.h DESTINATION include/Magick++)
270
+ install(FILES Magick++/lib/Magick++/Options.h DESTINATION include/Magick++)
271
+ install(FILES Magick++/lib/Magick++/Pixels.h DESTINATION include/Magick++)
272
+ install(FILES Magick++/lib/Magick++/STL.h DESTINATION include/Magick++)
273
+ install(FILES Magick++/lib/Magick++/Thread.h DESTINATION include/Magick++)
274
+ install(FILES Magick++/lib/Magick++/TypeMetric.h DESTINATION include/Magick++)
275
+
276
+ install(FILES wand/drawing_wand.h DESTINATION include/wand)
277
+ install(FILES wand/magick_wand.h DESTINATION include/wand)
278
+ install(FILES wand/pixel_wand.h DESTINATION include/wand)
279
+ install(FILES wand/wand_api.h DESTINATION include/wand)
280
+ install(FILES wand/wand_private.h DESTINATION include/wand)
281
+ install(FILES wand/wand_symbols.h DESTINATION include/wand)
282
+ endif ()
cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/disable_graphicsmagick_modules.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/magick/studio.h 2019-12-24 13:18:50.000000000 -0200
2
+ +++ b/magick/studio.h 2020-01-08 20:43:08.325889700 -0200
3
+ @@ -470,10 +470,10 @@
4
+ */
5
+
6
+ #if defined(HasLTDL)
7
+ -# define SupportMagickModules
8
+ +//# define SupportMagickModules
9
+ #elif !defined(__MINGW32__) && !defined(__MINGW64__)
10
+ # if defined(MSWINDOWS) && defined(_DLL)
11
+ -# define SupportMagickModules
12
+ +//# define SupportMagickModules
13
+ # endif
14
+ #endif
15
+
16
+
cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/magick_types.h ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Copyright (C) 2003 - 2012 GraphicsMagick Group
3
+
4
+ This program is covered by multiple licenses, which are described in
5
+ Copyright.txt. You should have received a copy of Copyright.txt with this
6
+ package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
7
+
8
+ GraphicsMagick types typedefs.
9
+
10
+ GraphicsMagick is expected to compile with any C '89 ANSI C compiler
11
+ supporting at least 16-bit 'short', 32-bit 'int', and 32-bit 'long'.
12
+ It is also expected to take advantage of 64-bit LP64 and Windows
13
+ WIN64 LLP64. We use C '99 style types but declare our own types so
14
+ as to not depend on C '99 header files, and take care to depend only
15
+ on C '89 library functions, POSIX, or well-known extensions. Any C
16
+ '99 syntax used is removed if the compiler does not support it.
17
+ */
18
+
19
+ #ifndef _MAGICK_TYPES_H
20
+ #define _MAGICK_TYPES_H
21
+
22
+ #if defined(__cplusplus) || defined(c_plusplus)
23
+ extern "C" {
24
+ #endif
25
+
26
+ /*
27
+ Assign ANSI C stdint.h-like typedefs based on the sizes of native types
28
+ magick_int8_t -- -128 to 127
29
+ magick_uint8_t -- 0 to 255
30
+ magick_int16_t -- -32,768 to 32,767
31
+ magick_uint16_t -- 0 to 65,535
32
+ magick_int32_t -- -2,147,483,648 to 2,147,483,647
33
+ magick_uint32_t -- 0 to 4,294,967,295
34
+ magick_int64_t -- -9,223,372,036,854,775,807 to 9,223,372,036,854,775,807
35
+ magick_uint64_t -- 0 to 18,446,744,073,709,551,615
36
+
37
+ magick_uintmax_t -- largest native unsigned integer type ("%ju")
38
+ 0 to UINTMAX_MAX
39
+ UINTMAX_C(value) declares constant value
40
+ magick_uintptr_t -- unsigned type for storing a pointer value ("%tu")
41
+ 0 to UINTPTR_MAX
42
+
43
+ ANSI C '99 stddef.h-like types
44
+ size_t -- unsigned type representing sizes of objects ("%zu")
45
+ 0 to SIZE_MAX
46
+ magick_ptrdiff_t -- signed type for subtracting two pointers ("%td")
47
+ PTRDIFF_MIN to PTRDIFF_MAX
48
+
49
+ EEE Std 1003.1, 2004 types
50
+ ssize_t -- signed type for a count of bytes or an error indication ("%zd")
51
+ ? to SSIZE_MAX
52
+ */
53
+
54
+ #if (defined(WIN32) || defined(WIN64)) && \
55
+ !defined(__MINGW32__) && !defined(__MINGW64__)
56
+
57
+ /* The following typedefs are used for WIN32 & WIN64 (without
58
+ configure) */
59
+ typedef signed char magick_int8_t;
60
+ typedef unsigned char magick_uint8_t;
61
+
62
+ typedef signed short magick_int16_t;
63
+ typedef unsigned short magick_uint16_t;
64
+
65
+ typedef signed int magick_int32_t;
66
+ # define MAGICK_INT32_F ""
67
+ typedef unsigned int magick_uint32_t;
68
+ # define MAGICK_UINT32_F ""
69
+
70
+ typedef signed __int64 magick_int64_t;
71
+ # define MAGICK_INT64_F "I64"
72
+ typedef unsigned __int64 magick_uint64_t;
73
+ # define MAGICK_UINT64_F "I64"
74
+
75
+ typedef magick_uint64_t magick_uintmax_t;
76
+
77
+ # if defined(WIN32)
78
+ typedef unsigned long magick_uintptr_t;
79
+ # define MAGICK_SIZE_T_F "l"
80
+ # define MAGICK_SIZE_T unsigned long
81
+ # define MAGICK_SSIZE_T_F "l"
82
+ # define MAGICK_SSIZE_T long
83
+ # elif defined(WIN64)
84
+ /* WIN64 uses the LLP64 model */
85
+ typedef unsigned long long magick_uintptr_t;
86
+ # define MAGICK_SIZE_T_F "I64"
87
+ # define MAGICK_SIZE_T unsigned __int64
88
+ # define MAGICK_SSIZE_T_F "I64"
89
+ # define MAGICK_SSIZE_T signed __int64
90
+ # endif
91
+
92
+ #else
93
+
94
+ /* The following typedefs are subtituted when using Unixish configure */
95
+ typedef signed char magick_int8_t;
96
+ typedef unsigned char magick_uint8_t;
97
+
98
+ typedef signed short magick_int16_t;
99
+ typedef unsigned short magick_uint16_t;
100
+
101
+ typedef signed int magick_int32_t;
102
+ # define MAGICK_INT32_F ""
103
+ typedef unsigned int magick_uint32_t;
104
+ # define MAGICK_UINT32_F ""
105
+
106
+ typedef signed long magick_int64_t;
107
+ # define MAGICK_INT64_F "l"
108
+ typedef unsigned long magick_uint64_t;
109
+ # define MAGICK_UINT64_F "l"
110
+
111
+ typedef unsigned long magick_uintmax_t;
112
+ # define MAGICK_UINTMAX_F "l"
113
+
114
+ typedef unsigned long magick_uintptr_t;
115
+ # define MAGICK_UINTPTR_F "l"
116
+
117
+ # define MAGICK_SIZE_T_F "l"
118
+ # define MAGICK_SIZE_T unsigned long
119
+
120
+ # define MAGICK_SSIZE_T_F "l"
121
+ # define MAGICK_SSIZE_T signed long
122
+
123
+ #endif
124
+
125
+ /* 64-bit file and blob offset type */
126
+ typedef magick_int64_t magick_off_t;
127
+ #define MAGICK_OFF_F MAGICK_INT64_F
128
+
129
+ #if defined(__cplusplus) || defined(c_plusplus)
130
+ }
131
+ #endif /* defined(__cplusplus) || defined(c_plusplus) */
132
+
133
+ #endif /* _MAGICK_TYPES_H */
cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/vcpkg.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "graphicsmagick",
3
+ "version": "1.3.41",
4
+ "description": "Image processing library",
5
+ "homepage": "https://sourceforge.net/projects/graphicsmagick/",
6
+ "dependencies": [
7
+ "bzip2",
8
+ "freetype",
9
+ "libjpeg-turbo",
10
+ "libpng",
11
+ "libwebp",
12
+ "tiff",
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ },
21
+ "zlib"
22
+ ]
23
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libcerf/001-fix-static-build.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index f79581f..4fc9457 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -56,6 +56,8 @@ if(MSVC)
6
+ # set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/$<CONFIG>)
7
+ if(BUILD_SHARED_LIBS)
8
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
9
+ + else()
10
+ + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
11
+ endif()
12
+ else()
13
+ add_compile_options(-O2 -Wno-sign-compare -fno-omit-frame-pointer)
cc-multilingual-main/cc_net/vcpkg/ports/libcerf/portfile.cmake ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
2
+ set(BUILD_SHARED_LIBS ON)
3
+ else()
4
+ set(BUILD_SHARED_LIBS OFF)
5
+ endif()
6
+
7
+ vcpkg_download_distfile(ARCHIVE
8
+ URLS "https://jugit.fz-juelich.de/mlz/libcerf/uploads/924b8d245ad3461107ec630734dfc781/libcerf-1.13.tgz"
9
+ FILENAME "libcerf-1.13.tgz"
10
+ SHA512 4df711d3e9fd00de99959c3253a9565d1dc2c41f75a5800ced9c52f89cbd13185fbdca3ad75de788fd16c044082738ab345b7fb6a8820ac588edafe1812944aa
11
+ )
12
+
13
+ vcpkg_extract_source_archive(
14
+ SOURCE_PATH
15
+ ARCHIVE ${ARCHIVE}
16
+ PATCHES 001-fix-static-build.patch
17
+ )
18
+
19
+ if(VCPKG_TARGET_IS_UWP)
20
+ set(configure_opts WINDOWS_USE_MSBUILD)
21
+ endif()
22
+
23
+ vcpkg_cmake_configure(
24
+ SOURCE_PATH "${SOURCE_PATH}"
25
+ ${configure_opts}
26
+ OPTIONS
27
+ -DCERF_CPP=ON
28
+ -DLIB_MAN=OFF
29
+ -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
30
+ )
31
+
32
+ vcpkg_cmake_install()
33
+
34
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
35
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libcerf" RENAME copyright)
36
+
37
+ vcpkg_fixup_pkgconfig()
cc-multilingual-main/cc_net/vcpkg/ports/libcerf/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libcerf",
3
+ "version": "1.13",
4
+ "port-version": 4,
5
+ "description": "A self-contained numeric library that provides an efficient and accurate implementation of complex error functions, along with Dawson, Faddeeva, and Voigt functions.",
6
+ "homepage": "https://jugit.fz-juelich.de/mlz/libcerf",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ }
12
+ ]
13
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/portfile.cmake ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO ebiggers/libdeflate
4
+ REF "v${VERSION}"
5
+ SHA512 fe57542a0d28ad61d70bef9b544bb6805f9f30930b16432712b3b1caab041f1f4e64315a4306a0635b96c2632239c5af0e45a3915581d0b89975729fc2e95613
6
+ HEAD_REF master
7
+ PATCHES
8
+ remove_wrong_c_flags_modification.diff
9
+ )
10
+
11
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ compression LIBDEFLATE_COMPRESSION_SUPPORT
14
+ decompression LIBDEFLATE_DECOMPRESSION_SUPPORT
15
+ gzip LIBDEFLATE_GZIP_SUPPORT
16
+ zlib LIBDEFLATE_ZLIB_SUPPORT
17
+ )
18
+
19
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LIBDEFLATE_BUILD_STATIC)
20
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBDEFLATE_BUILD_SHARED)
21
+
22
+ vcpkg_cmake_configure(
23
+ SOURCE_PATH "${SOURCE_PATH}"
24
+ OPTIONS
25
+ -DLIBDEFLATE_BUILD_SHARED_LIB=${LIBDEFLATE_BUILD_SHARED}
26
+ -DLIBDEFLATE_BUILD_STATIC_LIB=${LIBDEFLATE_BUILD_STATIC}
27
+ -DLIBDEFLATE_BUILD_GZIP=OFF
28
+ ${FEATURE_OPTIONS}
29
+ )
30
+
31
+ vcpkg_cmake_install()
32
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/libdeflate")
33
+ vcpkg_fixup_pkgconfig()
34
+
35
+ if(VCPKG_TARGET_IS_WINDOWS)
36
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
37
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libdeflate.h" "defined(LIBDEFLATE_DLL)" "1")
38
+ elseif(NOT VCPKG_TARGET_IS_MINGW)
39
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libdeflate.pc" " -ldeflate" " -ldeflatestatic")
40
+ if(NOT VCPKG_BUILD_TYPE)
41
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libdeflate.pc" " -ldeflate" " -ldeflatestatic")
42
+ endif()
43
+ endif()
44
+ endif()
45
+
46
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
47
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
48
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/remove_wrong_c_flags_modification.diff ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 0acd26f..218c48b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -61,7 +61,6 @@ if(NOT LIBDEFLATE_BUILD_STATIC_LIB)
6
+ endif()
7
+
8
+ # Set common C compiler flags for all targets (the library and the programs).
9
+ -set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
10
+ set(CMAKE_C_STANDARD 99)
11
+ if(NOT MSVC)
12
+ check_c_compiler_flag(-Wdeclaration-after-statement HAVE_WDECLARATION_AFTER_STATEMENT)
cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ libdeflate provides CMake targets:
2
+
3
+ find_package(libdeflate CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:libdeflate::libdeflate_shared>,libdeflate::libdeflate_shared,libdeflate::libdeflate_static>)
cc-multilingual-main/cc_net/vcpkg/ports/libdeflate/vcpkg.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libdeflate",
3
+ "version": "1.19",
4
+ "port-version": 1,
5
+ "description": "libdeflate is a library for fast, whole-buffer DEFLATE-based compression and decompression.",
6
+ "homepage": "https://github.com/ebiggers/libdeflate",
7
+ "license": "MIT",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ],
18
+ "default-features": [
19
+ "compression",
20
+ "decompression",
21
+ "gzip",
22
+ "zlib"
23
+ ],
24
+ "features": {
25
+ "compression": {
26
+ "description": "Support compression"
27
+ },
28
+ "decompression": {
29
+ "description": "Support decompression"
30
+ },
31
+ "gzip": {
32
+ "description": "Support the gzip format"
33
+ },
34
+ "zlib": {
35
+ "description": "Support the zlib format"
36
+ }
37
+ }
38
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libhsplasma/portfile.cmake ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ string(REGEX REPLACE "-" "." REF_DOT_VERSION_DATE ${VERSION})
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO H-uru/libhsplasma
6
+ REF "${REF_DOT_VERSION_DATE}"
7
+ SHA512 2edf124fe583e053c078f58d94110ed2285e1f02a34cc7607dfc79f8ab587e173e5782af5d4e2846613d7d6b3e1a27a319fdf138c7546c1c6257b5c8422c2f5a
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ net ENABLE_NET
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH ${SOURCE_PATH}
18
+ OPTIONS
19
+ ${FEATURE_OPTIONS}
20
+ -DENABLE_PHYSX=OFF
21
+ -DENABLE_PYTHON=OFF
22
+ -DENABLE_TOOLS=OFF
23
+ )
24
+
25
+ vcpkg_cmake_install()
26
+ vcpkg_cmake_config_fixup(PACKAGE_NAME HSPlasma CONFIG_PATH share/cmake/HSPlasma)
27
+
28
+ vcpkg_fixup_pkgconfig()
29
+ vcpkg_copy_pdbs()
30
+
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
32
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
33
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/libhsplasma/vcpkg.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libhsplasma",
3
+ "version-date": "2024-03-07",
4
+ "description": "Cross-platform Plasma data and network library",
5
+ "homepage": "https://github.com/H-uru/libhsplasma",
6
+ "license": "GPL-3.0-or-later",
7
+ "supports": "!(arm | uwp | xbox)",
8
+ "dependencies": [
9
+ "libjpeg-turbo",
10
+ "libpng",
11
+ "string-theory",
12
+ {
13
+ "name": "vcpkg-cmake",
14
+ "host": true
15
+ },
16
+ {
17
+ "name": "vcpkg-cmake-config",
18
+ "host": true
19
+ },
20
+ "zlib"
21
+ ],
22
+ "features": {
23
+ "net": {
24
+ "description": "Network functionality",
25
+ "dependencies": [
26
+ "openssl"
27
+ ]
28
+ }
29
+ }
30
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libsigcpp-3/portfile.cmake ADDED
@@ -0,0 +1 @@
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
cc-multilingual-main/cc_net/vcpkg/ports/libsigcpp-3/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libsigcpp-3",
3
+ "version": "3.0.3",
4
+ "port-version": 1,
5
+ "description": "Typesafe callback framework for C++",
6
+ "homepage": "https://libsigcplusplus.github.io/libsigcplusplus/",
7
+ "dependencies": [
8
+ "libsigcpp"
9
+ ]
10
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libxcvt/portfile.cmake ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_gitlab(
2
+ GITLAB_URL https://gitlab.freedesktop.org/xorg
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO lib/libxcvt
5
+ REF db5ff12110994dc9010d44f981399e796917a845
6
+ SHA512 a69c4d163ab7a5f71dd4940e9b1f7ac2c5b5f282cbe9e1af26dcb677d061ff5187aa17f9acf9f913d3b05afac44f44b962ca4290ad2f5ae7f104ec870d8b515f
7
+ HEAD_REF master
8
+ )
9
+ vcpkg_configure_meson(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ )
12
+ vcpkg_install_meson()
13
+ vcpkg_fixup_pkgconfig()
14
+ vcpkg_copy_tools(TOOL_NAMES cvt AUTO_CLEAN)
15
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
16
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
17
+
18
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/libxcvt/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxcvt",
3
+ "version": "0.1.2",
4
+ "port-version": 1,
5
+ "description": "A library providing a standalone version of the X server implementation of the VESA CVT standard timing modelines generator.",
6
+ "homepage": "https://gitlab.freedesktop.org/xorg/lib/libxcvt",
7
+ "license": null,
8
+ "supports": "!windows",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-tool-meson",
12
+ "host": true
13
+ }
14
+ ]
15
+ }
cc-multilingual-main/cc_net/vcpkg/ports/materialx/portfile.cmake ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO AcademySoftwareFoundation/MaterialX
4
+ REF "v${VERSION}"
5
+ SHA512 e527c2d160502b79edc33e801351d2d40b6419b853aa6b3e8c4a54787006baed236829ec8e4db32469daffec8bc1aa1ba35588a49d414fb38feee36fac7e3fb7
6
+ HEAD_REF main
7
+ )
8
+
9
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
10
+ FEATURES
11
+ glsl-generator MATERIALX_BUILD_GEN_GLSL
12
+ mdl-generator MATERIALX_BUILD_GEN_MDL
13
+ osl-generator MATERIALX_BUILD_GEN_OSL
14
+ render MATERIALX_BUILD_RENDER
15
+ )
16
+ if ((VCPKG_TARGET_IS_ANDROID OR VCPKG_TARGET_IS_LINUX) AND MATERIALX_BUILD_RENDER)
17
+ message(WARNING "${PORT} currently requires the following libraries from the system package manager:\n libx11-dev\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev.")
18
+ endif()
19
+
20
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" OPTION_BUILD_SHARED_LIB)
21
+
22
+ vcpkg_cmake_configure(
23
+ SOURCE_PATH "${SOURCE_PATH}"
24
+ OPTIONS ${FEATURE_OPTIONS}
25
+ "-DMATERIALX_BUILD_SHARED_LIBS:BOOL=${OPTION_BUILD_SHARED_LIB}"
26
+ "-DMATERIALX_BUILD_JS:BOOL=NO"
27
+ "-DMATERIALX_BUILD_PYTHON:BOOL=NO"
28
+ "-DMATERIALX_BUILD_VIEWER:BOOL=NO"
29
+ "-DMATERIALX_BUILD_DOCS:BOOL=NO"
30
+ "-DMATERIALX_BUILD_GEN_GLSL:BOOL=NO"
31
+ "-DMATERIALX_BUILD_GEN_OSL:BOOL=NO"
32
+ "-DMATERIALX_BUILD_GEN_MDL:BOOL=NO"
33
+ "-DMATERIALX_BUILD_RENDER:BOOL=NO"
34
+ "-DMATERIALX_BUILD_OIIO:BOOL=NO"
35
+ "-DMATERIALX_BUILD_TESTS:BOOL=NO"
36
+ "-DMATERIALX_PYTHON_LTO:BOOL=NO"
37
+ "-DMATERIALX_INSTALL_PYTHON:BOOL=NO"
38
+ "-DMATERIALX_TEST_RENDER:BOOL=NO"
39
+ "-DMATERIALX_WARNINGS_AS_ERRORS:BOOL=NO"
40
+ MAYBE_UNUSED_VARIABLES
41
+ MATERIALX_PYTHON_LTO # Used when MATERIALX_BUILD_PYTHON=ON
42
+ )
43
+
44
+ vcpkg_cmake_install()
45
+
46
+ vcpkg_copy_pdbs()
47
+ vcpkg_cmake_config_fixup(PACKAGE_NAME MaterialX CONFIG_PATH lib/cmake/MaterialX)
48
+
49
+ file(REMOVE_RECURSE
50
+ "${CURRENT_PACKAGES_DIR}/CHANGELOG.md"
51
+ "${CURRENT_PACKAGES_DIR}/LICENSE"
52
+ "${CURRENT_PACKAGES_DIR}/README.md"
53
+ "${CURRENT_PACKAGES_DIR}/THIRD-PARTY.md"
54
+ "${CURRENT_PACKAGES_DIR}/debug/CHANGELOG.md"
55
+ "${CURRENT_PACKAGES_DIR}/debug/LICENSE"
56
+ "${CURRENT_PACKAGES_DIR}/debug/README.md"
57
+ "${CURRENT_PACKAGES_DIR}/debug/THIRD-PARTY.md"
58
+ "${CURRENT_PACKAGES_DIR}/debug/include"
59
+
60
+ # MaterialXGenShader explicitely install resources
61
+ "${CURRENT_PACKAGES_DIR}/resources"
62
+ "${CURRENT_PACKAGES_DIR}/debug/resources"
63
+ "${CURRENT_PACKAGES_DIR}/include/MaterialXRender/External/OpenImageIO"
64
+
65
+ # Based on how OSL does it, it could be that those `.mdl` source would be better located inside `libraries/pbrlib/genmdl/**`
66
+ # But it seems that they are instead installed into `libraries/mdl`
67
+ "${CURRENT_PACKAGES_DIR}/include/MaterialXGenMdl/mdl"
68
+ )
69
+
70
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/materialx/vcpkg.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "materialx",
3
+ "version": "1.38.9",
4
+ "description": "MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers.",
5
+ "homepage": "https://www.materialx.org/",
6
+ "license": "Apache-2.0",
7
+ "supports": "!uwp",
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
+ "glsl-generator": {
20
+ "description": "Build the GLSL shader generator back-end."
21
+ },
22
+ "mdl-generator": {
23
+ "description": "Build the MDL shader generator back-end."
24
+ },
25
+ "osl-generator": {
26
+ "description": "Build the OSL shader generator back-end."
27
+ },
28
+ "render": {
29
+ "description": "Build the MaterialX Render library."
30
+ }
31
+ }
32
+ }
cc-multilingual-main/cc_net/vcpkg/ports/minimp3/portfile.cmake ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO lieff/minimp3
4
+ REF afb604c06bc8beb145fecd42c0ceb5bda8795144 # committed on 2021-11-30
5
+ SHA512 633da0b20982f6f22c87d872c69626b2939ffb4519339cd0c090d7538308007cf633c07af57020cd2332a75c6e7b9bf3ebd5bda1af59dc96a4f0e85ce1b3f751
6
+ HEAD_REF master
7
+ )
8
+
9
+ file(COPY "${SOURCE_PATH}/minimp3.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
10
+ file(COPY "${SOURCE_PATH}/minimp3_ex.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
11
+
12
+ # Handle copyright
13
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)