Skip to contentSkip to conversation

package/sdl12-compat: new package

PATCH New Keke Ming 1 participant 1 message Feb 12

lore
Share & tools
lore

Keke Ming

author
#0 lore raw

PATCH 1/1 package/sdl12-compat: new package

sdl12-compat is a SDL1.2 compatibility layer that uses SDL2 under the hood. This is particularly useful for running older SDL1.2 applications on modern systems or hardware where SDL2 has better support.

The reason I recommended this software to Buildroot is that I was unable to initialize correctly when I tried to run several SDL1.2 projects on embedded devices, but SDL2 could initialize them. After using this project, the initialization problem was solved.

https://github.com/libsdl-org/SDL-1.2/issues/898

I have added the necessary files:
- Config.in
- sdl12-compat.mk
- sdl12-compat.hash

https://github.com/libsdl-org/sdl12-compat

---
 package/Config.in                      |  1 +
 package/sdl12-compat/Config.in         | 11 +++++++++++
 package/sdl12-compat/sdl12-compat.hash |  3 +++
 package/sdl12-compat/sdl12-compat.mk   | 14 ++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 package/sdl12-compat/Config.in
 create mode 100644 package/sdl12-compat/sdl12-compat.hash
 create mode 100644 package/sdl12-compat/sdl12-compat.mk
package/Config.in +1 -0
index 6284bea7f4..9de93dcb69 100644
@@ -364,6 +364,7 @@ comment "Graphic libraries"
 	source "package/sdl2_mixer/Config.in"
 	source "package/sdl2_net/Config.in"
 	source "package/sdl2_ttf/Config.in"
+	source "package/sdl12-compat/Config.in"
 	source "package/spirv-headers/Config.in"
 	source "package/tk/Config.in"
 	source "package/vulkan-headers/Config.in"
package/sdl12-compat/Config.in new file +11 -0
new file mode 100644
index 0000000000..608adf153c
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_SDL12_COMPAT
+	bool "sdl12-compat"
+	depends on BR2_PACKAGE_SDL2
+	depends on !BR2_PACKAGE_SDL
+	help
+	  An SDL-1.2 compatibility layer that uses SDL 2.0.
+
+	  https://github.com/libsdl-org/sdl12-compat
+
+comment "sdl12-compat needs sdl2 and conflicts with legacy sdl"
+	depends on !BR2_PACKAGE_SDL2 || BR2_PACKAGE_SDL
package/sdl12-compat/sdl12-compat.hash new file +3 -0
new file mode 100644
index 0000000000..8c095a6202
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  2588686c0972e1785829dc3bf436b543c317e6afa30a9b91d48013dd9c110e81  sdl12-compat-1.2.74.tar.gz
+sha256  8bb90ab9c7b3b4aaa2f59e6e629ecdb55b7d8f4a0159e74d8f106237e094eaab  LICENSE.txt
package/sdl12-compat/sdl12-compat.mk new file +14 -0
new file mode 100644
index 0000000000..c8fcbacb65
@@ -0,0 +1,14 @@
+################################################################################
+#
+# sdl12-compat
+#
+################################################################################
+
+SDL12_COMPAT_VERSION = 1.2.74
+SDL12_COMPAT_SITE = $(call github,libsdl-org,sdl12-compat,release-$(SDL12_COMPAT_VERSION))
+SDL12_COMPAT_LICENSE = Zlib
+SDL12_COMPAT_LICENSE_FILES = LICENSE.txt
+SDL12_COMPAT_INSTALL_STAGING = YES
+SDL12_COMPAT_DEPENDENCIES = sdl2
+
+$(eval $(cmake-package))
Signature · 6 lines
2.43.0

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