Skip to contentSkip to conversation

SDL3_gfx: Add new package SDL3_gfx

PATCH New Michael Fischer 1 participant 1 message Feb 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SDL3_gfx: Add new package SDL3_gfx

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.

---
 package/Config.in              |  1 +
 package/sdl3_gfx/Config.in     |  8 ++++++++
 package/sdl3_gfx/sdl3_gfx.hash |  4 ++++
 package/sdl3_gfx/sdl3_gfx.mk   | 24 ++++++++++++++++++++++++
 4 files changed, 37 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
package/Config.in +1 -0
index a2615edf0e..f7c7d3dbf7 100644
@@ -365,6 +365,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/vulkan-headers/Config.in"
package/sdl3_gfx/Config.in new file +8 -0
new file mode 100644
index 0000000000..863aaf751d
@@ -0,0 +1,8 @@
+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.
package/sdl3_gfx/sdl3_gfx.hash new file +4 -0
new file mode 100644
index 0000000000..10ed9147fb
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  b92e6002825f92b19e10abe8a974f0c38839f6bfb9b065f2d8dd14c51bf12a77  sdl3_gfx-1.0.1.tar.gz
+sha256  72bf1f2078e66213b5a563fbb1c1905c96d8e62d922aa08b79088ec7a7e237ca  COPYING
+sha256  2a2d2a31bb2d83bf698e947515a8a070b7004960a55a204c5b3438439289b53f  SDL3_framerate.h
package/sdl3_gfx/sdl3_gfx.mk new file +24 -0
new file mode 100644
index 0000000000..57b2532f10
@@ -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 = LICENSE
+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