From: Michael Fischer <mf@go-sys.de>
To: <buildroot@buildroot.org>
Cc: Michael Fischer <mf@go-sys.de>
Subject: [Buildroot] [PATCH 3/4] package/sdl3_image: new package
Date: Tue, 14 Jul 2026 13:52:04 +0200 [thread overview]
Message-ID: <20260714115205.29838-3-mf@go-sys.de> (raw)
In-Reply-To: <20260714115205.29838-1-mf@go-sys.de>
SDL3_image is an image file loading library for SDL3. For now only
optional PNG support (via libpng) is wired up.
https://github.com/libsdl-org/SDL_image
Signed-off-by: Michael Fischer <mf@go-sys.de>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/sdl3_image/Config.in | 9 +++++++++
package/sdl3_image/sdl3_image.hash | 3 +++
package/sdl3_image/sdl3_image.mk | 22 ++++++++++++++++++++++
5 files changed, 36 insertions(+)
create mode 100644 package/sdl3_image/Config.in
create mode 100644 package/sdl3_image/sdl3_image.hash
create mode 100644 package/sdl3_image/sdl3_image.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index f3b29acf42..ae5ba01850 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2408,6 +2408,7 @@ F: package/gnuplot/
F: package/sdl2/
F: package/sdl3/
F: package/sdl3_gfx/
+F: package/sdl3_image/
N: Michael Nosthoff <buildroot@heine.tech>
F: package/boost/
diff --git a/package/Config.in b/package/Config.in
index 3cb843a29d..7889f00845 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -365,6 +365,7 @@ comment "Graphic libraries"
source "package/sdl2_ttf/Config.in"
source "package/sdl3/Config.in"
source "package/sdl3_gfx/Config.in"
+ source "package/sdl3_image/Config.in"
source "package/spirv-headers/Config.in"
source "package/tk/Config.in"
source "package/virglrenderer/Config.in"
diff --git a/package/sdl3_image/Config.in b/package/sdl3_image/Config.in
new file mode 100644
index 0000000000..9b9c4f0d74
--- /dev/null
+++ b/package/sdl3_image/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SDL3_IMAGE
+ bool "sdl3_image"
+ depends on BR2_PACKAGE_SDL3
+ help
+ SDL3_image is an image file loading library. It loads images
+ as SDL surfaces, and supports the following formats: BMP,
+ GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, XCF, XPM, XV.
+
+ http://www.libsdl.org/projects/SDL_image/
diff --git a/package/sdl3_image/sdl3_image.hash b/package/sdl3_image/sdl3_image.hash
new file mode 100644
index 0000000000..83f5e7eaf1
--- /dev/null
+++ b/package/sdl3_image/sdl3_image.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 d5685f220d5ae99439d710d808d8c478c6ccfaac539876929239b875a6723792 SDL3_image-3.1.1.tar.gz
+sha256 7826eca0a0f7e591f38dd844e207a200aac81a59b20d8a30c3af8c6282af13e6 LICENSE.txt
diff --git a/package/sdl3_image/sdl3_image.mk b/package/sdl3_image/sdl3_image.mk
new file mode 100644
index 0000000000..fadb870b6f
--- /dev/null
+++ b/package/sdl3_image/sdl3_image.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# sdl3_image
+#
+################################################################################
+
+SDL3_IMAGE_VERSION = 3.1.1
+SDL3_IMAGE_SITE = https://www.libsdl.org/projects/SDL_image/release
+SDL3_IMAGE_SOURCE = SDL3_image-$(SDL3_IMAGE_VERSION).tar.gz
+SDL3_IMAGE_LICENSE = Zlib
+SDL3_IMAGE_LICENSE_FILES = LICENSE.txt
+SDL3_IMAGE_INSTALL_STAGING = YES
+SDL3_IMAGE_DEPENDENCIES = sdl3
+
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+SDL3_IMAGE_DEPENDENCIES += libpng
+SDL3_IMAGE_CONF_OPTS += -DSDLIMAGE_PNG=ON
+else
+SDL3_IMAGE_CONF_OPTS += -DSDLIMAGE_PNG=OFF
+endif
+
+$(eval $(cmake-package))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-07-14 11:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 11:52 [Buildroot] [PATCH 1/4] package/sdl3: new package Michael Fischer
2026-07-14 11:52 ` [Buildroot] [PATCH 2/4] package/sdl3_gfx: " Michael Fischer
2026-07-14 11:52 ` Michael Fischer [this message]
2026-07-14 11:52 ` [Buildroot] [PATCH 4/4] package/sdl3_ttf: " Michael Fischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260714115205.29838-3-mf@go-sys.de \
--to=mf@go-sys.de \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox