Skip to contentSkip to conversation

package/sdl3: new package

PATCH In review Michael Fischer 2 participants 5 messages Jul 14 – Aug 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 package/sdl3: new package

Simple DirectMedia Layer 3 is a library that allows programs portable low level access to a video framebuffer, audio output, mouse, and keyboard. It is not compatible with SDL2.

https://www.libsdl.org/
https://wiki.libsdl.org/SDL3/README-migration

---
 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/sdl3/Config.in | 79 +++++++++++++++++++++++++++++++++++
 package/sdl3/sdl3.hash |  4 ++
 package/sdl3/sdl3.mk   | 95 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 180 insertions(+)
 create mode 100644 package/sdl3/Config.in
 create mode 100644 package/sdl3/sdl3.hash
 create mode 100644 package/sdl3/sdl3.mk
DEVELOPERS +1 -0
index fdfab8b489..9f44548ea0 100644
@@ -2406,6 +2406,7 @@ F:	configs/arcturus_ucls1012a_defconfig
 N:	Michael Fischer <[email protected]>
 F:	package/gnuplot/
 F:	package/sdl2/
+F:	package/sdl3/
 
 N:	Michael Nosthoff <[email protected]>
 F:	package/boost/
package/Config.in +1 -0
index b6f23308af..91903361c5 100644
@@ -363,6 +363,7 @@ comment "Graphic libraries"
 	source "package/sdl2_mixer/Config.in"
 	source "package/sdl2_net/Config.in"
 	source "package/sdl2_ttf/Config.in"
+	source "package/sdl3/Config.in"
 	source "package/spirv-headers/Config.in"
 	source "package/tk/Config.in"
 	source "package/virglrenderer/Config.in"
package/sdl3/Config.in new file +79 -0

79 lines not on this page · raw message

package/sdl3/sdl3.hash new file +4 -0
new file mode 100644
index 0000000000..27197ae594
@@ -0,0 +1,4 @@
+# Locally calculated after checking http://www.libsdl.org/release/SDL3-3.4.12.tar.gz.sig
+sha256  f07b958a9ac5020fb7a44cadb957f658b2149c3c8abb4f63145fac9303249db7  SDL3-3.4.12.tar.gz
+# Locally calculated
+sha256  1c040b8271b37e5076359f8fd54240e371114112924d2df81ef87c7d6a1dfdfd  LICENSE.txt
package/sdl3/sdl3.mk new file +95 -0

95 lines not on this page · raw message

Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/4 package/sdl3_gfx: new package

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

---
 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
DEVELOPERS +1 -0
index 9f44548ea0..f3b29acf42 100644
@@ -2407,6 +2407,7 @@ N:	Michael Fischer <[email protected]>
 F:	package/gnuplot/
 F:	package/sdl2/
 F:	package/sdl3/
+F:	package/sdl3_gfx/
 
 N:	Michael Nosthoff <[email protected]>
 F:	package/boost/
package/Config.in +1 -0
index 91903361c5..3cb843a29d 100644
@@ -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"
package/sdl3_gfx/Config.in new file +10 -0
new file mode 100644
index 0000000000..d7f5a9d7ee
@@ -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
package/sdl3_gfx/sdl3_gfx.hash new file +3 -0
new file mode 100644
index 0000000000..2c3b091c1d
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  b92e6002825f92b19e10abe8a974f0c38839f6bfb9b065f2d8dd14c51bf12a77  sdl3_gfx-1.0.1.tar.gz
+sha256  72bf1f2078e66213b5a563fbb1c1905c96d8e62d922aa08b79088ec7a7e237ca  COPYING
package/sdl3_gfx/sdl3_gfx.mk new file +24 -0
new file mode 100644
index 0000000000..fb747c0e95
@@ -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))
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 3/4 package/sdl3_image: new package

In reply to Michael Fischer

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

---
 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
DEVELOPERS +1 -0
index f3b29acf42..ae5ba01850 100644
@@ -2408,6 +2408,7 @@ F:	package/gnuplot/
 F:	package/sdl2/
 F:	package/sdl3/
 F:	package/sdl3_gfx/
+F:	package/sdl3_image/
 
 N:	Michael Nosthoff <[email protected]>
 F:	package/boost/
package/Config.in +1 -0
index 3cb843a29d..7889f00845 100644
@@ -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"
package/sdl3_image/Config.in new file +9 -0
new file mode 100644
index 0000000000..9b9c4f0d74
@@ -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/
package/sdl3_image/sdl3_image.hash new file +3 -0
new file mode 100644
index 0000000000..83f5e7eaf1
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  d5685f220d5ae99439d710d808d8c478c6ccfaac539876929239b875a6723792  SDL3_image-3.1.1.tar.gz
+sha256  7826eca0a0f7e591f38dd844e207a200aac81a59b20d8a30c3af8c6282af13e6  LICENSE.txt
package/sdl3_image/sdl3_image.mk new file +22 -0
new file mode 100644
index 0000000000..fadb870b6f
@@ -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))
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 4/4 package/sdl3_ttf: new package

In reply to Michael Fischer

SDL3_ttf is a TrueType font rendering library for SDL3, based on freetype, with optional harfbuzz support.

https://github.com/libsdl-org/SDL_ttf

---
 DEVELOPERS                     |  1 +
 package/Config.in              |  1 +
 package/sdl3_ttf/Config.in     |  9 +++++++++
 package/sdl3_ttf/sdl3_ttf.hash |  3 +++
 package/sdl3_ttf/sdl3_ttf.mk   | 25 +++++++++++++++++++++++++
 5 files changed, 39 insertions(+)
 create mode 100644 package/sdl3_ttf/Config.in
 create mode 100644 package/sdl3_ttf/sdl3_ttf.hash
 create mode 100644 package/sdl3_ttf/sdl3_ttf.mk
DEVELOPERS +1 -0
index ae5ba01850..93ff873770 100644
@@ -2409,6 +2409,7 @@ F:	package/sdl2/
 F:	package/sdl3/
 F:	package/sdl3_gfx/
 F:	package/sdl3_image/
+F:	package/sdl3_ttf/
 
 N:	Michael Nosthoff <[email protected]>
 F:	package/boost/
package/Config.in +1 -0
index 7889f00845..19b5f7c1d1 100644
@@ -366,6 +366,7 @@ comment "Graphic libraries"
 	source "package/sdl3/Config.in"
 	source "package/sdl3_gfx/Config.in"
 	source "package/sdl3_image/Config.in"
+	source "package/sdl3_ttf/Config.in"
 	source "package/spirv-headers/Config.in"
 	source "package/tk/Config.in"
 	source "package/virglrenderer/Config.in"
package/sdl3_ttf/Config.in new file +9 -0
new file mode 100644
index 0000000000..d1c6c2efd0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_SDL3_TTF
+	bool "sdl3_ttf"
+	depends on BR2_PACKAGE_SDL3
+	select BR2_PACKAGE_FREETYPE
+	help
+	  SDL3_ttf is a sample TrueType font library. It allows you to
+	  use TrueType fonts in your SDL3 applications.
+
+	  http://www.libsdl.org/projects/SDL_ttf/
package/sdl3_ttf/sdl3_ttf.hash new file +3 -0
new file mode 100644
index 0000000000..a959f011ce
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  63547d58d0185c833213885b635a2c0548201cc8f301e6587c0be1a67e1e045d  SDL3_ttf-3.2.2.tar.gz
+sha256  7826eca0a0f7e591f38dd844e207a200aac81a59b20d8a30c3af8c6282af13e6  LICENSE.txt
package/sdl3_ttf/sdl3_ttf.mk new file +25 -0
new file mode 100644
index 0000000000..12441e243e
@@ -0,0 +1,25 @@
+################################################################################
+#
+# sdl3_ttf
+#
+################################################################################
+
+SDL3_TTF_VERSION = 3.2.2
+SDL3_TTF_SOURCE = SDL3_ttf-$(SDL3_TTF_VERSION).tar.gz
+SDL3_TTF_SITE = https://www.libsdl.org/projects/SDL_ttf/release
+SDL3_TTF_LICENSE = Zlib
+SDL3_TTF_LICENSE_FILES = LICENSE.txt
+SDL3_TTF_INSTALL_STAGING = YES
+
+SDL3_TTF_DEPENDENCIES = sdl3 freetype host-pkgconf
+
+SDL3_TTF_CONF_OPTS = \
+	-DSDLTTF_VENDORED=OFF \
+	-DSDLTTF_HARFBUZZ=OFF
+
+ifeq ($(BR2_PACKAGE_HARFBUZZ),y)
+SDL3_TTF_DEPENDENCIES += harfbuzz
+SDL3_TTF_CONF_OPTS += -DSDLTTF_HARFBUZZ=ON
+endif
+
+$(eval $(cmake-package))
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Michael Fischer
Quoted 8 lines · Michael Fischer

Simple DirectMedia Layer 3 is a library that allows programs portable low level access to a video framebuffer, audio output, mouse, and keyboard. It is not compatible with SDL2.

https://www.libsdl.org/
https://wiki.libsdl.org/SDL3/README-migration

Series applied to master, thanks.

For info, I added unconditional dependencies to toolchains with wchar and threads. For the details, see:
https://gitlab.com/buildroot.org/buildroot/-/commit/2dd13e328f118363165b47258429604a5ffd3b41

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot