From bff959f3fc0f166467ac7d61d53081cebffdeebb Mon Sep 17 00:00:00 2001 From: Frank <1433351828@qq.com> Date: Thu, 16 Nov 2023 02:50:07 +0000 Subject: [PATCH 1/6] [libslirp] fix dependence on osx and add usage --- ports/libslirp/fix-osx.patch | 15 +++++++++++++++ ports/libslirp/portfile.cmake | 3 +++ ports/libslirp/usage | 5 +++++ ports/libslirp/vcpkg.json | 1 + 4 files changed, 24 insertions(+) create mode 100644 ports/libslirp/fix-osx.patch create mode 100644 ports/libslirp/usage diff --git a/ports/libslirp/fix-osx.patch b/ports/libslirp/fix-osx.patch new file mode 100644 index 00000000000000..038abf995fd11d --- /dev/null +++ b/ports/libslirp/fix-osx.patch @@ -0,0 +1,15 @@ +diff --git a/meson.build b/meson.build +index 5605dc9..bcbcd16 100644 +--- a/meson.build ++++ b/meson.build +@@ -117,6 +117,10 @@ if cc.has_link_argument(vflag_test) + vflag += vflag_test + endif + ++if host_system == 'darwin' ++ vflag += '-framework CoreFoundation -framework AppKit -framework Carbon' ++endif() ++ + install_devel = not meson.is_subproject() + + configure_file( diff --git a/ports/libslirp/portfile.cmake b/ports/libslirp/portfile.cmake index 0bd6e252c7e9db..f9c3fe8e975eba 100644 --- a/ports/libslirp/portfile.cmake +++ b/ports/libslirp/portfile.cmake @@ -5,6 +5,8 @@ vcpkg_from_gitlab( REF v4.7.0 SHA512 387f4a6dad240ce633df2640bb49c6cb0041c8b3afc8d0ef38186d385f00dd9e4ef4443e93e1b71dbf05e22892b6f2771a87a202e815d8ec899ab5c147a1f09f HEAD_REF master + PATCHES + fix-osx.patch ) if(VCPKG_HOST_IS_WINDOWS) @@ -24,4 +26,5 @@ vcpkg_fixup_pkgconfig() vcpkg_copy_pdbs() +file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libslirp" RENAME copyright) diff --git a/ports/libslirp/usage b/ports/libslirp/usage new file mode 100644 index 00000000000000..215d3f4b62ce4d --- /dev/null +++ b/ports/libslirp/usage @@ -0,0 +1,5 @@ +slirp can be imported via CMake FindPkgConfig module: + + find_package(PkgConfig REQUIRED) + pkg_check_modules(Slirp REQUIRED IMPORTED_TARGET slirp) + target_link_libraries(slirp-test PRIVATE PkgConfig::Slirp) \ No newline at end of file diff --git a/ports/libslirp/vcpkg.json b/ports/libslirp/vcpkg.json index 032e5cc5dfe5b6..ef3ed0a9328a3c 100644 --- a/ports/libslirp/vcpkg.json +++ b/ports/libslirp/vcpkg.json @@ -1,6 +1,7 @@ { "name": "libslirp", "version-semver": "4.7.0", + "port-version": 1, "description": "libslirp is a user-mode networking library used by virtual machines, containers or various tools.", "homepage": "https://gitlab.freedesktop.org/slirp/libslirp", "license": "BSD-3-Clause", From e0087c468c39975479d91a50e874c619e5e09b29 Mon Sep 17 00:00:00 2001 From: Frank <1433351828@qq.com> Date: Thu, 16 Nov 2023 02:50:28 +0000 Subject: [PATCH 2/6] version --- versions/baseline.json | 2 +- versions/l-/libslirp.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/versions/baseline.json b/versions/baseline.json index 536a975686f4ae..dbb579d14bfa61 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4754,7 +4754,7 @@ }, "libslirp": { "baseline": "4.7.0", - "port-version": 0 + "port-version": 1 }, "libsm": { "baseline": "1.2.3", diff --git a/versions/l-/libslirp.json b/versions/l-/libslirp.json index 0a600351efb222..25dc53f3c40c0a 100644 --- a/versions/l-/libslirp.json +++ b/versions/l-/libslirp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "8cfef69e0b0596d37866815c21adb0daa190d7b6", + "version-semver": "4.7.0", + "port-version": 1 + }, { "git-tree": "6946f40e08a89013e998d3bf397613bdf08cb581", "version-semver": "4.7.0", From d92df8ccc27dea5af1665c8b2c0718aeee7dc054 Mon Sep 17 00:00:00 2001 From: Frank <1433351828@qq.com> Date: Thu, 16 Nov 2023 02:57:47 +0000 Subject: [PATCH 3/6] update patch --- ports/libslirp/fix-osx.patch | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ports/libslirp/fix-osx.patch b/ports/libslirp/fix-osx.patch index 038abf995fd11d..f5794745a538e1 100644 --- a/ports/libslirp/fix-osx.patch +++ b/ports/libslirp/fix-osx.patch @@ -1,15 +1,15 @@ -diff --git a/meson.build b/meson.build -index 5605dc9..bcbcd16 100644 ---- a/meson.build -+++ b/meson.build -@@ -117,6 +117,10 @@ if cc.has_link_argument(vflag_test) - vflag += vflag_test - endif - -+if host_system == 'darwin' -+ vflag += '-framework CoreFoundation -framework AppKit -framework Carbon' -+endif() -+ - install_devel = not meson.is_subproject() - - configure_file( +diff --git a/meson.build b/meson.build +index 5605dc9..968edfb 100644 +--- a/meson.build ++++ b/meson.build +@@ -117,6 +117,10 @@ if cc.has_link_argument(vflag_test) + vflag += vflag_test + endif + ++if host_system == 'darwin' ++ vflag += '-framework CoreFoundation -framework AppKit -framework Carbon' ++endif ++ + install_devel = not meson.is_subproject() + + configure_file( From 02d981f1dff602d54400113cdc339bcba4982316 Mon Sep 17 00:00:00 2001 From: Frank <1433351828@qq.com> Date: Thu, 16 Nov 2023 02:58:12 +0000 Subject: [PATCH 4/6] version --- versions/l-/libslirp.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/l-/libslirp.json b/versions/l-/libslirp.json index 25dc53f3c40c0a..9cc34678e95d10 100644 --- a/versions/l-/libslirp.json +++ b/versions/l-/libslirp.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "8cfef69e0b0596d37866815c21adb0daa190d7b6", + "git-tree": "39a62e66eeef4b2ad36c679ce5ccdd854b3d9920", "version-semver": "4.7.0", "port-version": 1 }, From b39d7d9acf62741326af7ab6d952f53d287523a2 Mon Sep 17 00:00:00 2001 From: Frank <1433351828@qq.com> Date: Tue, 21 Nov 2023 06:02:21 +0000 Subject: [PATCH 5/6] [CImg] Update and install the header files --- ports/cimg/CMakeLists.txt | 4 ++++ ports/cimg/portfile.cmake | 12 ++++++++---- ports/cimg/vcpkg.json | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ports/cimg/CMakeLists.txt b/ports/cimg/CMakeLists.txt index 75ae59cd5ef546..2d1a3f351afd3a 100644 --- a/ports/cimg/CMakeLists.txt +++ b/ports/cimg/CMakeLists.txt @@ -19,3 +19,7 @@ install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/CImg.h DESTINATION include ) + +install( + DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/plugins DESTINATION include) + diff --git a/ports/cimg/portfile.cmake b/ports/cimg/portfile.cmake index 8e128a33e64244..d580cc776da944 100644 --- a/ports/cimg/portfile.cmake +++ b/ports/cimg/portfile.cmake @@ -1,7 +1,8 @@ + vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH REPO dtschump/CImg - REF b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd # v2.9.9 - SHA512 327c72320e7cac386ba72d417c45b9e8b40df34650370c34e687c362731919af1b447b2ee498f21278d4af155f0d9dbfabd222856d5f18c2e05569fa638a5909 + REF d6c022169271fa3c73abf94002a557c4e6f8327f #v3.3.2 + SHA512 0cb2e0cc41902bdb3a21bac079104d4c49bbf51ae0eef6497fdb645934311aa75480bffcc2fc9d11c5b54912397fb4910c4c20ccd766a83e317a8e861b9b513b HEAD_REF master ) @@ -17,5 +18,8 @@ vcpkg_cmake_install() file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") -file(INSTALL "${SOURCE_PATH}/Licence_CeCILL-C_V1-en.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) -file(INSTALL "${SOURCE_PATH}/Licence_CeCILL_V2-en.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright2) +vcpkg_install_copyright( + FILE_LIST + "${SOURCE_PATH}/Licence_CeCILL-C_V1-en.txt" + "${SOURCE_PATH}/Licence_CeCILL_V2-en.txt" +) diff --git a/ports/cimg/vcpkg.json b/ports/cimg/vcpkg.json index cc1c448bd89e83..02794016ca869d 100644 --- a/ports/cimg/vcpkg.json +++ b/ports/cimg/vcpkg.json @@ -1,6 +1,6 @@ { "name": "cimg", - "version": "2.9.9", + "version": "3.3.2", "description": "The CImg Library is a small, open-source, and modern C++ toolkit for image processing", "homepage": "https://github.com/dtschump/CImg", "dependencies": [ From a224eb7a547be5940087fb2aca16e8ff0b3eb448 Mon Sep 17 00:00:00 2001 From: Frank <1433351828@qq.com> Date: Tue, 21 Nov 2023 06:02:44 +0000 Subject: [PATCH 6/6] version --- versions/baseline.json | 2 +- versions/c-/cimg.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/versions/baseline.json b/versions/baseline.json index dbb579d14bfa61..3e78d81faa6142 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1573,7 +1573,7 @@ "port-version": 0 }, "cimg": { - "baseline": "2.9.9", + "baseline": "3.3.2", "port-version": 0 }, "cista": { diff --git a/versions/c-/cimg.json b/versions/c-/cimg.json index 7f900ec6171836..942fc4476272a1 100644 --- a/versions/c-/cimg.json +++ b/versions/c-/cimg.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "aa3a7f6664a72a9c74b840e065abdd184655939a", + "version": "3.3.2", + "port-version": 0 + }, { "git-tree": "2eac332b873f6a2b9108c3e71e59feec8efe5026", "version": "2.9.9",