Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alsey Coleman Miller <alseycmiller@gmail.com>
To: buildroot@buildroot.org
Cc: Michael Fischer <mf@go-sys.de>,
	Alsey Coleman Miller <alseycmiller@gmail.com>
Subject: [Buildroot] [PATCH 8/8] package/sdl3_net: new package
Date: Sun, 16 Aug 2026 15:18:30 -0400	[thread overview]
Message-ID: <20260816191830.533747-9-alseycmiller@gmail.com> (raw)
In-Reply-To: <20260816191830.533747-1-alseycmiller@gmail.com>

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>
---
 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   | 21 +++++++++++++++++++++
 5 files changed, 35 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 964fe9a597..3c8f7c5198 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -173,6 +173,7 @@ F:	package/liblc3/
 F:	package/plutosvg/
 F:	package/plutovg/
 F:	package/sdl3_mixer/
+F:	package/sdl3_net/
 
 N:	Alvaro G. M <alvaro.gamez@hazent.com>
 F:	package/dcron/
diff --git a/package/Config.in b/package/Config.in
index 853d3bd07d..eeb10fd569 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -370,6 +370,7 @@ comment "Graphic libraries"
 	source "package/sdl3_gfx/Config.in"
 	source "package/sdl3_image/Config.in"
 	source "package/sdl3_mixer/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..da7deee6f6
--- /dev/null
+++ b/package/sdl3_net/sdl3_net.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# 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_CPE_ID_VENDOR = libsdl
+SDL3_NET_CPE_ID_PRODUCT = sdl_net
+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))
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-08-16 19:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-16 19:18 [Buildroot] [PATCH 0/8] package/sdl3*: complete the SDL3 family Alsey Coleman Miller
2026-08-16 19:18 ` [Buildroot] [PATCH 1/8] package/plutovg: new package Alsey Coleman Miller
2026-08-16 19:18 ` [Buildroot] [PATCH 2/8] package/plutosvg: " Alsey Coleman Miller
2026-08-16 19:18 ` [Buildroot] [PATCH 3/8] package/sdl3: add ALSA and test program options, follow dbus Alsey Coleman Miller
2026-08-16 19:18 ` [Buildroot] [PATCH 4/8] package/sdl3_image: bump to version 3.4.4 Alsey Coleman Miller
2026-08-16 19:18 ` [Buildroot] [PATCH 5/8] package/sdl3_ttf: do not build the samples or install man pages Alsey Coleman Miller
2026-08-16 19:18 ` [Buildroot] [PATCH 6/8] package/sdl3_ttf: build plutosvg support when available Alsey Coleman Miller
2026-08-16 19:18 ` [Buildroot] [PATCH 7/8] package/sdl3_mixer: new package Alsey Coleman Miller
2026-08-16 19:18 ` Alsey Coleman Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260816191830.533747-9-alseycmiller@gmail.com \
    --to=alseycmiller@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=mf@go-sys.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox