Techt3o commited on
Commit
b379e24
·
verified ·
1 Parent(s): fb2d025

eca1bef804658b83ae8f00edd9385db5ba44937013079e6d61327e011e37b541

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmium/portfile.cmake +22 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmium/vcpkg.json +21 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmscout/portfile.cmake +49 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmscout/vcpkg.json +41 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7-baical/portfile.cmake +2 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7-baical/vcpkg.json +9 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7client/CMakeLists.txt +46 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7client/portfile.cmake +25 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7client/vcpkg.json +8 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/add-disable-packet-option.patch +31 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/install-pc-on-msvc.patch +37 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/portfile.cmake +80 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/vcpkg.json +14 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/CMakeLists.txt +81 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/Config.cmake.in +4 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/portfile.cmake +35 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/vcpkg.json +20 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/CMakeLists.txt +75 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/dllexport.patch +37 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/portfile.cmake +47 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/vcpkg.json +7 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpmemobj-cpp/fixlibpmemobj-cpp.patch +17 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpmemobj-cpp/portfile.cmake +36 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpmemobj-cpp/vcpkg.json +25 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/cmake.patch +47 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/fix-export-targets.patch +65 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/macos-arch-fix.patch +62 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/pkgconfig.2.patch +48 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/pkgconfig.patch +24 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/portfile.cmake +145 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/use_abort.patch +17 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/vcpkg.json +23 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/0004-vcpkg-fixmsvc.patch +62 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/CMakeLists.txt +59 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/config.h.cmake +61 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/popt.def +50 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/portfile.cmake +33 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/vcpkg.json +6 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/Makefile +37 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/config.pl +28 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/fix-configure.patch +64 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/linux/configure.patch +22 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/mingw/link-with-crypt32.patch +79 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/MSBuildProject-static-crt.patch +23 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Mkvcbuild-static-lib.patch +13 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/arm.patch +39 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/fix-compile-flag-Zi.patch +33 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/host_skip_openssl.patch +38 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/install.patch +223 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/minimize_install.patch +35 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmium/portfile.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO osmcode/libosmium
5
+ REF v2.17.1
6
+ SHA512 08d1eb272b82364118b97213310e5d62fdbb071cfad74989bdc5bb25f9e14b067d53016d19bfed3972d3385343fc74edf86407860be83c59e74902cd1f26bb33
7
+ )
8
+ set(BOOST_ROOT "${CURRENT_INSTALLED_DIR}")
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ -DBUILD_TESTING=OFF
14
+ -DBUILD_EXAMPLES=OFF
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ # Handle copyright
20
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
21
+
22
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmium/vcpkg.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libosmium",
3
+ "version-semver": "2.17.1",
4
+ "port-version": 1,
5
+ "description": "A fast and flexible C++ library for working with OpenStreetMap data",
6
+ "homepage": "https://osmcode.org/libosmium/",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ "boost",
10
+ "bzip2",
11
+ "expat",
12
+ "proj",
13
+ "protozero",
14
+ "utfcpp",
15
+ {
16
+ "name": "vcpkg-cmake",
17
+ "host": true
18
+ },
19
+ "zlib"
20
+ ]
21
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmscout/portfile.cmake ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO Framstag/libosmscout
4
+ REF c81e1d9a0f69cc5b93588dbe330b2af587162c5f
5
+ SHA512 d6ddbc49dd40b1f938ae2cd1ea9342cab0a52db46bf7ed6716111a91d0a38acba12ff2e273d457db51fc240d578a5b849af77b53e600482cf52c3b22306f8c45
6
+ HEAD_REF master
7
+ )
8
+
9
+ if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
10
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
11
+ cairo OSMDCOUT_BUILD_MAP_CAIRO
12
+ directx OSMDCOUT_BUILD_MAP_DIRECTX
13
+ gdi OSMDCOUT_BUILD_MAP_GDI
14
+ svg OSMDCOUT_BUILD_MAP_SVG
15
+ )
16
+ else()
17
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
18
+ cairo OSMDCOUT_BUILD_MAP_CAIRO
19
+ svg OSMDCOUT_BUILD_MAP_SVG
20
+ )
21
+ list(APPEND FEATURE_OPTIONS -DOSMDCOUT_BUILD_MAP_DIRECTX=OFF -DOSMDCOUT_BUILD_MAP_GDI=OFF)
22
+ endif()
23
+
24
+ vcpkg_configure_cmake(
25
+ SOURCE_PATH ${SOURCE_PATH}
26
+ OPTIONS
27
+ -DOSMSCOUT_BUILD_DEMOS=OFF
28
+ -DOSMSCOUT_BUILD_TOOL_DUMPDATA=OFF
29
+ -DOSMSCOUT_BUILD_TOOL_IMPORT=ON
30
+ -DOSMSCOUT_BUILD_TOOL_OSMSCOUT2=OFF
31
+ -DOSMSCOUT_BUILD_TOOL_OSMSCOUTOPENGL=OFF
32
+ -DOSMSCOUT_BUILD_TOOL_PUBLICTRANSPORTMAP=OFF
33
+ -DOSMSCOUT_BUILD_TOOL_STYLEEDITOR=OFF
34
+ -DOSMSCOUT_BUILD_EXTERN_MATLAB=OFF
35
+ -DOSMSCOUT_BUILD_TESTS=OFF
36
+ -DOSMDCOUT_BUILD_MAP_QT=OFF
37
+ ${FEATURE_OPTIONS}
38
+ )
39
+
40
+ vcpkg_install_cmake()
41
+ vcpkg_copy_tools(TOOL_NAMES Import AUTO_CLEAN)
42
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libosmscout)
43
+
44
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
45
+
46
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
47
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
48
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/BasemapImport.exe")
49
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/BasemapImport.exe")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosmscout/vcpkg.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libosmscout",
3
+ "version-string": "1.1.1",
4
+ "description": "libosmscout offers applications simple, high-level interfaces for offline location and POI lokup, rendering and routing functionalities based on OpenStreetMap (OSM) data.",
5
+ "homepage": "http://libosmscout.sourceforge.net/",
6
+ "documentation": "http://libosmscout.sourceforge.net/documentation/",
7
+ "supports": "!uwp & !arm & !arm64 & !static & !wasm32 & !emscripten",
8
+ "dependencies": [
9
+ "libiconv",
10
+ "liblzma",
11
+ "libxml2",
12
+ "protobuf",
13
+ "zlib"
14
+ ],
15
+ "features": {
16
+ "cairo": {
17
+ "description": "Cairo backend renderer",
18
+ "dependencies": [
19
+ "cairo",
20
+ "freetype",
21
+ "harfbuzz",
22
+ "libpng",
23
+ "pango"
24
+ ]
25
+ },
26
+ "directx": {
27
+ "description": "Direct2D backend renderer"
28
+ },
29
+ "gdi": {
30
+ "description": "GDI+ backend renderer"
31
+ },
32
+ "svg": {
33
+ "description": "SVG backend renderer",
34
+ "dependencies": [
35
+ "freetype",
36
+ "harfbuzz",
37
+ "pango"
38
+ ]
39
+ }
40
+ }
41
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7-baical/portfile.cmake ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
2
+ message(WARNING "libp7-baical has been replaced by libp7client.")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7-baical/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libp7-baical",
3
+ "version-string": "replaced",
4
+ "port-version": 1,
5
+ "description": "An old name for the port libp7client; please install libp7client instead.",
6
+ "dependencies": [
7
+ "libp7client"
8
+ ]
9
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7client/CMakeLists.txt ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ project(P7)
2
+ cmake_minimum_required(VERSION 3.18)
3
+
4
+ add_library(P7
5
+ "Sources/ClBaical.cpp"
6
+ "Sources/ClFile.cpp"
7
+ "Sources/Client.cpp"
8
+ "Sources/ClNull.cpp"
9
+ "Sources/ClText.cpp"
10
+ "Sources/CRC32.cpp"
11
+ "Sources/Proxy.cpp"
12
+ "Sources/Telemetry.cpp"
13
+ "Sources/Trace.cpp")
14
+
15
+ target_include_directories(P7 PRIVATE "Headers/")
16
+ target_include_directories(P7 PRIVATE "Shared/")
17
+ if(WIN32)
18
+ target_include_directories(P7 PRIVATE "Shared/Platforms/Windows_x86/")
19
+ target_link_libraries(P7 "ws2_32")
20
+ else()
21
+ target_include_directories(P7 PRIVATE "Shared/Platforms/Linux_x86/")
22
+ endif()
23
+
24
+ if(WIN32)
25
+ set_target_properties(P7 PROPERTIES PREFIX "")
26
+ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
27
+ set_target_properties(P7 PROPERTIES DEBUG_POSTFIX "x64d")
28
+ set_target_properties(P7 PROPERTIES RELEASE_POSTFIX "x64")
29
+ else()
30
+ set_target_properties(P7 PROPERTIES DEBUG_POSTFIX "x32d")
31
+ set_target_properties(P7 PROPERTIES RELEASE_POSTFIX "x32")
32
+ endif()
33
+ else()
34
+ set_target_properties(P7 PROPERTIES PREFIX "lib")
35
+ set_target_properties(P7 PROPERTIES POSTFIX "")
36
+ set_target_properties(P7 PROPERTIES DEBUG_POSTFIX "d")
37
+ endif()
38
+
39
+ install(TARGETS P7
40
+ RUNTIME DESTINATION "bin"
41
+ ARCHIVE DESTINATION "lib"
42
+ LIBRARY DESTINATION "lib")
43
+
44
+ install(DIRECTORY Headers/
45
+ DESTINATION include/P7
46
+ FILES_MATCHING PATTERN "*.h")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7client/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_download_distfile(ARCHIVE
2
+ URLS http://baical.net/files/libP7Client_v5.6.zip
3
+ FILENAME libP7Client_v5.6.zip
4
+ SHA512 992256854b717a45ae9e11ed16aa27b8b054de97718f027664634597d756aa26fe10dcad765cde7695802c90def46461abbcbfde81923fdd40ea2b659e1a8240
5
+ )
6
+
7
+ vcpkg_extract_source_archive_ex(
8
+ OUT_SOURCE_PATH SOURCE_PATH
9
+ ARCHIVE "${ARCHIVE}"
10
+ NO_REMOVE_ONE_LEVEL
11
+ )
12
+
13
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
14
+
15
+ vcpkg_configure_cmake(
16
+ SOURCE_PATH ${SOURCE_PATH}
17
+ PREFER_NINJA
18
+ )
19
+
20
+ vcpkg_install_cmake()
21
+ vcpkg_copy_pdbs()
22
+
23
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
24
+
25
+ file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libp7client/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libp7client",
3
+ "version-string": "5.6",
4
+ "port-version": 2,
5
+ "description": "Open source, cross-platform, fastest library for sending logs, telemetry & trace data from your application.",
6
+ "homepage": "https://baical.net/",
7
+ "supports": "!(arm | uwp | osx)"
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/add-disable-packet-option.patch ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 2f675d1..e9d6d96 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -244,6 +244,7 @@ set(SEPTEL_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../septel" CACHE PATH "Path to dire
6
+ option(DISABLE_SNF "Disable Myricom SNF support" OFF)
7
+
8
+ option(DISABLE_TC "Disable Riverbed TurboCap support" OFF)
9
+ +option(DISABLE_PACKET "Disable Packet support" OFF)
10
+
11
+ #
12
+ # Debugging options.
13
+ @@ -302,7 +303,7 @@ if(WIN32)
14
+ if(IS_DIRECTORY ${CMAKE_HOME_DIRECTORY}/../../Common)
15
+ include_directories(${CMAKE_HOME_DIRECTORY}/../../Common)
16
+ endif(IS_DIRECTORY ${CMAKE_HOME_DIRECTORY}/../../Common)
17
+ -
18
+ + if(NOT DISABLE_PACKET)
19
+ find_package(Packet)
20
+ if(PACKET_FOUND)
21
+ set(HAVE_PACKET32 TRUE)
22
+ @@ -317,7 +318,8 @@ if(WIN32)
23
+ check_function_exists(PacketGetTimestampModes HAVE_PACKET_GET_TIMESTAMP_MODES)
24
+ cmake_pop_check_state()
25
+ endif(PACKET_FOUND)
26
+ -
27
+ + endif()
28
+ +
29
+ message(STATUS "checking for Npcap's version.h")
30
+ check_symbol_exists(WINPCAP_PRODUCT_NAME "${CMAKE_SOURCE_DIR}/../../version.h" HAVE_VERSION_H)
31
+ if(HAVE_VERSION_H)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/install-pc-on-msvc.patch ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b83fbbd..2f675d1 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -2678,9 +2678,12 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap.h DESTINATION include)
6
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap-bpf.h DESTINATION include)
7
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap-namedb.h DESTINATION include)
8
+
9
+ -# On UN*X, and on Windows when not using MSVC, generate libpcap.pc and
10
+ -# pcap-config and process man pages and arrange that they be installed.
11
+ -if(NOT MSVC)
12
+ +# Generate libpcap.pc
13
+ +if(BUILD_SHARED_LIBS)
14
+ + set(PACKAGE_NAME ${LIBRARY_NAME})
15
+ +else()
16
+ + set(PACKAGE_NAME pcap)
17
+ +endif()
18
+ set(prefix ${CMAKE_INSTALL_PREFIX})
19
+ set(exec_prefix "\${prefix}")
20
+ set(includedir "\${prefix}/include")
21
+ @@ -2715,10 +2718,14 @@ if(NOT MSVC)
22
+ foreach(LIB ${PCAP_LINK_LIBRARIES})
23
+ set(LIBS "${LIBS} -l${LIB}")
24
+ endforeach(LIB)
25
+ - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcap-config.in ${CMAKE_CURRENT_BINARY_DIR}/pcap-config @ONLY)
26
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpcap.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libpcap.pc @ONLY)
27
+ - install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/pcap-config DESTINATION bin)
28
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpcap.pc DESTINATION lib/pkgconfig)
29
+ +
30
+ +# On UN*X, and on Windows when not using MSVC, generate libpcap.pc and
31
+ +# pcap-config and process man pages and arrange that they be installed.
32
+ +if(NOT MSVC)
33
+ + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pcap-config.in ${CMAKE_CURRENT_BINARY_DIR}/pcap-config @ONLY)
34
+ + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/pcap-config DESTINATION bin)
35
+
36
+ #
37
+ # Man pages.
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/portfile.cmake ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(EXISTS "${CURRENT_INSTALLED_DIR}/share/winpcap")
2
+ message(FATAL_ERROR "FATAL ERROR: winpcap and libpcap are incompatible.")
3
+ endif()
4
+
5
+ if(VCPKG_TARGET_IS_LINUX)
6
+ message(
7
+ "libpcap currently requires the following libraries from the system package manager:
8
+ flex
9
+ libbison-dev
10
+ These can be installed on Ubuntu systems via sudo apt install flex libbison-dev"
11
+ )
12
+ endif()
13
+
14
+ vcpkg_from_github(
15
+ OUT_SOURCE_PATH SOURCE_PATH
16
+ REPO the-tcpdump-group/libpcap
17
+ REF c7642e2cc0c5bd65754685b160d25dc23c76c6bd #1.10.1
18
+ SHA512 ed46095863aaee79ca2833d26438f6c837cc3e64acb73efd5a388a11ff7d0d1245d23e5404070a9f2c2c77840c93c09328746761e4481e9a530593a5cbf2ad6f
19
+ HEAD_REF master
20
+ PATCHES
21
+ install-pc-on-msvc.patch
22
+ add-disable-packet-option.patch
23
+ )
24
+
25
+ vcpkg_find_acquire_program(BISON)
26
+ get_filename_component(BISON_PATH ${BISON} DIRECTORY)
27
+ vcpkg_add_to_path(${BISON_PATH})
28
+ vcpkg_find_acquire_program(FLEX)
29
+ get_filename_component(FLEX_PATH ${FLEX} DIRECTORY)
30
+ vcpkg_add_to_path(${FLEX_PATH})
31
+
32
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_STATIC_RT)
33
+
34
+ vcpkg_cmake_configure(
35
+ SOURCE_PATH "${SOURCE_PATH}"
36
+ OPTIONS
37
+ -DDISABLE_NETMAP=ON
38
+ -DDISABLE_BLUETOOTH=ON
39
+ -DDISABLE_DBUS=ON
40
+ -DDISABLE_RDMA=ON
41
+ -DDISABLE_DAG=ON
42
+ -DDISABLE_SEPTEL=ON
43
+ -DDISABLE_SNF=ON
44
+ -DDISABLE_TC=ON
45
+ -DDISABLE_PACKET=ON
46
+ -DENABLE_REMOTE=OFF
47
+ -DUSE_STATIC_RT=${USE_STATIC_RT}
48
+ )
49
+
50
+ vcpkg_cmake_install()
51
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
52
+
53
+ # On Windows 64-bit, libpcap 1.10.1 installs the libraries in a x64 subdirectory of the usual directories
54
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
55
+ set(libsubdir "x64")
56
+ file(GLOB_RECURSE FILES_TO_MOVE "${CURRENT_PACKAGES_DIR}/lib/${libsubdir}/*")
57
+ file(COPY ${FILES_TO_MOVE} DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
58
+ file(GLOB_RECURSE FILES_TO_MOVE "${CURRENT_PACKAGES_DIR}/debug/lib/${libsubdir}/*")
59
+ file(COPY ${FILES_TO_MOVE} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
60
+ file(GLOB_RECURSE FILES_TO_MOVE "${CURRENT_PACKAGES_DIR}/bin/${libsubdir}/*")
61
+ file(COPY ${FILES_TO_MOVE} DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
62
+ file(GLOB_RECURSE FILES_TO_MOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${libsubdir}/*")
63
+ file(COPY ${FILES_TO_MOVE} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
64
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/${libsubdir}"
65
+ "${CURRENT_PACKAGES_DIR}/debug/lib/${libsubdir}"
66
+ "${CURRENT_PACKAGES_DIR}/bin/${libsubdir}"
67
+ "${CURRENT_PACKAGES_DIR}/debug/bin/${libsubdir}")
68
+ endif()
69
+
70
+ # Even if compiled with BUILD_SHARED_LIBS=ON, pcap also install a pcap_static library
71
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
72
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/pcap_static.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/pcap_static.lib")
73
+ endif()
74
+
75
+ vcpkg_fixup_pkgconfig()
76
+
77
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
78
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
79
+ endif()
80
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/share/man")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpcap/vcpkg.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libpcap",
3
+ "version-semver": "1.10.1",
4
+ "port-version": 1,
5
+ "description": "A portable C/C++ library for network traffic capture",
6
+ "homepage": "https://www.tcpdump.org/",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ }
13
+ ]
14
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/CMakeLists.txt ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.12)
2
+
3
+ project(libpff C)
4
+
5
+ find_package(ZLIB REQUIRED)
6
+
7
+ if(MSVC)
8
+ add_compile_definitions(_CRT_SECURE_NO_DEPRECATE)
9
+ add_compile_definitions(_CRT_NONSTDC_NO_DEPRECATE)
10
+ endif()
11
+
12
+ add_compile_definitions(HAVE_LOCAL_LIBCERROR)
13
+ add_compile_definitions(HAVE_LOCAL_LIBCTHREADS)
14
+ add_compile_definitions(HAVE_LOCAL_LIBCDATA)
15
+ add_compile_definitions(HAVE_LOCAL_LIBCLOCALE)
16
+ add_compile_definitions(HAVE_LOCAL_LIBCNOTIFY)
17
+ add_compile_definitions(HAVE_LOCAL_LIBCSPLIT)
18
+ add_compile_definitions(HAVE_LOCAL_LIBCFILE)
19
+ add_compile_definitions(HAVE_LOCAL_LIBCPATH)
20
+ add_compile_definitions(HAVE_LOCAL_LIBUNA)
21
+ add_compile_definitions(HAVE_LOCAL_LIBBFIO)
22
+ add_compile_definitions(HAVE_LOCAL_LIBFCACHE)
23
+ add_compile_definitions(HAVE_LOCAL_LIBFDATA)
24
+ add_compile_definitions(HAVE_LOCAL_LIBFDATETIME)
25
+ add_compile_definitions(HAVE_LOCAL_LIBFGUID)
26
+ add_compile_definitions(HAVE_LOCAL_LIBFWNT)
27
+ add_compile_definitions(HAVE_LOCAL_LIBFMAPI)
28
+ add_compile_definitions(HAVE_LOCAL_LIBFVALUE)
29
+ add_compile_definitions(ZLIB_DLL)
30
+
31
+ add_compile_definitions(LIBPFF_DLL_EXPORT)
32
+
33
+ if(MSVC)
34
+ set(LIB_RC libpff/libpff.rc)
35
+ endif()
36
+
37
+
38
+ include(GNUInstallDirs)
39
+ include(CMakePackageConfigHelpers)
40
+
41
+ # Add CMake find_package() integration
42
+ set(PROJECT_TARGET_NAME "unofficial-${PROJECT_NAME}")
43
+ set(CONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
44
+ set(PROJECT_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/generated/${PROJECT_TARGET_NAME}Config.cmake")
45
+ set(TARGETS_EXPORT_NAME "${PROJECT_TARGET_NAME}Targets")
46
+ set(NAMESPACE "unofficial-libpff::")
47
+
48
+ # Source files
49
+ file(GLOB LIB_SRC lib*/*.c)
50
+
51
+ # Headers
52
+ file(GLOB LIB_INST_HEADERS include/libpff/*.h)
53
+
54
+ add_library(${PROJECT_NAME} ${LIB_SRC} ${LIB_RC})
55
+
56
+ target_include_directories(${PROJECT_NAME} PRIVATE ./include ./common)
57
+ target_include_directories(${PROJECT_NAME} PRIVATE ./libbfio ./libcdata ./libcerror ./libcfile ./libclocale ./libcnotify)
58
+ target_include_directories(${PROJECT_NAME} PRIVATE ./libcpath ./libcsplit ./libcthreads ./libfcache ./libfdata ./libfdatetime)
59
+ target_include_directories(${PROJECT_NAME} PRIVATE ./libfguid ./libfmapi ./libfvalue ./libfwnt ./libuna)
60
+
61
+ target_link_libraries(${PROJECT_NAME} PRIVATE ZLIB::ZLIB)
62
+
63
+ install(TARGETS ${PROJECT_NAME}
64
+ EXPORT ${TARGETS_EXPORT_NAME}
65
+ RUNTIME DESTINATION bin
66
+ LIBRARY DESTINATION lib
67
+ ARCHIVE DESTINATION lib
68
+ INCLUDES DESTINATION include)
69
+
70
+ install(FILES ${LIB_INST_HEADERS} DESTINATION include/libpff)
71
+ install(FILES include/libpff.h DESTINATION include)
72
+
73
+
74
+ # Generate and install unofficial-libpffConfig.cmake
75
+ configure_package_config_file("Config.cmake.in" "${PROJECT_CONFIG}" INSTALL_DESTINATION "${CONFIG_INSTALL_DIR}")
76
+ install(FILES "${PROJECT_CONFIG}" DESTINATION "${CONFIG_INSTALL_DIR}")
77
+
78
+ # Generate and install unofficial-libpffTargets*.cmake
79
+ install(EXPORT ${TARGETS_EXPORT_NAME}
80
+ NAMESPACE ${NAMESPACE}
81
+ DESTINATION "${CONFIG_INSTALL_DIR}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/Config.cmake.in ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ @PACKAGE_INIT@
2
+
3
+ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
4
+ check_required_components("@PROJECT_NAME@")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/portfile.cmake ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
2
+
3
+ set(LIB_VERSION 20180714)
4
+ set(LIB_FILENAME libpff-experimental-${LIB_VERSION}.tar.gz)
5
+
6
+ # Release distribution file contains configured sources, while the source code in the repository does not.
7
+ vcpkg_download_distfile(ARCHIVE
8
+ URLS "https://github.com/libyal/libpff/releases/download/${LIB_VERSION}/${LIB_FILENAME}"
9
+ FILENAME "${LIB_FILENAME}"
10
+ SHA512 7207ba87607ea2fd4609a081c2f4b061344a783e188605e88df99fd473f2a8da1269b065e57b054f4622888d40aa8f2b8272dc4748334ddfe358b28d443d6ad1
11
+ )
12
+
13
+ vcpkg_extract_source_archive_ex(
14
+ OUT_SOURCE_PATH SOURCE_PATH
15
+ ARCHIVE ${ARCHIVE}
16
+ REF ${LIB_VERSION}
17
+ )
18
+
19
+
20
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
21
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" DESTINATION "${SOURCE_PATH}")
22
+
23
+ vcpkg_cmake_configure(
24
+ SOURCE_PATH "${SOURCE_PATH}"
25
+ )
26
+
27
+ vcpkg_cmake_install()
28
+
29
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libpff PACKAGE_NAME unofficial-libpff)
30
+
31
+ vcpkg_copy_pdbs()
32
+
33
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
34
+
35
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpff/vcpkg.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libpff",
3
+ "version-date": "2018-07-14",
4
+ "port-version": 3,
5
+ "description": "Library and tools to access the Personal Folder File (PFF) and the Offline Folder File (OFF) format.",
6
+ "homepage": "https://github.com/libyal/libpff",
7
+ "license": "LGPL-3.0",
8
+ "supports": "windows & !(static & windows) & !uwp",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ },
18
+ "zlib"
19
+ ]
20
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/CMakeLists.txt ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(plist C CXX)
3
+
4
+ file(GLOB_RECURSE PLIST_HEADER include/plist/*.h)
5
+
6
+ set(PLIST_SRC
7
+ src/base64.c
8
+ src/bytearray.c
9
+ src/hashtable.c
10
+ src/ptrarray.c
11
+ src/time64.c
12
+ src/xplist.c
13
+ src/bplist.c
14
+ src/plist.c
15
+ )
16
+
17
+ set(PLISTPP_SRC
18
+ src/Node.cpp
19
+ src/Structure.cpp
20
+ src/Array.cpp
21
+ src/Boolean.cpp
22
+ src/Data.cpp
23
+ src/Date.cpp
24
+ src/Dictionary.cpp
25
+ src/Integer.cpp
26
+ src/Key.cpp
27
+ src/Real.cpp
28
+ src/String.cpp
29
+ src/Uid.cpp
30
+ )
31
+
32
+ file(GLOB_RECURSE LIBCNARY_HEADER libcnary/include/*.h)
33
+ file(GLOB_RECURSE LIBCNARY_SRC libcnary/*c)
34
+
35
+ add_library(plist ${PLIST_SRC} ${PLIST_HEADER} ${LIBCNARY_SRC} ${LIBCNARY_HEADER})
36
+ target_include_directories(plist PRIVATE src include libcnary/include)
37
+ set_target_properties(plist PROPERTIES OUTPUT_NAME plist-2.0)
38
+
39
+ add_library(plist++ STATIC ${PLISTPP_SRC} ${PLIST_HEADER} ${LIBCNARY_SRC} ${LIBCNARY_HEADER})
40
+ set_target_properties(plist++ PROPERTIES OUTPUT_NAME plist++-2.0)
41
+ target_include_directories(plist++ PRIVATE src include libcnary/include)
42
+
43
+ if(WIN32 AND BUILD_SHARED_LIBS)
44
+ target_compile_options(plist PRIVATE -W3 -WX- -sdl-)
45
+ target_compile_definitions(plist PRIVATE -DLIBPLIST_EXPORTS)
46
+ target_compile_options(plist++ PRIVATE -W3 -WX- -sdl-)
47
+ target_compile_definitions(plist++ PRIVATE -DLIBPLIST_EXPORTS)
48
+ endif()
49
+ target_link_libraries(plist++ PRIVATE plist)
50
+
51
+ install(
52
+ TARGETS plist plist++
53
+ RUNTIME DESTINATION bin
54
+ ARCHIVE DESTINATION lib
55
+ LIBRARY DESTINATION lib
56
+ )
57
+
58
+ set(PACKAGE_NAME libplist)
59
+ set(PACKAGE_VERSION 2.0)
60
+ set(prefix ${CMAKE_INSTALL_PREFIX})
61
+ set(exec_prefix \${prefix})
62
+ set(libdir \${prefix}/lib)
63
+ set(includedir \${prefix}/../include)
64
+ foreach (PLIST_PKGCONFIG libplist-2.0.pc libplist++-2.0.pc)
65
+ configure_file(
66
+ ${CMAKE_CURRENT_SOURCE_DIR}/src/${PLIST_PKGCONFIG}.in
67
+ ${CMAKE_CURRENT_BINARY_DIR}/${PLIST_PKGCONFIG}
68
+ @ONLY
69
+ )
70
+ install(
71
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${PLIST_PKGCONFIG}
72
+ DESTINATION lib/pkgconfig)
73
+ endforeach()
74
+
75
+ install(FILES ${PLIST_HEADER} DESTINATION include/plist)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/dllexport.patch ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/include/plist/plist.h b/include/plist/plist.h
2
+ index 2863c74..9cdb219 100644
3
+ --- a/include/plist/plist.h
4
+ +++ b/include/plist/plist.h
5
+ @@ -42,7 +42,7 @@ extern "C"
6
+ #include <stdint.h>
7
+ #endif
8
+
9
+ -#ifdef _MSC_VER
10
+ +#if defined(_MSC_VER) && defined(LIBPLIST_EXPORTS)
11
+ #define PLIST_API_MSC __declspec( dllexport )
12
+ #else
13
+ #define PLIST_API_MSC
14
+ diff --git a/src/plist.h b/src/plist.h
15
+ index 1e5d0d1..6690343 100644
16
+ --- a/src/plist.h
17
+ +++ b/src/plist.h
18
+ @@ -39,10 +39,7 @@
19
+ #include <sys/time.h>
20
+ #endif
21
+
22
+ -#ifdef _MSC_VER
23
+ - #define PLIST_API __declspec( dllexport )
24
+ -#else
25
+ -#ifdef WIN32
26
+ +#if (defined(_MSC_VER) || defined(WIN32)) && defined(LIBPLIST_EXPORTS)
27
+ #define PLIST_API __declspec( dllexport )
28
+ #else
29
+ #ifdef HAVE_FVISIBILITY
30
+ @@ -51,7 +48,6 @@
31
+ #define PLIST_API
32
+ #endif
33
+ #endif
34
+ -#endif
35
+
36
+ struct plist_data_s
37
+ {
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/portfile.cmake ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_CRT ONLY_DYNAMIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO libimobiledevice-win32/libplist
6
+ REF bbba7cabb78aad180a7a982ada5e1f21ff0ba873 # v1.3.6
7
+ SHA512 4cd59ed87c647259d0da99a20a05e01aa880f01f6b5cecd29e4247029a3d29f0f68b4552571eb3fd3c5549b4cb357801ffe43338b8ff34d44d6be5393d2e6b9d
8
+ HEAD_REF msvc-master
9
+ PATCHES dllexport.patch
10
+ )
11
+
12
+ configure_file(${CURRENT_PORT_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
13
+
14
+ vcpkg_configure_cmake(
15
+ SOURCE_PATH ${SOURCE_PATH}
16
+ PREFER_NINJA
17
+ )
18
+
19
+ vcpkg_install_cmake()
20
+ vcpkg_copy_pdbs()
21
+ vcpkg_fixup_pkgconfig()
22
+
23
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
24
+
25
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
26
+
27
+ set(pcfile "libplist-2.0.pc")
28
+ set(pcfiletarget "libplist.pc")
29
+ set(basepath "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/")
30
+ if(EXISTS "${basepath}${pcfile}")
31
+ file(CREATE_LINK "${basepath}${pcfile}" "${basepath}${pcfiletarget}" COPY_ON_ERROR)
32
+ endif()
33
+ set(basepath "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/")
34
+ if(EXISTS "${basepath}${pcfile}")
35
+ file(CREATE_LINK "${basepath}${pcfile}" "${basepath}${pcfiletarget}" COPY_ON_ERROR)
36
+ endif()
37
+
38
+ set(pcfile "libplist++-2.0.pc")
39
+ set(pcfiletarget "libplist++.pc")
40
+ set(basepath "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/")
41
+ if(EXISTS "${basepath}${pcfile}")
42
+ file(CREATE_LINK "${basepath}${pcfile}" "${basepath}${pcfiletarget}" COPY_ON_ERROR)
43
+ endif()
44
+ set(basepath "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/")
45
+ if(EXISTS "${basepath}${pcfile}")
46
+ file(CREATE_LINK "${basepath}${pcfile}" "${basepath}${pcfiletarget}" COPY_ON_ERROR)
47
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libplist/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libplist",
3
+ "version": "1.3.6",
4
+ "port-version": 1,
5
+ "description": "A library to handle Apple Property List format in binary or XML",
6
+ "homepage": "https://libimobiledevice.org/"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpmemobj-cpp/fixlibpmemobj-cpp.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt
2
+ index bb29b8d..839a77f 100644
3
+ --- a/benchmarks/CMakeLists.txt
4
+ +++ b/benchmarks/CMakeLists.txt
5
+ @@ -27,6 +27,12 @@ function(add_benchmark name)
6
+ prepend(srcs ${CMAKE_CURRENT_SOURCE_DIR} ${srcs})
7
+ add_executable(benchmark-${name} ${srcs})
8
+ target_link_libraries(benchmark-${name} ${LIBPMEMOBJ_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
9
+ + install(
10
+ + TARGETS benchmark-${name}
11
+ + RUNTIME DESTINATION tools
12
+ + LIBRARY DESTINATION lib
13
+ + ARCHIVE DESTINATION lib
14
+ + )
15
+ endfunction()
16
+
17
+ add_check_whitespace(benchmarks-cmake ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpmemobj-cpp/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO pmem/libpmemobj-cpp
4
+ REF 9599f724d4edc3a3d973bac14eeebdc1bc31d327 #v1.13.0
5
+ SHA512 ae1f8ed8aecdc35e9e78c957fcd154e43c7bcb5bf5cf3e5b23be3e95d21de754dbbd9b6549bd6c7991fad24492b08421df338c3706ab0157c31ebc88b65fa4fe
6
+ HEAD_REF master
7
+ PATCHES
8
+ fixlibpmemobj-cpp.patch
9
+ )
10
+
11
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ benchmark BUILD_BENCHMARKS
14
+ )
15
+
16
+ vcpkg_find_acquire_program(PERL)
17
+ get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
18
+ vcpkg_add_to_path(${PERL_EXE_PATH})
19
+
20
+ vcpkg_cmake_configure(
21
+ SOURCE_PATH "${SOURCE_PATH}"
22
+ DISABLE_PARALLEL_CONFIGURE
23
+ OPTIONS ${FEATURE_OPTIONS}
24
+ -DBUILD_TESTS=OFF
25
+ -DBUILD_EXAMPLES=OFF
26
+ -DBUILD_DOC=OFF
27
+ -DTESTS_USE_VALGRIND=OFF
28
+ )
29
+
30
+ vcpkg_cmake_install()
31
+
32
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/libpmemobj++/cmake)
33
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
34
+
35
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib/libpmemobj++")
36
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpmemobj-cpp/vcpkg.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libpmemobj-cpp",
3
+ "version-semver": "1.13.0",
4
+ "port-version": 1,
5
+ "description": "C++ bindings for libpmemobj (https://github.com/pmem/pmdk)",
6
+ "homepage": "https://github.com/pmem/libpmemobj-cpp",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ],
17
+ "features": {
18
+ "benchmark": {
19
+ "description": "build benchmarks",
20
+ "dependencies": [
21
+ "pmdk"
22
+ ]
23
+ }
24
+ }
25
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/cmake.patch ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 6451fcf..6599e1d 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -44,7 +44,7 @@ if(NOT PNG_BUILD_ZLIB)
6
+ endif()
7
+
8
+ if(UNIX AND NOT APPLE AND NOT BEOS AND NOT HAIKU)
9
+ - find_library(M_LIBRARY m)
10
+ + set(M_LIBRARY m)
11
+ else()
12
+ # libm is not needed and/or not available
13
+ set(M_LIBRARY "")
14
+ @@ -551,21 +551,14 @@ endif()
15
+
16
+ if(PNG_STATIC)
17
+ # does not work without changing name
18
+ - set(PNG_LIB_NAME_STATIC png_static)
19
+ add_library(png_static STATIC ${libpng_sources})
20
+ add_dependencies(png_static genfiles)
21
+ # MSVC doesn't use a different file extension for shared vs. static
22
+ # libs. We are able to change OUTPUT_NAME to remove the _static
23
+ # for all other platforms.
24
+ - if(NOT MSVC)
25
+ - set_target_properties(png_static PROPERTIES
26
+ - OUTPUT_NAME "${PNG_LIB_NAME}"
27
+ - CLEAN_DIRECT_OUTPUT 1)
28
+ - else()
29
+ - set_target_properties(png_static PROPERTIES
30
+ - OUTPUT_NAME "${PNG_LIB_NAME}_static"
31
+ - CLEAN_DIRECT_OUTPUT 1)
32
+ - endif()
33
+ + set_target_properties(png_static PROPERTIES
34
+ + OUTPUT_NAME "${PNG_LIB_NAME}"
35
+ + CLEAN_DIRECT_OUTPUT 1)
36
+ list(APPEND PNG_LIB_TARGETS png_static)
37
+ if(MSVC)
38
+ # msvc does not append 'lib' - do it here to have consistent name
39
+ @@ -915,7 +908,7 @@ endif()
40
+
41
+ # Create an export file that CMake users can include() to import our targets.
42
+ if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL)
43
+ - install(EXPORT libpng DESTINATION lib/libpng FILE lib${PNG_LIB_NAME}.cmake)
44
+ + install(EXPORT libpng DESTINATION lib/libpng FILE libpngConfig.cmake)
45
+ endif()
46
+
47
+ # what's with libpng-manual.txt and all the extra files?
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/fix-export-targets.patch ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b45e878..19f8692 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -536,7 +536,7 @@ if(PNG_SHARED)
6
+ set_target_properties(png PROPERTIES PREFIX "lib")
7
+ set_target_properties(png PROPERTIES IMPORT_PREFIX "lib")
8
+ endif()
9
+ - target_link_libraries(png ${ZLIB_LIBRARY} ${M_LIBRARY})
10
+ + target_link_libraries(png ZLIB::ZLIB ${M_LIBRARY})
11
+
12
+ if(UNIX AND AWK)
13
+ if(HAVE_LD_VERSION_SCRIPT)
14
+ @@ -564,7 +564,7 @@ if(PNG_STATIC)
15
+ # msvc does not append 'lib' - do it here to have consistent name
16
+ set_target_properties(png_static PROPERTIES PREFIX "lib")
17
+ endif()
18
+ - target_link_libraries(png_static ${ZLIB_LIBRARY} ${M_LIBRARY})
19
+ + target_link_libraries(png_static ZLIB::ZLIB ${M_LIBRARY})
20
+ endif()
21
+
22
+ if(PNG_FRAMEWORK)
23
+ @@ -581,7 +581,7 @@ if(PNG_FRAMEWORK)
24
+ XCODE_ATTRIBUTE_INSTALL_PATH "@rpath"
25
+ PUBLIC_HEADER "${libpng_public_hdrs}"
26
+ OUTPUT_NAME png)
27
+ - target_link_libraries(png_framework ${ZLIB_LIBRARY} ${M_LIBRARY})
28
+ + target_link_libraries(png_framework ZLIB::ZLIB ${M_LIBRARY})
29
+ endif()
30
+
31
+ if(NOT PNG_LIB_TARGETS)
32
+ @@ -746,7 +746,7 @@ if(PNG_SHARED)
33
+ set(PNG_BIN_TARGETS pngfix)
34
+
35
+ add_executable(png-fix-itxt ${png_fix_itxt_sources})
36
+ - target_link_libraries(png-fix-itxt ${ZLIB_LIBRARY} ${M_LIBRARY})
37
+ + target_link_libraries(png-fix-itxt ZLIB::ZLIB ${M_LIBRARY})
38
+ list(APPEND PNG_BIN_TARGETS png-fix-itxt)
39
+ endif()
40
+
41
+ @@ -851,7 +851,7 @@ endif()
42
+ # INSTALL
43
+ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
44
+ install(TARGETS ${PNG_LIB_TARGETS}
45
+ - EXPORT libpng
46
+ + EXPORT libpng-targets
47
+ RUNTIME DESTINATION bin
48
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
49
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
50
+ @@ -919,7 +919,14 @@ endif()
51
+
52
+ # Create an export file that CMake users can include() to import our targets.
53
+ if(NOT SKIP_INSTALL_EXPORT AND NOT SKIP_INSTALL_ALL)
54
+ - install(EXPORT libpng DESTINATION lib/libpng FILE libpngConfig.cmake)
55
+ + install(EXPORT libpng-targets DESTINATION lib/libpng)
56
+ + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake"
57
+ + [[include(CMakeFindDependencyMacro)
58
+ +find_dependency(ZLIB)
59
+ +include("${CMAKE_CURRENT_LIST_DIR}/libpng-targets.cmake")
60
+ + ]])
61
+ +
62
+ + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/libpng)
63
+ endif()
64
+
65
+ # what's with libpng-manual.txt and all the extra files?
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/macos-arch-fix.patch ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 6451fcf1b..dbd5016ca 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -63,11 +63,22 @@ option(PNG_HARDWARE_OPTIMIZATIONS "Enable hardware optimizations" ON)
6
+ set(PNG_PREFIX "" CACHE STRING "Prefix to add to the API function names")
7
+ set(DFA_XTRA "" CACHE FILEPATH "File containing extra configuration settings")
8
+
9
+ +# CMake currently sets CMAKE_SYSTEM_PROCESSOR to one of x86_64 or arm64 on macOS,
10
+ +# based upon the OS architecture, not the target architecture. As such, we need
11
+ +# to check CMAKE_OSX_ARCHITECTURES to identify which hardware-specific flags to
12
+ +# enable. Note that this will fail if you attempt to build a universal binary in
13
+ +# a single cmake invokation.
14
+ +if (APPLE AND CMAKE_OSX_ARCHITECTURES)
15
+ + set(TARGET_ARCH ${CMAKE_OSX_ARCHITECTURES})
16
+ +else()
17
+ + set(TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR})
18
+ +endif()
19
+ +
20
+ if(PNG_HARDWARE_OPTIMIZATIONS)
21
+
22
+ # set definitions and sources for arm
23
+ -if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR
24
+ - CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
25
+ +if(TARGET_ARCH MATCHES "^arm" OR
26
+ + TARGET_ARCH MATCHES "^aarch64")
27
+ set(PNG_ARM_NEON_POSSIBLE_VALUES check on off)
28
+ set(PNG_ARM_NEON "check" CACHE STRING "Enable ARM NEON optimizations:
29
+ check: (default) use internal checking code;
30
+ @@ -121,8 +132,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^powerpc*" OR
31
+ endif()
32
+
33
+ # set definitions and sources for intel
34
+ -if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i?86" OR
35
+ - CMAKE_SYSTEM_PROCESSOR MATCHES "^x86_64*")
36
+ +if(TARGET_ARCH MATCHES "^i?86" OR
37
+ + TARGET_ARCH MATCHES "^x86_64*")
38
+ set(PNG_INTEL_SSE_POSSIBLE_VALUES on off)
39
+ set(PNG_INTEL_SSE "on" CACHE STRING "Enable INTEL_SSE optimizations:
40
+ off: disable the optimizations")
41
+ @@ -171,8 +182,8 @@ endif()
42
+ else(PNG_HARDWARE_OPTIMIZATIONS)
43
+
44
+ # set definitions and sources for arm
45
+ -if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm" OR
46
+ - CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch64")
47
+ +if(TARGET_ARCH MATCHES "^arm" OR
48
+ + TARGET_ARCH MATCHES "^aarch64")
49
+ add_definitions(-DPNG_ARM_NEON_OPT=0)
50
+ endif()
51
+
52
+ @@ -183,8 +194,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^powerpc*" OR
53
+ endif()
54
+
55
+ # set definitions and sources for intel
56
+ -if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i?86" OR
57
+ - CMAKE_SYSTEM_PROCESSOR MATCHES "^x86_64*")
58
+ +if(TARGET_ARCH MATCHES "^i?86" OR
59
+ + TARGET_ARCH MATCHES "^x86_64")
60
+ add_definitions(-DPNG_INTEL_SSE_OPT=0)
61
+ endif()
62
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/pkgconfig.2.patch ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 6451fcf..4090f42 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -821,20 +821,31 @@ endif()
6
+ # Only do this on Windows for Cygwin - the files don't make much sense outside
7
+ # of a UNIX look-alike.
8
+ if(NOT WIN32 OR CYGWIN OR MINGW)
9
+ - set(prefix ${CMAKE_INSTALL_PREFIX})
10
+ - set(exec_prefix ${CMAKE_INSTALL_PREFIX})
11
+ - set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
12
+ - set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
13
+ - set(LIBS "-lz -lm")
14
+ - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng.pc.in
15
+ - ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc @ONLY)
16
+ - create_symlink(libpng.pc FILE ${PNGLIB_NAME}.pc)
17
+ -
18
+ - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng-config.in
19
+ - ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config @ONLY)
20
+ - create_symlink(libpng-config FILE ${PNGLIB_NAME}-config)
21
+ + set(LIBS "-lz")
22
+ + if(NOT APPLE)
23
+ + string(APPEND LIBS " -lm")
24
+ + endif()
25
+ +else()
26
+ + if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
27
+ + set(LIBS "-lzlibd")
28
+ + else()
29
+ + set(LIBS "-lzlib")
30
+ + endif()
31
+ endif()
32
+
33
+ +set(prefix ${CMAKE_INSTALL_PREFIX})
34
+ +set(exec_prefix ${CMAKE_INSTALL_PREFIX})
35
+ +set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
36
+ +set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
37
+ +
38
+ +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng.pc.in
39
+ + ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc @ONLY)
40
+ +create_symlink(libpng.pc FILE ${PNGLIB_NAME}.pc)
41
+ +
42
+ +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpng-config.in
43
+ + ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config @ONLY)
44
+ +create_symlink(libpng-config FILE ${PNGLIB_NAME}-config)
45
+ +
46
+ # SET UP LINKS
47
+ if(PNG_SHARED)
48
+ set_target_properties(png PROPERTIES
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/pkgconfig.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 6599e1d7d..c0bb2fad2 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -894,13 +894,13 @@ if(NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL)
6
+ install(FILES libpng.3 libpngpf.3 DESTINATION ${PNG_MAN_DIR}/man3)
7
+ install(FILES png.5 DESTINATION ${PNG_MAN_DIR}/man5)
8
+ # Install pkg-config files
9
+ + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng.pc
10
+ + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
11
+ + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc
12
+ + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
13
+ if(NOT CMAKE_HOST_WIN32 OR CYGWIN OR MINGW)
14
+ - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng.pc
15
+ - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
16
+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libpng-config
17
+ - DESTINATION bin)
18
+ + DESTINATION tools/libpng)
19
+ - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}.pc
20
+ - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
21
+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${PNGLIB_NAME}-config
22
+ - DESTINATION bin)
23
+ + DESTINATION tools/libpng)
24
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/portfile.cmake ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(LIBPNG_VER 1.6.37)
2
+
3
+ # Download the apng patch
4
+ set(LIBPNG_APNG_OPTION )
5
+ if ("apng" IN_LIST FEATURES)
6
+ # Get (g)awk installed
7
+ vcpkg_acquire_msys(MSYS_ROOT PACKAGES gawk)
8
+ set(AWK_EXE_PATH "${MSYS_ROOT}/usr/bin")
9
+ vcpkg_add_to_path("${AWK_EXE_PATH}")
10
+
11
+ set(LIBPNG_APG_PATCH_NAME libpng-${LIBPNG_VER}-apng.patch)
12
+ set(LIBPNG_APG_PATCH_PATH ${CURRENT_BUILDTREES_DIR}/src/${LIBPNG_APG_PATCH_NAME})
13
+ if (NOT EXISTS ${LIBPNG_APG_PATCH_PATH})
14
+ if (NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src)
15
+ file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src)
16
+ endif()
17
+ vcpkg_download_distfile(LIBPNG_APNG_PATCH_ARCHIVE
18
+ URLS "https://downloads.sourceforge.net/project/libpng-apng/libpng16/${LIBPNG_VER}/${LIBPNG_APG_PATCH_NAME}.gz"
19
+ FILENAME "${LIBPNG_APG_PATCH_NAME}.gz"
20
+ SHA512 226adcb3a8c60f2267fe2976ab531329ae43c2603dab4d0cf8f16217d64069936b879f3d6516b75d259c47d6f5c5b1f24f887602206c8e46abde0fb7f5c7946b
21
+ )
22
+ vcpkg_find_acquire_program(7Z)
23
+ vcpkg_execute_required_process(
24
+ COMMAND ${7Z} x ${LIBPNG_APNG_PATCH_ARCHIVE} -aoa
25
+ WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src
26
+ LOGNAME extract-patch.log
27
+ )
28
+ endif()
29
+ set(APNG_EXTRA_PATCH ${LIBPNG_APG_PATCH_PATH})
30
+ set(LIBPNG_APNG_OPTION "-DPNG_PREFIX=a")
31
+ endif()
32
+
33
+ vcpkg_from_github(
34
+ OUT_SOURCE_PATH SOURCE_PATH
35
+ REPO glennrp/libpng
36
+ REF v${LIBPNG_VER}
37
+ SHA512 ccb3705c23b2724e86d072e2ac8cfc380f41fadfd6977a248d588a8ad57b6abe0e4155e525243011f245e98d9b7afbe2e8cc7fd4ff7d82fcefb40c0f48f88918
38
+ HEAD_REF master
39
+ PATCHES
40
+ use_abort.patch
41
+ cmake.patch
42
+ pkgconfig.patch
43
+ pkgconfig.2.patch
44
+ ${APNG_EXTRA_PATCH}
45
+ fix-export-targets.patch
46
+ macos-arch-fix.patch
47
+ )
48
+
49
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
50
+ set(PNG_STATIC_LIBS OFF)
51
+ set(PNG_SHARED_LIBS ON)
52
+ else()
53
+ set(PNG_STATIC_LIBS ON)
54
+ set(PNG_SHARED_LIBS OFF)
55
+ endif()
56
+
57
+ set(LIBPNG_HARDWARE_OPTIMIZATIONS_OPTION )
58
+ if(VCPKG_TARGET_IS_IOS)
59
+ list(APPEND LIBPNG_HARDWARE_OPTIMIZATIONS_OPTION "-DPNG_HARDWARE_OPTIMIZATIONS=OFF")
60
+ endif()
61
+
62
+ set(LD_VERSION_SCRIPT_OPTION )
63
+ if(VCPKG_TARGET_IS_ANDROID)
64
+ set(LD_VERSION_SCRIPT_OPTION "-Dld-version-script=OFF")
65
+ # for armeabi-v7a, check whether NEON is available
66
+ list(APPEND LIBPNG_HARDWARE_OPTIMIZATIONS_OPTION "-DPNG_ARM_NEON=check")
67
+ else()
68
+ list(APPEND LIBPNG_HARDWARE_OPTIMIZATIONS_OPTION "-DPNG_ARM_NEON=on")
69
+ endif()
70
+
71
+ vcpkg_cmake_configure(
72
+ SOURCE_PATH ${SOURCE_PATH}
73
+ OPTIONS
74
+ -DPNG_MAN_DIR=share/${PORT}/man
75
+ ${LIBPNG_APNG_OPTION}
76
+ ${LIBPNG_HARDWARE_OPTIMIZATIONS_OPTION}
77
+ ${LD_VERSION_SCRIPT_OPTION}
78
+ -DPNG_STATIC=${PNG_STATIC_LIBS}
79
+ -DPNG_SHARED=${PNG_SHARED_LIBS}
80
+ -DPNG_TESTS=OFF
81
+ -DSKIP_INSTALL_PROGRAMS=ON
82
+ -DSKIP_INSTALL_EXECUTABLES=ON
83
+ -DSKIP_INSTALL_FILES=OFF
84
+ OPTIONS_DEBUG
85
+ -DSKIP_INSTALL_HEADERS=ON
86
+ )
87
+ vcpkg_cmake_install()
88
+
89
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/libpng)
90
+ set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libpng16.pc")
91
+ if(EXISTS ${_file})
92
+ file(READ "${_file}" _contents)
93
+ if(VCPKG_TARGET_IS_WINDOWS)
94
+ string(REGEX REPLACE "-lpng16(d)?" "-llibpng16d" _contents "${_contents}")
95
+ else()
96
+ string(REGEX REPLACE "-lpng16(d)?" "-lpng16d" _contents "${_contents}")
97
+ endif()
98
+ if(VCPKG_TARGET_IS_MINGW)
99
+ string(REPLACE "-lz" "-lzlibd" _contents "${_contents}")
100
+ else()
101
+ string(REPLACE "-lzlib" "-lzlibd" _contents "${_contents}")
102
+ endif()
103
+ file(WRITE "${_file}" "${_contents}")
104
+ endif()
105
+ set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libpng.pc")
106
+ if(EXISTS ${_file})
107
+ file(READ "${_file}" _contents)
108
+ if(VCPKG_TARGET_IS_WINDOWS)
109
+ string(REGEX REPLACE "-lpng16(d)?" "-llibpng16d" _contents "${_contents}")
110
+ else()
111
+ string(REGEX REPLACE "-lpng16(d)?" "-lpng16d" _contents "${_contents}")
112
+ endif()
113
+ if(VCPKG_TARGET_IS_MINGW)
114
+ string(REPLACE "-lz" "-lzlibd" _contents "${_contents}")
115
+ else()
116
+ string(REPLACE "-lzlib" "-lzlibd" _contents "${_contents}")
117
+ endif()
118
+ file(WRITE "${_file}" "${_contents}")
119
+ endif()
120
+ if(VCPKG_TARGET_IS_WINDOWS)
121
+ set(_file "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libpng16.pc")
122
+ if(EXISTS ${_file})
123
+ file(READ "${_file}" _contents)
124
+ string(REPLACE "-lpng16" "-llibpng16" _contents "${_contents}")
125
+ if(VCPKG_TARGET_IS_MINGW)
126
+ string(REPLACE "-lz" "-lzlib" _contents "${_contents}")
127
+ endif()
128
+ file(WRITE "${_file}" "${_contents}")
129
+ endif()
130
+ set(_file "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libpng.pc")
131
+ if(EXISTS ${_file})
132
+ file(READ "${_file}" _contents)
133
+ string(REPLACE "-lpng16" "-llibpng16" _contents "${_contents}")
134
+ if(VCPKG_TARGET_IS_MINGW)
135
+ string(REPLACE "-lz" "-lzlib" _contents "${_contents}")
136
+ endif()
137
+ file(WRITE "${_file}" "${_contents}")
138
+ endif()
139
+ endif()
140
+ vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES m)
141
+
142
+ vcpkg_copy_pdbs()
143
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
144
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools" "${CURRENT_PACKAGES_DIR}/debug/tools")
145
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/use_abort.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/pngpriv.h b/pngpriv.h
2
+ index 583c26f..135651c 100644
3
+ --- a/pngpriv.h
4
+ +++ b/pngpriv.h
5
+ @@ -556,11 +556,7 @@
6
+
7
+ /* Memory model/platform independent fns */
8
+ #ifndef PNG_ABORT
9
+ -# ifdef _WINDOWS_
10
+ -# define PNG_ABORT() ExitProcess(0)
11
+ -# else
12
+ -# define PNG_ABORT() abort()
13
+ -# endif
14
+ +# define PNG_ABORT() abort()
15
+ #endif
16
+
17
+ /* These macros may need to be architecture dependent. */
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpng/vcpkg.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libpng",
3
+ "version": "1.6.37",
4
+ "port-version": 16,
5
+ "description": "libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files",
6
+ "homepage": "https://github.com/glennrp/libpng",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ },
16
+ "zlib"
17
+ ],
18
+ "features": {
19
+ "apng": {
20
+ "description": "This is backward compatible with the regular libpng, both in library usage and format"
21
+ }
22
+ }
23
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/0004-vcpkg-fixmsvc.patch ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff -Naur a/poptconfig.c b/poptconfig.c
2
+ --- a/poptconfig.c 2009-05-20 16:18:07.000000000 +0300
3
+ +++ b/poptconfig.c 2017-01-21 03:10:17.116120500 +0300
4
+ @@ -141,17 +141,23 @@
5
+ int poptSaneFile(const char * fn)
6
+ {
7
+ struct stat sb;
8
+ - uid_t uid = getuid();
9
+ +#ifndef _MSC_VER
10
+ + uid_t uid = getuid();
11
+ +#endif // ! _MSC_VER
12
+
13
+ if (stat(fn, &sb) == -1)
14
+ return 1;
15
+ +#ifndef _MSC_VER
16
+ if ((uid_t)sb.st_uid != uid)
17
+ return 0;
18
+ +#endif // ! _MSC_VER
19
+ if (!S_ISREG(sb.st_mode))
20
+ return 0;
21
+ /*@-bitwisesigned@*/
22
+ - if (sb.st_mode & (S_IWGRP|S_IWOTH))
23
+ - return 0;
24
+ +#ifndef _MSC_VER
25
+ + if (sb.st_mode & (S_IWGRP | S_IWOTH))
26
+ + return 0;
27
+ +#endif // ! _MSC_VER
28
+ /*@=bitwisesigned@*/
29
+ return 1;
30
+ }
31
+ diff -Naur a/popthelp.c b/popthelp.c
32
+ --- a/popthelp.c 2009-08-28 03:06:33.000000000 +0300
33
+ +++ b/popthelp.c 2017-01-21 02:59:26.665695800 +0300
34
+ @@ -10,7 +10,10 @@
35
+
36
+ #include "system.h"
37
+
38
+ -#define POPT_USE_TIOCGWINSZ
39
+ +#ifndef _MSC_VER
40
+ +#define POPT_USE_TIOCGWINSZ
41
+ +#endif
42
+ +
43
+ #ifdef POPT_USE_TIOCGWINSZ
44
+ #include <sys/ioctl.h>
45
+ #endif
46
+ diff -Naur a/system.h b/system.h
47
+ --- a/system.h 2008-12-18 19:09:49.000000000 +0200
48
+ +++ b/system.h 2017-01-21 03:10:59.195367500 +0300
49
+ @@ -100,4 +100,13 @@
50
+ #endif
51
+ #define UNUSED(x) x __attribute__((__unused__))
52
+
53
+ +#if defined(_MSC_VER)
54
+ +#define X_OK 0
55
+ +
56
+ +#include <BaseTsd.h>
57
+ +typedef SSIZE_T ssize_t;
58
+ +
59
+ +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
60
+ +#endif
61
+ +
62
+ #include "popt.h"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/CMakeLists.txt ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.0)
2
+ project(popt VERSION 1.16 LANGUAGES C)
3
+
4
+ set(PACKAGE "popt")
5
+ set(POPT_SYSCONFDIR "C:\\\\")
6
+ set(CMAKE_DEBUG_POSTFIX "d")
7
+
8
+ file(GLOB SOURCES "popt.c"
9
+ "poptconfig.c"
10
+ "popthelp.c"
11
+ "poptint.c"
12
+ "poptparse.c"
13
+ "popt.def"
14
+ )
15
+
16
+ option(POPT_USE_CONFIG "Use configuration file" OFF)
17
+
18
+ if(POPT_USE_CONFIG)
19
+ include(CheckIncludeFile)
20
+ include(CheckFunctionExists)
21
+
22
+ check_include_file(float.h HAVE_FLOAT_H)
23
+ check_include_file(fnmatch.h HAVE_FNMATCH_H)
24
+ check_include_file(glob.h HAVE_GLOB_H)
25
+ check_include_file(langinfo.h HAVE_LANGINFO_H)
26
+ check_include_file(libintl.h HAVE_LIBINTL_H)
27
+ check_include_file(mcheck.h HAVE_MCHECK_H)
28
+ check_include_file(unistd.h HAVE_UNISTD_H)
29
+
30
+
31
+ check_function_exists(gettext HAVE_GETTEXT)
32
+ check_function_exists(iconv HAVE_ICONV)
33
+ check_function_exists(mtrace HAVE_MTRACE)
34
+ check_function_exists(srandom HAVE_SRANDOM)
35
+ check_function_exists(stpcpy HAVE_STPCPY)
36
+ check_function_exists(strerror HAVE_STRERROR)
37
+ check_function_exists(vasprintf HAVE_VASPRINTF)
38
+ check_function_exists(__secure_getenv HAVE___SECURE_GETENV)
39
+
40
+ configure_file(config.h.cmake config.h @ONLY)
41
+ add_definitions(-DHAVE_CONFIG_H)
42
+ endif()
43
+
44
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
45
+
46
+ include_directories(${CMAKE_BINARY_DIR})
47
+
48
+ add_library(popt ${SOURCES})
49
+ if (MSVC)
50
+ target_compile_options(popt PRIVATE /wd4996)
51
+ endif()
52
+
53
+ install(TARGETS popt
54
+ RUNTIME DESTINATION bin
55
+ LIBRARY DESTINATION lib
56
+ ARCHIVE DESTINATION lib
57
+ )
58
+
59
+ install(FILES "popt.h" DESTINATION "include")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/config.h.cmake ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef CONFIG_H
2
+ #define CONFIG_H
3
+
4
+ /* Define to 1 if translation of program messages to the user's native language is requested. */
5
+ #cmakedefine ENABLE_NLS 1
6
+
7
+ /* Define if the GNU dcgettext() function is already present or preinstalled. */
8
+ #cmakedefine HAVE_DCGETTEXT 1
9
+
10
+ /* Define to 1 if you have the <float.h> header file. */
11
+ #cmakedefine HAVE_FLOAT_H 1
12
+
13
+ /* Define to 1 if you have the <fnmatch.h> header file. */
14
+ #cmakedefine HAVE_FNMATCH_H 1
15
+
16
+ /* Define if the GNU gettext() function is already present or preinstalled. */
17
+ #cmakedefine HAVE_GETTEXT 1
18
+
19
+ /* Define to 1 if you have the <glob.h> header file. */
20
+ #cmakedefine HAVE_GLOB_H 1
21
+
22
+ /* Define if you have the iconv() function and it works. */
23
+ #cmakedefine HAVE_ICONV 1
24
+
25
+ /* Define to 1 if you have the <langinfo.h> header file. */
26
+ #cmakedefine HAVE_LANGINFO_H 1
27
+
28
+ /* Define to 1 if you have the <libintl.h> header file. */
29
+ #cmakedefine HAVE_LIBINTL_H 1
30
+
31
+ /* Define to 1 if you have the <mcheck.h> header file. */
32
+ #cmakedefine HAVE_MCHECK_H 1
33
+
34
+ /* Define to 1 if you have the `mtrace' function. */
35
+ #cmakedefine HAVE_MTRACE 1
36
+
37
+ /* Define to 1 if you have the `srandom' function. */
38
+ #cmakedefine HAVE_SRANDOM 1
39
+
40
+ /* Define to 1 if you have the `stpcpy' function. */
41
+ #cmakedefine HAVE_STPCPY 1
42
+
43
+ /* Define to 1 if you have the `strerror' function. */
44
+ #cmakedefine HAVE_STRERROR 1
45
+
46
+ /* Define to 1 if you have the <unistd.h> header file. */
47
+ #cmakedefine HAVE_UNISTD_H 1
48
+
49
+ /* Define to 1 if you have the `vasprintf' function. */
50
+ #cmakedefine HAVE_VASPRINTF 1
51
+
52
+ /* Define to 1 if you have the `__secure_getenv' function. */
53
+ #cmakedefine HAVE___SECURE_GETENV 1
54
+
55
+ /* Name of package */
56
+ #cmakedefine PACKAGE "@PACKAGE@"
57
+
58
+ /* Full path to default POPT configuration directory */
59
+ #cmakedefine POPT_SYSCONFDIR "@POPT_SYSCONFDIR@"
60
+
61
+ #endif
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/popt.def ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ EXPORTS
2
+ _poptArgMask
3
+ _poptBitsK
4
+ _poptBitsM
5
+ _poptBitsN
6
+ _poptGroupMask
7
+ poptAddAlias
8
+ poptAddItem
9
+ poptAliasOptions
10
+ poptBadOption
11
+ poptBitsAdd
12
+ poptBitsArgs
13
+ poptBitsChk
14
+ poptBitsClr
15
+ poptBitsDel
16
+ poptBitsIntersect
17
+ poptBitsUnion
18
+ poptConfigFileToString
19
+ poptDupArgv
20
+ poptFini
21
+ poptFreeContext
22
+ poptGetArg
23
+ poptGetArgs
24
+ poptGetContext
25
+ poptGetInvocationName
26
+ poptGetNextOpt
27
+ poptGetOptArg
28
+ poptHelpOptions
29
+ poptInit
30
+ poptParseArgvString
31
+ poptPeekArg
32
+ poptPrintHelp
33
+ poptPrintUsage
34
+ poptReadConfigFile
35
+ poptReadConfigFiles
36
+ poptReadDefaultConfig
37
+ poptReadFile
38
+ poptResetContext
39
+ poptSaneFile
40
+ poptSaveBits
41
+ poptSaveInt
42
+ poptSaveLong
43
+ poptSaveLongLong
44
+ poptSaveShort
45
+ poptSaveString
46
+ poptSetExecPath
47
+ poptSetOtherOptionHelp
48
+ poptStrerror
49
+ poptStrippedArgv
50
+ poptStuffArgs
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/portfile.cmake ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(LIBPOPT_VERSION 1.16)
2
+ set(LIBPOPT_HASH bae2dd4e5d682ef023fdc77ae60c4aad01a3a576d45af9d78d22490c11e410e60edda37ede171920746d4ae0d5de3c060d15cecfd41ba75b727a811be828d694)
3
+
4
+ vcpkg_download_distfile(ARCHIVE
5
+ URLS
6
+ "https://ftp.openbsd.org/pub/OpenBSD/distfiles/popt-${LIBPOPT_VERSION}.tar.gz"
7
+ FILENAME "popt-${LIBPOPT_VERSION}.tar.gz"
8
+ SHA512 ${LIBPOPT_HASH}
9
+ )
10
+
11
+ vcpkg_extract_source_archive_ex(
12
+ OUT_SOURCE_PATH SOURCE_PATH
13
+ ARCHIVE ${ARCHIVE}
14
+ PATCHES
15
+ 0004-vcpkg-fixmsvc.patch
16
+ )
17
+
18
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
19
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.cmake DESTINATION ${SOURCE_PATH})
20
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/popt.def DESTINATION ${SOURCE_PATH})
21
+
22
+ vcpkg_configure_cmake(
23
+ SOURCE_PATH ${SOURCE_PATH}
24
+ PREFER_NINJA
25
+ OPTIONS -DPOPT_USE_CONFIG=1
26
+ )
27
+
28
+ vcpkg_install_cmake()
29
+ vcpkg_copy_pdbs()
30
+
31
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
32
+
33
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpopt/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libpopt",
3
+ "version-string": "1.16",
4
+ "port-version": 14,
5
+ "description": "Library for parsing command line parameters"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/Makefile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ subdir = .
2
+ top_builddir = .
3
+ include src/Makefile.global
4
+
5
+ .NOTPARALLEL:
6
+
7
+ ifeq ($(LIBPQ_LIBRARY_TYPE), static)
8
+ LIBPQ_INSTALL_LIBS = install-stlib
9
+ endif
10
+
11
+ ifeq ($(LIBPQ_LIBRARY_TYPE), shared)
12
+ ifeq ($(USING_MINGW), yes)
13
+ # The import library name is the same as the static library name
14
+ EXTRA_TARGET = install-lib-static
15
+ endif
16
+ endif
17
+
18
+ .PHONY: all
19
+ all:
20
+ $(MAKE) -C src/include MAKELEVEL=0
21
+ $(MAKE) -C src/common MAKELEVEL=0
22
+ $(MAKE) -C src/port MAKELEVEL=0
23
+ $(MAKE) -C src/interfaces/libpq MAKELEVEL=0 all-$(LIBPQ_LIBRARY_TYPE)-lib
24
+ $(MAKE) -C src/bin/pg_config MAKELEVEL=0
25
+
26
+ .PHONY: install-stlib
27
+ install-stlib:
28
+ $(MAKE) -C src/common MAKELEVEL=0 install -o all
29
+ rm -f '$(DESTDIR)$(libdir)/libpgcommon_shlib.a'
30
+ $(MAKE) -C src/port MAKELEVEL=0 install -o all
31
+ rm -f '$(DESTDIR)$(libdir)/libpgport_shlib.a'
32
+
33
+ .PHONY: install
34
+ install: $(LIBPQ_INSTALL_LIBS)
35
+ $(MAKE) -C src/include MAKELEVEL=0 install
36
+ $(MAKE) -C src/interfaces/libpq MAKELEVEL=0 $(EXTRA_TARGET) install-lib-$(LIBPQ_LIBRARY_TYPE) install-lib-pc install -o all -o install-lib
37
+ $(MAKE) -C src/bin/pg_config MAKELEVEL=0 install
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/config.pl ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ our $config = {
2
+ asserts => 0, # --enable-cassert
3
+ # float4byval=>1, # --disable-float4-byval, on by default
4
+
5
+ # float8byval=> $platformbits == 64, # --disable-float8-byval,
6
+ # off by default on 32 bit platforms, on by default on 64 bit platforms
7
+
8
+ # blocksize => 8, # --with-blocksize, 8kB by default
9
+ # wal_blocksize => 8, # --with-wal-blocksize, 8kB by default
10
+ ldap => undef, # --with-ldap
11
+ extraver => undef, # --with-extra-version=<string>
12
+ gss => undef, # --with-gssapi=<path>
13
+ icu => undef, # --with-icu=<path>
14
+ lz4 => undef, # --with-lz4=<path>
15
+ nls => undef, # --enable-nls=<path>
16
+ tap_tests => undef, # --enable-tap-tests
17
+ tcl => undef, # --with-tcl=<path>
18
+ perl => undef, # --with-perl
19
+ python => undef, # --with-python=<path>
20
+ openssl => undef, # --with-openssl=<path>
21
+ uuid => undef, # --with-ossp-uuid
22
+ xml => undef, # --with-libxml=<path>
23
+ xslt => undef, # --with-libxslt=<path>
24
+ iconv => undef, # (not in configure, path to iconv)
25
+ zlib => undef # --with-zlib=<path>
26
+ };
27
+
28
+ 1;
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/fix-configure.patch ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure.ac b/configure.ac
2
+ index fba79ee36..4563fa9f7 100644
3
+ --- a/configure.ac
4
+ +++ b/configure.ac
5
+ @@ -18,15 +18,14 @@ dnl
6
+ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
7
+
8
+ AC_INIT([PostgreSQL], [14.1], [[email protected]], [], [https://www.postgresql.org/])
9
+ -
10
+ -m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
11
+ -Untested combinations of 'autoconf' and PostgreSQL versions are not
12
+ -recommended. You can remove the check from 'configure.ac' but it is then
13
+ -your responsibility whether the result works or not.])])
14
+ +# m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
15
+ +# Untested combinations of 'autoconf' and PostgreSQL versions are not
16
+ +# recommended. You can remove the check from 'configure.ac' but it is then
17
+ +# your responsibility whether the result works or not.])])
18
+ AC_COPYRIGHT([Copyright (c) 1996-2021, PostgreSQL Global Development Group])
19
+ AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
20
+ AC_CONFIG_AUX_DIR(config)
21
+ -AC_PREFIX_DEFAULT(/usr/local/pgsql)
22
+ +#AC_PREFIX_DEFAULT(/usr/local/pgsql)
23
+ AC_DEFINE_UNQUOTED(CONFIGURE_ARGS, ["$ac_configure_args"], [Saved arguments from configure])
24
+
25
+ [PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`]
26
+ @@ -1194,7 +1195,7 @@ Use --without-readline to disable readline support.])
27
+ fi
28
+
29
+ if test "$with_zlib" = yes; then
30
+ - AC_CHECK_LIB(z, inflate, [],
31
+ + AC_SEARCH_LIBS(inflate, [z zlib zlibd], [AC_DEFINE(HAVE_LIBZ,1,[Define to 1 if with zlib])],
32
+ [AC_MSG_ERROR([zlib library not found
33
+ If you have zlib already installed, see config.log for details on the
34
+ failure. It is possible the compiler isn't looking in the proper directory.
35
+ @@ -1247,8 +1248,8 @@ if test "$with_ssl" = openssl ; then
36
+ AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
37
+ AC_CHECK_LIB(ssl, SSL_new, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])])
38
+ else
39
+ - AC_SEARCH_LIBS(CRYPTO_new_ex_data, [eay32 crypto], [], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])])
40
+ - AC_SEARCH_LIBS(SSL_new, [ssleay32 ssl], [], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])])
41
+ + AC_SEARCH_LIBS(CRYPTO_new_ex_data, [libcrypto eay32 crypto], [AC_DEFINE(HAVE_LIBCRYPTO, 1, [Defined to 1 if libcrypto is found])], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])])
42
+ + AC_SEARCH_LIBS(SSL_new, [libssl ssleay32 ssl], [AC_DEFINE(HAVE_LIBSSL, 1, [Defined to 1 if libssl is found])], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])])
43
+ fi
44
+ # Function introduced in OpenSSL 1.0.2.
45
+ AC_CHECK_FUNCS([X509_get_signature_nid])
46
+ @@ -1273,15 +1274,15 @@ if test "$with_pam" = yes ; then
47
+ fi
48
+
49
+ if test "$with_libxml" = yes ; then
50
+ - AC_CHECK_LIB(xml2, xmlSaveToBuffer, [], [AC_MSG_ERROR([library 'xml2' (version >= 2.6.23) is required for XML support])])
51
+ + AC_SEARCH_LIBS(xmlSaveToBuffer, [xml2 libxml2], [AC_DEFINE(HAVE_LIBXML2,1,[Define to 1 if with xml2])], [AC_MSG_ERROR([library 'xml2' (version >= 2.6.23) is required for XML support])])
52
+ fi
53
+
54
+ if test "$with_libxslt" = yes ; then
55
+ - AC_CHECK_LIB(xslt, xsltCleanupGlobals, [], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])])
56
+ + AC_SEARCH_LIBS(xsltCleanupGlobals, [xslt libxslt], [AC_DEFINE(HAVE_LIBXSLT,1,[Define to 1 if with xslt])], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])])
57
+ fi
58
+
59
+ if test "$with_lz4" = yes ; then
60
+ - AC_CHECK_LIB(lz4, LZ4_compress_default, [], [AC_MSG_ERROR([library 'lz4' is required for LZ4 support])])
61
+ + AC_SEARCH_LIBS(LZ4_compress_default, [lz4 lz4d], [AC_DEFINE(HAVE_LIBLZ4,1,[Define to 1 if with lz4])], [AC_MSG_ERROR([library 'lz4' is required for LZ4 support])])
62
+ fi
63
+
64
+ # Note: We can test for libldap_r only after we know PTHREAD_LIBS;
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/linux/configure.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ index 54c852aca..96e2c89ba 100644
3
+ --- a/configure
4
+ +++ b/configure
5
+ @@ -12452,7 +12452,7 @@ if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
6
+ $as_echo_n "(cached) " >&6
7
+ else
8
+ ac_check_lib_save_LIBS=$LIBS
9
+ -LIBS="-lcrypto $LIBS"
10
+ +LIBS="-lcrypto -pthread $LIBS"
11
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12
+ /* end confdefs.h. */
13
+
14
+ @@ -12487,7 +12487,7 @@ if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
15
+ #define HAVE_LIBCRYPTO 1
16
+ _ACEOF
17
+
18
+ - LIBS="-lcrypto $LIBS"
19
+ + LIBS="-lcrypto -pthread $LIBS"
20
+
21
+ else
22
+ as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/mingw/link-with-crypt32.patch ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ index 75210f0..6ea5e1f 100755
3
+ --- a/configure
4
+ +++ b/configure
5
+ @@ -11708,6 +11708,62 @@ if test "$ac_res" != no; then :
6
+
7
+ fi
8
+
9
+ +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CertOpenStore" >&5
10
+ +$as_echo_n "checking for library containing CertOpenStore... " >&6; }
11
+ +if ${ac_cv_search_CertOpenStore+:} false; then :
12
+ + $as_echo_n "(cached) " >&6
13
+ +else
14
+ + ac_func_search_save_LIBS=$LIBS
15
+ +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16
+ +/* end confdefs.h. */
17
+ +
18
+ +/* Override any GCC internal prototype to avoid an error.
19
+ + Use char because int might match the return type of a GCC
20
+ + builtin and then its argument prototype would still apply. */
21
+ +#ifdef __cplusplus
22
+ +extern "C"
23
+ +#endif
24
+ +char CertOpenStore ();
25
+ +int
26
+ +main ()
27
+ +{
28
+ +return CertOpenStore ();
29
+ + ;
30
+ + return 0;
31
+ +}
32
+ +_ACEOF
33
+ +for ac_lib in '' crypt32; do
34
+ + if test -z "$ac_lib"; then
35
+ + ac_res="none required"
36
+ + else
37
+ + ac_res=-l$ac_lib
38
+ + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39
+ + fi
40
+ + if ac_fn_c_try_link "$LINENO"; then :
41
+ + ac_cv_search_CertOpenStore=$ac_res
42
+ +fi
43
+ +rm -f core conftest.err conftest.$ac_objext \
44
+ + conftest$ac_exeext
45
+ + if ${ac_cv_search_CertOpenStore+:} false; then :
46
+ + break
47
+ +fi
48
+ +done
49
+ +if ${ac_cv_search_CertOpenStore+:} false; then :
50
+ +
51
+ +else
52
+ + ac_cv_search_CertOpenStore=no
53
+ +fi
54
+ +rm conftest.$ac_ext
55
+ +LIBS=$ac_func_search_save_LIBS
56
+ +fi
57
+ +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CertOpenStore" >&5
58
+ +$as_echo "$ac_cv_search_CertOpenStore" >&6; }
59
+ +ac_res=$ac_cv_search_CertOpenStore
60
+ +if test "$ac_res" != no; then :
61
+ + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
62
+ +
63
+ +fi
64
+ +
65
+
66
+ if test "$with_readline" = yes; then
67
+
68
+ diff --git a/configure.in b/configure.in
69
+ index 0832636..0911ec0 100644
70
+ --- a/configure.in
71
+ +++ b/configure.in
72
+ @@ -1158,6 +1158,7 @@ AC_SEARCH_LIBS(sched_yield, rt)
73
+ AC_SEARCH_LIBS(gethostbyname_r, nsl)
74
+ # Cygwin:
75
+ AC_SEARCH_LIBS(shmget, cygipc)
76
+ +AC_SEARCH_LIBS(CertOpenStore, crypt32)
77
+
78
+ if test "$with_readline" = yes; then
79
+ PGAC_CHECK_READLINE
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/MSBuildProject-static-crt.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
2
+ index 823357c02..faa3e336f 100644
3
+ --- a/src/tools/msvc/MSBuildProject.pm
4
+ +++ b/src/tools/msvc/MSBuildProject.pm
5
+ @@ -84,16 +84,16 @@ EOF
6
+ defs => "_DEBUG;DEBUG=1",
7
+ opt => 'Disabled',
8
+ strpool => 'false',
9
+ - runtime => 'MultiThreadedDebugDLL'
10
+ + runtime => 'MultiThreadedDebug'
11
+ });
12
+ $self->WriteItemDefinitionGroup(
13
+ $f,
14
+ 'Release',
15
+ {
16
+ defs => "",
17
+ opt => 'Full',
18
+ strpool => 'true',
19
+ - runtime => 'MultiThreadedDLL'
20
+ + runtime => 'MultiThreaded'
21
+ });
22
+ return;
23
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Mkvcbuild-static-lib.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
2
+ index 99f39caa5..4f51c12f2 100644
3
+ --- a/src/tools/msvc/Mkvcbuild.pm
4
+ +++ b/src/tools/msvc/Mkvcbuild.pm
5
+ @@ -199,7 +199,7 @@ sub mkvcbuild
6
+ 'syncrep_gram.y');
7
+ $postgres->AddFiles('src/backend/utils/adt', 'jsonpath_scan.l',
8
+ 'jsonpath_gram.y');
9
+ - $postgres->AddDefine('BUILDING_DLL');
10
+ + # $postgres->AddDefine('BUILDING_DLL');
11
+ $postgres->AddLibrary('secur32.lib');
12
+ $postgres->AddLibrary('ws2_32.lib');
13
+ $postgres->AddLibrary('wldap32.lib') if ($solution->{options}->{ldap});
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/arm.patch ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
2
+ index 99f39caa5..4f51c12f2 100644
3
+ --- a/src/tools/msvc/Mkvcbuild.pm
4
+ +++ b/src/tools/msvc/Mkvcbuild.pm
5
+ @@ -110,8 +110,8 @@ sub mkvcbuild
6
+
7
+ if ($vsVersion >= '9.00')
8
+ {
9
+ - push(@pgportfiles, 'pg_crc32c_sse42_choose.c');
10
+ - push(@pgportfiles, 'pg_crc32c_sse42.c');
11
+ + #push(@pgportfiles, 'pg_crc32c_sse42_choose.c');
12
+ + #push(@pgportfiles, 'pg_crc32c_sse42.c');
13
+ push(@pgportfiles, 'pg_crc32c_sb8.c');
14
+ }
15
+ else
16
+ diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
17
+ index 823357c02..625f32bf8 100644
18
+ --- a/src/tools/msvc/MSBuildProject.pm
19
+ +++ b/src/tools/msvc/MSBuildProject.pm
20
+ @@ -307,9 +307,8 @@ sub WriteItemDefinitionGroup
21
+ : ($self->{type} eq "dll" ? 'DynamicLibrary' : 'StaticLibrary');
22
+ my $libs = $self->GetAdditionalLinkerDependencies($cfgname, ';');
23
+
24
+ - my $targetmachine =
25
+ - $self->{platform} eq 'Win32' ? 'MachineX86' : 'MachineX64';
26
+ -
27
+ + my $targetmachine = $self->{platform} eq 'ARM64' ? 'MachineARM64' : 'MachineARM';
28
+ +
29
+ my $includes = $self->{includes};
30
+ unless ($includes eq '' or $includes =~ /;$/)
31
+ {
32
+ @@ -347,7 +349,6 @@ sub WriteItemDefinitionGroup
33
+ <ProgramDatabaseFile>.\\$cfgname\\$self->{name}\\$self->{name}.pdb</ProgramDatabaseFile>
34
+ <GenerateMapFile>false</GenerateMapFile>
35
+ <MapFileName>.\\$cfgname\\$self->{name}\\$self->{name}.map</MapFileName>
36
+ - <RandomizedBaseAddress>false</RandomizedBaseAddress>
37
+ <!-- Permit links to MinGW-built, 32-bit DLLs (default before VS2012). -->
38
+ <ImageHasSafeExceptionHandlers/>
39
+ <SubSystem>Console</SubSystem>
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/fix-compile-flag-Zi.patch ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
2
+ index b93992f..2397511 100644
3
+ --- a/src/tools/msvc/MSBuildProject.pm
4
+ +++ b/src/tools/msvc/MSBuildProject.pm
5
+ @@ -336,7 +336,7 @@ sub WriteItemDefinitionGroup
6
+ <BrowseInformation>false</BrowseInformation>
7
+ <WarningLevel>Level3</WarningLevel>
8
+ <SuppressStartupBanner>true</SuppressStartupBanner>
9
+ - <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
10
+ + <DebugInformationFormat>OldStyle</DebugInformationFormat>
11
+ <CompileAs>Default</CompileAs>
12
+ </ClCompile>
13
+ <Link>
14
+ diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
15
+ index e0c9a88..98f9e67 100644
16
+ --- a/src/tools/msvc/Install.pm
17
+ +++ b/src/tools/msvc/Install.pm
18
+ @@ -352,9 +352,12 @@ sub CopySolutionOutput
19
+ || croak "Could not copy $pf.$ext\n";
20
+ }
21
+ }
22
+ - lcopy("$conf\\$pf\\$pf.pdb", "$target\\bin\\$pf.pdb")
23
+ - || croak "Could not copy $pf.pdb\n";
24
+ - print ".";
25
+ + if ($1 eq 'DynamicLibrary')
26
+ + {
27
+ + lcopy("$conf\\$pf\\$pf.pdb", "$target\\bin\\$pf.pdb")
28
+ + || croak "Could not copy $pf.pdb\n";
29
+ + print ".";
30
+ + }
31
+ }
32
+ print "\n";
33
+ return;
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/host_skip_openssl.patch ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
2
+ index 25a549015..9018270ab 100644
3
+ --- a/src/tools/msvc/Solution.pm
4
+ +++ b/src/tools/msvc/Solution.pm
5
+ @@ -132,21 +132,21 @@ sub GetOpenSSLVersion
6
+ # Attempt to get OpenSSL version and location. This assumes that
7
+ # openssl.exe is in the specified directory.
8
+ # Quote the .exe name in case it has spaces
9
+ - my $opensslcmd =
10
+ - qq("openssl.exe" version 2>&1);
11
+ - my $sslout = `$opensslcmd`;
12
+ + #my $opensslcmd =
13
+ + # qq("openssl.exe" version 2>&1);
14
+ + #my $sslout = `$opensslcmd`;
15
+
16
+ - $? >> 8 == 0
17
+ - or croak
18
+ - "Unable to determine OpenSSL version: The openssl.exe command wasn't found.";
19
+ + #$? >> 8 == 0
20
+ + # or croak
21
+ + # "Unable to determine OpenSSL version: The openssl.exe command wasn't found.";
22
+
23
+ - if ($sslout =~ /(\d+)\.(\d+)\.(\d+)(\D)/m)
24
+ - {
25
+ - return ($1, $2, $3);
26
+ - }
27
+ + #if ($sslout =~ /(\d+)\.(\d+)\.(\d+)(\D)/m)
28
+ + #{
29
+ + return (1, 1, 1);
30
+ + #}
31
+
32
+ - croak
33
+ - "Unable to determine OpenSSL version: The openssl.exe version could not be determined.";
34
+ + #croak
35
+ + # "Unable to determine OpenSSL version: The openssl.exe version could not be determined.";
36
+ }
37
+
38
+ sub GenerateFiles
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/install.patch ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
2
+ index d109b2c90..75c7446e6 100644
3
+ --- a/src/tools/msvc/Install.pm
4
+ +++ b/src/tools/msvc/Install.pm
5
+ @@ -89,10 +89,10 @@ sub Install
6
+ my $majorver = DetermineMajorVersion();
7
+ print "Installing version $majorver for $conf in $target\n";
8
+
9
+ - my @client_dirs = ('bin', 'lib', 'share', 'symbols');
10
+ + my @client_dirs = ('bin', 'lib', 'share', 'tools', 'share/libpq', 'tools/libpq');
11
+ my @all_dirs = (
12
+ - @client_dirs, 'doc', 'doc/contrib', 'doc/extension', 'share/contrib',
13
+ - 'share/extension', 'share/timezonesets', 'share/tsearch_data');
14
+ + @client_dirs, 'doc', 'doc/libpq', 'doc/libpq/contrib', 'doc/libpq/extension', 'share/libpq/contrib',
15
+ + 'share/libpq/extension', 'share/libpq/timezonesets', 'share/libpq/tsearch_data');
16
+ if ($insttype eq "client")
17
+ {
18
+ EnsureDirectories($target, @client_dirs);
19
+ @@ -117,7 +117,7 @@ sub Install
20
+ }
21
+ },
22
+ @top_dir);
23
+ - CopySetOfFiles('config files', $sample_files, $target . '/share/');
24
+ + CopySetOfFiles('config files', $sample_files, $target . '/share/libpq/');
25
+ CopyFiles(
26
+ 'Import libraries',
27
+ $target . '/lib/',
28
+ @@ -131,35 +131,35 @@ sub Install
29
+ CopySetOfFiles(
30
+ 'timezone names',
31
+ [ glob('src\timezone\tznames\*.txt') ],
32
+ - $target . '/share/timezonesets/');
33
+ + $target . '/share/libpq/timezonesets/');
34
+ CopyFiles(
35
+ 'timezone sets',
36
+ - $target . '/share/timezonesets/',
37
+ + $target . '/share/libpq/timezonesets/',
38
+ 'src/timezone/tznames/', 'Default', 'Australia', 'India');
39
+ CopySetOfFiles(
40
+ 'BKI files',
41
+ [ glob("src\\backend\\catalog\\postgres.*") ],
42
+ - $target . '/share/');
43
+ + $target . '/share/libpq/');
44
+ CopySetOfFiles(
45
+ 'SQL files',
46
+ [ glob("src\\backend\\catalog\\*.sql") ],
47
+ - $target . '/share/');
48
+ + $target . '/share/libpq/');
49
+ CopyFiles(
50
+ - 'Information schema data', $target . '/share/',
51
+ + 'Information schema data', $target . '/share/libpq/',
52
+ 'src/backend/catalog/', 'sql_features.txt');
53
+ CopyFiles(
54
+ - 'Error code data', $target . '/share/',
55
+ + 'Error code data', $target . '/share/libpq/',
56
+ 'src/backend/utils/', 'errcodes.txt');
57
+ GenerateTimezoneFiles($target, $conf);
58
+ GenerateTsearchFiles($target);
59
+ CopySetOfFiles(
60
+ 'Stopword files',
61
+ [ glob("src\\backend\\snowball\\stopwords\\*.stop") ],
62
+ - $target . '/share/tsearch_data/');
63
+ + $target . '/share/libpq/tsearch_data/');
64
+ CopySetOfFiles(
65
+ 'Dictionaries sample files',
66
+ [ glob("src\\backend\\tsearch\\dicts\\*_sample*") ],
67
+ - $target . '/share/tsearch_data/');
68
+ + $target . '/share/libpq/tsearch_data/');
69
+
70
+ my $pl_extension_files = [];
71
+ my @pldirs = ('src/pl/plpgsql/src');
72
+ @@ -178,7 +178,7 @@ sub Install
73
+ },
74
+ @pldirs);
75
+ CopySetOfFiles('PL Extension files',
76
+ - $pl_extension_files, $target . '/share/extension/');
77
+ + $pl_extension_files, $target . '/share/libpq/extension/');
78
+ }
79
+
80
+ GenerateNLSFiles($target, $config->{nls}, $majorver) if ($config->{nls});
81
+ @@ -293,23 +293,26 @@ sub CopySolutionOutput
82
+ {
83
+ if ($1 == 1)
84
+ {
85
+ - push(@{ $install_list{'bin'} }, "exe");
86
+ + push(@{ $install_list{'tools\\libpq'} }, "exe");
87
+ }
88
+ elsif ($1 == 2)
89
+ {
90
+ - push(@{ $install_list{'lib'} }, "dll");
91
+ + push(@{ $install_list{'bin'} }, "dll");
92
+ if ($is_sharedlib)
93
+ {
94
+ push(@{ $install_list{'bin'} }, "dll");
95
+ push(@{ $install_list{'lib'} }, "lib");
96
+ }
97
+ + else
98
+ + {
99
+ + push(@{ $install_list{'lib'} }, "lib");
100
+ + }
101
+ }
102
+ else
103
+ {
104
+ -
105
+ + push(@{ $install_list{'lib'} }, "lib");
106
+ # Static libraries, such as libpgport, only used internally
107
+ # during build, don't install.
108
+ - next;
109
+ }
110
+ }
111
+ elsif ($vcproj eq 'vcxproj'
112
+ @@ -320,11 +320,11 @@ sub CopySolutionOutput
113
+ {
114
+ if ($1 eq 'Application')
115
+ {
116
+ - push(@{ $install_list{'bin'} }, "exe");
117
+ + push(@{ $install_list{'tools\\libpq'} }, "exe");
118
+ }
119
+ elsif ($1 eq 'DynamicLibrary')
120
+ {
121
+ - push(@{ $install_list{'lib'} }, "dll");
122
+ + push(@{ $install_list{'bin'} }, "dll");
123
+ if ($is_sharedlib)
124
+ {
125
+ push(@{ $install_list{'bin'} }, "dll");
126
+ @@ -333,10 +333,9 @@ sub CopySolutionOutput
127
+ }
128
+ else # 'StaticLibrary'
129
+ {
130
+ -
131
+ + push(@{ $install_list{'lib'} }, "lib");
132
+ # Static lib, such as libpgport, only used internally
133
+ # during build, don't install.
134
+ - next;
135
+ }
136
+ }
137
+ else
138
+ @@ -352,7 +352,7 @@ sub CopySolutionOutput
139
+ || croak "Could not copy $pf.$ext\n";
140
+ }
141
+ }
142
+ - lcopy("$conf\\$pf\\$pf.pdb", "$target\\symbols\\$pf.pdb")
143
+ + lcopy("$conf\\$pf\\$pf.pdb", "$target\\bin\\$pf.pdb")
144
+ || croak "Could not copy $pf.pdb\n";
145
+ print ".";
146
+ }
147
+ @@ -374,5 +374,5 @@ sub GenerateTimezoneFiles
148
+ print "Generating timezone files...";
149
+
150
+ - my @args = ("$conf/zic/zic", '-d', "$target/share/timezone");
151
+ + my @args = ("$conf/zic/zic", '-d', "$target/share/libpq/timezone");
152
+ foreach (@tzfiles)
153
+ {
154
+ @@ -398,7 +398,7 @@ sub GenerateTsearchFiles
155
+ $mf =~ /^LANGUAGES\s*=\s*(.*)$/m
156
+ || die "Could not find LANGUAGES line in snowball Makefile\n";
157
+ my @pieces = split /\s+/, $1;
158
+ - open($F, '>', "$target/share/snowball_create.sql")
159
+ + open($F, '>', "$target/share/libpq/snowball_create.sql")
160
+ || die "Could not write snowball_create.sql";
161
+ print $F read_file('src/backend/snowball/snowball_func.sql.in');
162
+
163
+ @@ -483,7 +483,7 @@ sub CopySubdirFiles
164
+ foreach my $f (split /\s+/, $flist)
165
+ {
166
+ lcopy("$subdir/$module/$f.control",
167
+ - "$target/share/extension/$f.control")
168
+ + "$target/share/libpq/extension/$f.control")
169
+ || croak("Could not copy file $f.control in contrib $module");
170
+ print '.';
171
+ }
172
+ @@ -501,7 +501,7 @@ sub CopySubdirFiles
173
+ foreach my $f (split /\s+/, $flist)
174
+ {
175
+ lcopy("$subdir/$module/$f",
176
+ - "$target/share/$moduledir/" . basename($f))
177
+ + "$target/share/libpq/$moduledir/" . basename($f))
178
+ || croak("Could not copy file $f in contrib $module");
179
+ print '.';
180
+ }
181
+ @@ -516,7 +516,7 @@ sub CopySubdirFiles
182
+ foreach my $f (split /\s+/, $flist)
183
+ {
184
+ lcopy("$subdir/$module/$f",
185
+ - "$target/share/tsearch_data/" . basename($f))
186
+ + "$target/share/libpq/tsearch_data/" . basename($f))
187
+ || croak("Could not copy file $f in $subdir $module");
188
+ print '.';
189
+ }
190
+ @@ -579,7 +579,7 @@ sub CopySubdirFiles
191
+ if ($module eq 'spi');
192
+ foreach my $f (split /\s+/, $flist)
193
+ {
194
+ - lcopy("$subdir/$module/$f", "$target/doc/$moduledir/$f")
195
+ + lcopy("$subdir/$module/$f", "$target/doc/libpq/$moduledir/$f")
196
+ || croak("Could not copy file $f in contrib $module");
197
+ print '.';
198
+ }
199
+ @@ -708,7 +708,7 @@ sub GenerateNLSFiles
200
+ my $majorver = shift;
201
+
202
+ print "Installing NLS files...";
203
+ - EnsureDirectories($target, "share/locale");
204
+ + EnsureDirectories($target, "share/libpq/locale");
205
+ my @flist;
206
+ File::Find::find(
207
+ {
208
+ @@ -730,12 +730,12 @@ sub GenerateNLSFiles
209
+ next unless /([^\/]+)\.po/;
210
+ $lang = $1;
211
+
212
+ - EnsureDirectories($target, "share/locale/$lang",
213
+ - "share/locale/$lang/LC_MESSAGES");
214
+ + EnsureDirectories($target, "share/libpq/locale/$lang",
215
+ + "share/libpq/locale/$lang/LC_MESSAGES");
216
+ my @args = (
217
+ "$nlspath\\bin\\msgfmt",
218
+ '-o',
219
+ - "$target\\share\\locale\\$lang\\LC_MESSAGES\\$prgm-$majorver.mo",
220
+ + "$target\\share\\libpq\\locale\\$lang\\LC_MESSAGES\\$prgm-$majorver.mo",
221
+ $_);
222
+ system(@args) && croak("Could not run msgfmt on $dir\\$_");
223
+ print ".";
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/minimize_install.patch ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
2
+ index d109b2c90..75c7446e6 100644
3
+ --- a/src/tools/msvc/Install.pm
4
+ +++ b/src/tools/msvc/Install.pm
5
+ @@ -22,13 +22,13 @@ our (@ISA, @EXPORT_OK);
6
+
7
+ my $insttype;
8
+ my @client_contribs = ('oid2name', 'pgbench', 'vacuumlo');
9
+ -my @client_program_files = (
10
+ - 'clusterdb', 'createdb', 'createuser', 'dropdb',
11
+ - 'dropuser', 'ecpg', 'libecpg', 'libecpg_compat',
12
+ - 'libpgtypes', 'libpq', 'pg_amcheck', 'pg_basebackup',
13
+ - 'pg_config', 'pg_dump', 'pg_dumpall', 'pg_isready',
14
+ - 'pg_receivewal', 'pg_recvlogical', 'pg_restore', 'psql',
15
+ - 'reindexdb', 'vacuumdb', @client_contribs);
16
+ +my @client_program_files = ( 'libecpg','libecpg_compat', 'libpgtypes', 'libpq' );
17
+ + #'clusterdb', 'createdb', 'createuser', 'dropdb',
18
+ + #'dropuser', 'ecpg', 'libecpg', 'libecpg_compat',
19
+ + #'libpgtypes', 'libpq', 'pg_amcheck', 'pg_basebackup',
20
+ + #'pg_config', 'pg_dump', 'pg_dumpall', 'pg_isready',
21
+ + #'pg_receivewal', 'pg_recvlogical', 'pg_restore', 'psql',
22
+ + #'reindexdb', 'vacuumdb', @client_contribs);
23
+
24
+ sub lcopy
25
+ {
26
+ @@ -121,7 +121,7 @@ sub Install
27
+ CopyFiles(
28
+ 'Import libraries',
29
+ $target . '/lib/',
30
+ - "$conf\\", "postgres\\postgres.lib", "libpgcommon\\libpgcommon.lib",
31
+ + "$conf\\", "libpgcommon\\libpgcommon.lib",
32
+ "libpgport\\libpgport.lib");
33
+ CopyContribFiles($config, $target);
34
+ CopyIncludeFiles($target);
35
+