[gklib, metis] Add support for x64-mingw-dynamic (#49865)

This commit is contained in:
Vincent Le Garrec 2026-02-10 03:56:18 +01:00 committed by GitHub
parent 5a11134d9e
commit 302f756fa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 43 additions and 2 deletions

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
SHA512 54ba87f2c47e025ada0fe6fe608d9d144df5cd13e97e71892dbba4d50cd96409add309937a540cdf8bd2632cbfbc0e22e080a32d114ba6037008c8676aa8d88d
PATCHES
build-fixes.patch
regex.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED)

13
ports/gklib/regex.patch Normal file
View File

@ -0,0 +1,13 @@
--- 71aac9f2f8-6ab87cd67d.clean/CMakeLists.txt.old 2026-02-05 23:01:42.685830600 +0100
+++ 71aac9f2f8-6ab87cd67d.clean/CMakeLists.txt 2026-02-05 23:02:00.820495600 +0100
@@ -109,6 +109,10 @@ if(NOT HAVE_PCREPOSIX_H)
check_include_file(regex.h HAVE_REGEX_H)
if(NOT HAVE_REGEX_H)
set(USE_GKREGEX ON)
+ else()
+ if(MINGW)
+ target_link_libraries(${PROJECT_NAME} PUBLIC regex)
+ endif()
endif()
endif()

View File

@ -1,6 +1,7 @@
{
"name": "gklib",
"version-date": "2025-07-06",
"port-version": 1,
"description": "General helper libraries for KarypisLab.",
"homepage": "https://github.com/KarypisLab/GKlib/",
"license": "Apache-2.0",

View File

@ -0,0 +1,14 @@
--- 3b0b581ab2-3f513bfb0c.clean/conf/gkbuild.cmake.old 2026-02-07 18:50:18.944623000 +0100
+++ 3b0b581ab2-3f513bfb0c.clean/conf/gkbuild.cmake 2026-02-07 18:51:19.086997000 +0100
@@ -16,9 +16,9 @@ option(GKRAND "enable GKRAND support" OF
# Add compiler flags.
if(MSVC)
- set(GK_COPTIONS "-DWIN32 -DMSC -D_CRT_SECURE_NO_DEPRECATE -DUSE_GKREGEX")
+ set(GK_COPTIONS "-DWIN32 -DMSC -D_CRT_SECURE_NO_DEPRECATE")
elseif(MINGW)
- set(GK_COPTS "-DUSE_GKREGEX")
+# set(GK_COPTS "-DUSE_GKREGEX")
else()
set(GK_COPTIONS "-DLINUX -D_FILE_OFFSET_BITS=64")
endif(MSVC)

View File

@ -4,6 +4,7 @@ vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
SHA512 c41168788c287ed9baea3c43c1ea8ef7d0bbdaa340a03cbbb5d0ba2d928d8a6dd83e2b77e7d3fabc58ac6d2b59a4be0492940e31460fe5e1807849cb98e80d2e
PATCHES
build-fixes.patch
build-fixes-gkregex.patch
)
file(COPY "${SOURCE_PATH}/include/" DESTINATION "${SOURCE_PATH}/build/xinclude")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/install_config.cmake" DESTINATION "${SOURCE_PATH}")

View File

@ -1,6 +1,7 @@
{
"name": "metis",
"version-date": "2025-07-04",
"port-version": 1,
"description": "Serial Graph Partitioning and Fill-reducing Matrix Ordering",
"homepage": "https://github.com/KarypisLab/METIS",
"license": "Apache-2.0",

View File

@ -3370,7 +3370,7 @@
},
"gklib": {
"baseline": "2025-07-06",
"port-version": 0
"port-version": 1
},
"gl2ps": {
"baseline": "1.4.2",
@ -6334,7 +6334,7 @@
},
"metis": {
"baseline": "2025-07-04",
"port-version": 0
"port-version": 1
},
"metrohash": {
"baseline": "1.1.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5fcb778964e119e95b4b30606fcea8a3362d79c1",
"version-date": "2025-07-06",
"port-version": 1
},
{
"git-tree": "c3b9e3dbc3c508699816a7723c720428a478b364",
"version-date": "2025-07-06",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b831f3b20149877e84f9101cc44ebb1ffe0e26f9",
"version-date": "2025-07-04",
"port-version": 1
},
{
"git-tree": "83d3f4ee2d498f9bc5d8f63b562744442c6065f1",
"version-date": "2025-07-04",