[sdl2-image] Fix pc file on *-windows-static (#46765)

This commit is contained in:
Pierre Wendling 2025-08-05 22:30:14 +02:00 committed by GitHub
parent 57eefe8a9b
commit 0ed6618f13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 3 deletions

View File

@ -41,8 +41,14 @@ endif()
vcpkg_fixup_pkgconfig()
set(debug_libname "SDL2_imaged")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/SDL2_image.pc" "-lSDL2_image" "-lSDL2_image-static")
set(debug_libname "SDL2_image-staticd")
endif()
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/SDL2_image.pc" "-lSDL2_image" "-lSDL2_imaged")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/SDL2_image.pc" "-lSDL2_image" "-l${debug_libname}")
endif()
file(REMOVE_RECURSE

View File

@ -1,7 +1,7 @@
{
"name": "sdl2-image",
"version": "2.8.8",
"port-version": 1,
"port-version": 2,
"description": "SDL_image is an image file loading library. It loads images as SDL surfaces and textures, and supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV",
"homepage": "https://github.com/libsdl-org/SDL_image",
"license": "Zlib",

View File

@ -8650,7 +8650,7 @@
},
"sdl2-image": {
"baseline": "2.8.8",
"port-version": 1
"port-version": 2
},
"sdl2-mixer": {
"baseline": "2.8.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3e390ce4c736f698cd4e670d27fd9bca4185d047",
"version": "2.8.8",
"port-version": 2
},
{
"git-tree": "5cc9de78d44947f2029569202beba4b5af8ea2cc",
"version": "2.8.8",