From: Michael Fischer <mf@go-sys.de>
To: <buildroot@buildroot.org>
Cc: Michael Fischer <mf@go-sys.de>
Subject: [Buildroot] [PATCH 2/4] package/sdl3_gfx: new package
Date: Tue, 14 Jul 2026 13:52:03 +0200 [thread overview]
Message-ID: <20260714115205.29838-2-mf@go-sys.de> (raw)
In-Reply-To: <20260714115205.29838-1-mf@go-sys.de>
SDL3_gfx provides basic antialiased drawing routines such as lines,
circles or polygons, an interpolating rotozoomer for SDL surfaces,
framerate control and MMX image filters, as an extension to SDL3.
https://github.com/sabdul-khabir/SDL3_gfx
Signed-off-by: Michael Fischer <mf@go-sys.de>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/sdl3_gfx/Config.in | 10 ++++++++++
package/sdl3_gfx/sdl3_gfx.hash | 3 +++
package/sdl3_gfx/sdl3_gfx.mk | 24 ++++++++++++++++++++++++
5 files changed, 39 insertions(+)
create mode 100644 package/sdl3_gfx/Config.in
create mode 100644 package/sdl3_gfx/sdl3_gfx.hash
create mode 100644 package/sdl3_gfx/sdl3_gfx.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 9f44548ea0..f3b29acf42 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2407,6 +2407,7 @@ N: Michael Fischer <mf@go-sys.de>
F: package/gnuplot/
F: package/sdl2/
F: package/sdl3/
+F: package/sdl3_gfx/
N: Michael Nosthoff <buildroot@heine.tech>
F: package/boost/
diff --git a/package/Config.in b/package/Config.in
index 91903361c5..3cb843a29d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -364,6 +364,7 @@ comment "Graphic libraries"
source "package/sdl2_net/Config.in"
source "package/sdl2_ttf/Config.in"
source "package/sdl3/Config.in"
+ source "package/sdl3_gfx/Config.in"
source "package/spirv-headers/Config.in"
source "package/tk/Config.in"
source "package/virglrenderer/Config.in"
diff --git a/package/sdl3_gfx/Config.in b/package/sdl3_gfx/Config.in
new file mode 100644
index 0000000000..d7f5a9d7ee
--- /dev/null
+++ b/package/sdl3_gfx/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_SDL3_GFX
+ bool "sdl3_gfx"
+ depends on BR2_PACKAGE_SDL3
+ help
+ The SDL3_gfx library is an extension to the SDL3 library
+ which provides basic antialiased drawing routines such as
+ lines, circles or polygons, an interpolating rotozoomer for
+ SDL surfaces, framerate control and MMX image filters.
+
+ https://github.com/sabdul-khabir/SDL3_gfx
diff --git a/package/sdl3_gfx/sdl3_gfx.hash b/package/sdl3_gfx/sdl3_gfx.hash
new file mode 100644
index 0000000000..2c3b091c1d
--- /dev/null
+++ b/package/sdl3_gfx/sdl3_gfx.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 b92e6002825f92b19e10abe8a974f0c38839f6bfb9b065f2d8dd14c51bf12a77 sdl3_gfx-1.0.1.tar.gz
+sha256 72bf1f2078e66213b5a563fbb1c1905c96d8e62d922aa08b79088ec7a7e237ca COPYING
diff --git a/package/sdl3_gfx/sdl3_gfx.mk b/package/sdl3_gfx/sdl3_gfx.mk
new file mode 100644
index 0000000000..fb747c0e95
--- /dev/null
+++ b/package/sdl3_gfx/sdl3_gfx.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# sdl3_gfx
+#
+################################################################################
+
+SDL3_GFX_VERSION = 1.0.1
+SDL3_GFX_SITE = $(call github,sabdul-khabir,SDL3_gfx,v$(SDL3_GFX_VERSION))
+SDL3_GFX_LICENSE = Zlib
+SDL3_GFX_LICENSE_FILES = COPYING
+SDL3_GFX_INSTALL_STAGING = YES
+SDL3_GFX_DEPENDENCIES = sdl3 host-pkgconf
+
+SDL3_GFX_CONF_OPTS = \
+ -DSDL3_GFX_TESTS=OFF \
+ -DSDL3_GFX_INSTALL=ON
+
+ifeq ($(BR2_i386)$(BR2_X86_CPU_HAS_MMX),yy)
+SDL3_GFX_CONF_OPTS += -DSDL3_GFX_MMX=ON
+else
+SDL3_GFX_CONF_OPTS += -DSDL3_GFX_MMX=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 12:17 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 ` Michael Fischer [this message]
2026-07-14 11:52 ` [Buildroot] [PATCH 3/4] package/sdl3_image: " Michael Fischer
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-2-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