From 3f89e8c1926fafb30163df76985d4711c8985f76 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Sun, 16 Aug 2026 15:18:30 -0400 Subject: [PATCH] package/sdl3_net: new package SDL3_net is the small cross-platform networking library for SDL3, providing TCP and UDP sockets and hostname resolution. Samples are not built and the man pages are not installed: the samples are demo programs that are never installed, and Buildroot removes /usr/share/man from the target anyway. Built with CMake, like sdl3 itself, rather than with the autotools setup the SDL2 counterpart uses. Signed-off-by: Alsey Coleman Miller Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/sdl3_net/Config.in | 9 +++++++++ package/sdl3_net/sdl3_net.hash | 3 +++ package/sdl3_net/sdl3_net.mk | 19 +++++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 package/sdl3_net/Config.in create mode 100644 package/sdl3_net/sdl3_net.hash create mode 100644 package/sdl3_net/sdl3_net.mk diff --git a/DEVELOPERS b/DEVELOPERS index f46d09db5a..95499bbf0c 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -171,6 +171,7 @@ F: package/xen/ N: Alsey Coleman Miller F: package/liblc3/ F: package/plutovg/ +F: package/sdl3_net/ N: Alvaro G. M F: package/dcron/ diff --git a/package/Config.in b/package/Config.in index d041291bcb..1741e74ac5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -370,6 +370,7 @@ comment "Graphic libraries" source "package/sdl3/Config.in" source "package/sdl3_gfx/Config.in" source "package/sdl3_image/Config.in" + source "package/sdl3_net/Config.in" source "package/sdl3_ttf/Config.in" source "package/spirv-headers/Config.in" source "package/tk/Config.in" diff --git a/package/sdl3_net/Config.in b/package/sdl3_net/Config.in new file mode 100644 index 0000000000..8375e5e0b6 --- /dev/null +++ b/package/sdl3_net/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_SDL3_NET + bool "sdl3_net" + depends on BR2_PACKAGE_SDL3 + help + SDL3_net is a small cross-platform networking library for + SDL3, providing TCP and UDP sockets and hostname + resolution. + + https://github.com/libsdl-org/SDL_net diff --git a/package/sdl3_net/sdl3_net.hash b/package/sdl3_net/sdl3_net.hash new file mode 100644 index 0000000000..af871c8e99 --- /dev/null +++ b/package/sdl3_net/sdl3_net.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 098522fc26d4e302ef9348aee6e76e67fe504dfefd7f596236568f8330570c41 SDL3_net-3.2.0.tar.gz +sha256 1c040b8271b37e5076359f8fd54240e371114112924d2df81ef87c7d6a1dfdfd LICENSE.txt diff --git a/package/sdl3_net/sdl3_net.mk b/package/sdl3_net/sdl3_net.mk new file mode 100644 index 0000000000..51ae016c67 --- /dev/null +++ b/package/sdl3_net/sdl3_net.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# sdl3_net +# +################################################################################ + +SDL3_NET_VERSION = 3.2.0 +SDL3_NET_SOURCE = SDL3_net-$(SDL3_NET_VERSION).tar.gz +SDL3_NET_SITE = https://www.libsdl.org/projects/SDL_net/release +SDL3_NET_LICENSE = Zlib +SDL3_NET_LICENSE_FILES = LICENSE.txt +SDL3_NET_INSTALL_STAGING = YES +SDL3_NET_DEPENDENCIES = sdl3 host-pkgconf + +SDL3_NET_CONF_OPTS = \ + -DSDLNET_SAMPLES=OFF \ + -DSDLNET_INSTALL_MAN=OFF + +$(eval $(cmake-package))