aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/sdl2-image/CMakeLists.txt3
-rw-r--r--ports/sdl2-image/CONTROL2
-rw-r--r--ports/sdl2-image/correct-sdl-headers-dir.patch25
-rw-r--r--ports/sdl2-image/portfile.cmake14
4 files changed, 8 insertions, 36 deletions
diff --git a/ports/sdl2-image/CMakeLists.txt b/ports/sdl2-image/CMakeLists.txt
index d04b3f7b6..e950e16df 100644
--- a/ports/sdl2-image/CMakeLists.txt
+++ b/ports/sdl2-image/CMakeLists.txt
@@ -5,7 +5,7 @@ project(SDL2_image C)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
# enable all file formats which are supported natively
-set(SUPPORTED_FORMATS BMP GIF LBM PCX PNM TGA XPM XCF XV)
+set(SUPPORTED_FORMATS BMP GIF LBM PCX PNM TGA XPM XCF XV SVG)
# enable all file formats which are supported through external dependencies
# first try to load them statically (lib file in vcpkg installation)
@@ -34,6 +34,7 @@ add_library(SDL2_image
IMG_pcx.c
IMG_png.c
IMG_pnm.c
+ IMG_svg.c
IMG_tga.c
IMG_tif.c
IMG_webp.c
diff --git a/ports/sdl2-image/CONTROL b/ports/sdl2-image/CONTROL
index aff048d9a..21e22f872 100644
--- a/ports/sdl2-image/CONTROL
+++ b/ports/sdl2-image/CONTROL
@@ -1,5 +1,5 @@
Source: sdl2-image
-Version: 2.0.1-3
+Version: 2.0.2
Build-Depends: sdl2, libpng, libjpeg-turbo, tiff, libwebp
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
diff --git a/ports/sdl2-image/correct-sdl-headers-dir.patch b/ports/sdl2-image/correct-sdl-headers-dir.patch
deleted file mode 100644
index 4addc155d..000000000
--- a/ports/sdl2-image/correct-sdl-headers-dir.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff --git "a/SDL_image.h" "b/SDL_image.h"
-index f654483..1bd4f62 100644
---- "a/SDL_image.h"
-+++ "b/SDL_image.h"
-@@ -24,9 +24,9 @@
- #ifndef _SDL_IMAGE_H
- #define _SDL_IMAGE_H
-
--#include "SDL.h"
--#include "SDL_version.h"
--#include "begin_code.h"
-+#include <SDL2/SDL.h>
-+#include <SDL2/SDL_version.h>
-+#include <SDL2/begin_code.h>
-
- /* Set up for C function definitions, even when using C++ */
- #ifdef __cplusplus
-@@ -140,6 +140,6 @@ extern DECLSPEC int SDLCALL IMG_SavePNG_RW(SDL_Surface *surface, SDL_RWops *dst,
- #ifdef __cplusplus
- }
- #endif
--#include "close_code.h"
-+#include <SDL2/close_code.h>
-
- #endif /* _SDL_IMAGE_H */
diff --git a/ports/sdl2-image/portfile.cmake b/ports/sdl2-image/portfile.cmake
index ad3f1a2d5..10567a131 100644
--- a/ports/sdl2-image/portfile.cmake
+++ b/ports/sdl2-image/portfile.cmake
@@ -7,19 +7,15 @@
#
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2_image-2.0.1)
+set(SDL2_IMAGE_VERSION "2.0.2")
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2_image-${SDL2_IMAGE_VERSION})
vcpkg_download_distfile(ARCHIVE
- URLS "https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1.zip"
- FILENAME "SDL2_image-2.0.1.zip"
- SHA512 37d12f4fae71c586bec73262bddb9207ab2f9a2ca6001d2cbfde646e268a950ba5cd4cff53d75e2da8959ae6da6e9cadc6eca88fa7bd9aa2758395d64c84a307
+ URLS "https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${SDL2_IMAGE_VERSION}.zip"
+ FILENAME "SDL2_image-${SDL2_IMAGE_VERSION}.zip"
+ SHA512 bf143bdbd3cb7cfad61b8dcc35950584304deac802bad6c0c8144e914401a5ddef01f674d2dc1214371d0f371f76e87a45873e2655947e8e1da83fb44d8285f4
)
vcpkg_extract_source_archive(${ARCHIVE})
-vcpkg_apply_patches(
- SOURCE_PATH ${SOURCE_PATH}
- PATCHES
- ${CMAKE_CURRENT_LIST_DIR}/correct-sdl-headers-dir.patch)
-
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/FindWEBP.cmake DESTINATION ${SOURCE_PATH}/cmake)