From d14bd2b23d5b1e1d8e0c05faafcbd74d7b00f629 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Tue, 19 Nov 2024 01:50:22 +0100 Subject: [PATCH] [sdl3] Fix config fixup (#42206) --- ports/sdl3/portfile.cmake | 8 +++++++- ports/sdl3/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/s-/sdl3.json | 5 +++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ports/sdl3/portfile.cmake b/ports/sdl3/portfile.cmake index d4d92ff00359a0..010771b0fd6d38 100644 --- a/ports/sdl3/portfile.cmake +++ b/ports/sdl3/portfile.cmake @@ -48,7 +48,13 @@ vcpkg_cmake_configure( ) vcpkg_cmake_install() -vcpkg_cmake_config_fixup() + +# Subject to https://github.com/libsdl-org/SDL/pull/11492 +set(config_path "share/${PORT}/SDL3") +if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) + set(config_path "share/${PORT}") +endif() +vcpkg_cmake_config_fixup(CONFIG_PATH "${config_path}") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" diff --git a/ports/sdl3/vcpkg.json b/ports/sdl3/vcpkg.json index 1f8b9ea163b4f0..a0fec63d84041c 100644 --- a/ports/sdl3/vcpkg.json +++ b/ports/sdl3/vcpkg.json @@ -1,7 +1,7 @@ { "name": "sdl3", "version": "3.1.6-preview", - "port-version": 1, + "port-version": 2, "description": "Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.", "homepage": "https://www.libsdl.org", "license": "Zlib AND MIT AND Apache-2.0", diff --git a/versions/baseline.json b/versions/baseline.json index b716f0aa75fa3e..a838774201f2f2 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8242,7 +8242,7 @@ }, "sdl3": { "baseline": "3.1.6-preview", - "port-version": 1 + "port-version": 2 }, "seacas": { "baseline": "2022-11-22", diff --git a/versions/s-/sdl3.json b/versions/s-/sdl3.json index 3d51ed3a574ddf..c0b7608fb4e30a 100644 --- a/versions/s-/sdl3.json +++ b/versions/s-/sdl3.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "696763312883c589e3a9b07f42b7293de4dcf2b1", + "version": "3.1.6-preview", + "port-version": 2 + }, { "git-tree": "fc1dd65862da2cf2770e2540136da1f89b493cda", "version": "3.1.6-preview",