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 <alseycmiller@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Alsey Coleman Miller
2026-08-16 15:18:30 -04:00
committed by Thomas Petazzoni
parent 6588d61513
commit 3f89e8c192
5 changed files with 33 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ F: package/xen/
N: Alsey Coleman Miller <alseycmiller@gmail.com>
F: package/liblc3/
F: package/plutovg/
F: package/sdl3_net/
N: Alvaro G. M <alvaro.gamez@hazent.com>
F: package/dcron/

View File

@@ -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"

View File

@@ -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

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 098522fc26d4e302ef9348aee6e76e67fe504dfefd7f596236568f8330570c41 SDL3_net-3.2.0.tar.gz
sha256 1c040b8271b37e5076359f8fd54240e371114112924d2df81ef87c7d6a1dfdfd LICENSE.txt

View File

@@ -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))