Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2026 22:29:41 +0000
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d8c41c7f0541 - main - net/sdl3_net: add port: Simple, cross-platform wrapper over TCP/IP sockets
Message-ID:  <6a177055.33488.fd71157@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d8c41c7f0541f85f3b6379b667744b06b62f2b39

commit d8c41c7f0541f85f3b6379b667744b06b62f2b39
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2026-05-19 11:43:27 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2026-05-27 22:28:49 +0000

    net/sdl3_net: add port: Simple, cross-platform wrapper over TCP/IP sockets
    
    This is a portable network library for use with SDL. It's goal is
    to simplify the use of the usual socket interfaces and use SDL to
    handle common portable functionality such as threading and reporting
    errors.
---
 net/Makefile           |  1 +
 net/sdl3_net/Makefile  | 21 +++++++++++++++++++++
 net/sdl3_net/distinfo  |  3 +++
 net/sdl3_net/pkg-descr |  4 ++++
 net/sdl3_net/pkg-plist |  9 +++++++++
 5 files changed, 38 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 7019837857f7..31cefe2746a4 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1517,6 +1517,7 @@
     SUBDIR += scr_ipfm
     SUBDIR += sctplib
     SUBDIR += sdl2_net
+    SUBDIR += sdl3_net
     SUBDIR += sdl_net
     SUBDIR += seaweedfs
     SUBDIR += seda
diff --git a/net/sdl3_net/Makefile b/net/sdl3_net/Makefile
new file mode 100644
index 000000000000..7c608fd32ec0
--- /dev/null
+++ b/net/sdl3_net/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	sdl3_net
+DISTVERSIONPREFIX=	prerelease-
+DISTVERSION=	3.1.0
+CATEGORIES=	net
+
+MAINTAINER=	amdmi3@FreeBSD.org
+COMMENT=	Simple, cross-platform wrapper over TCP/IP sockets
+WWW=		https://github.com/libsdl-org/SDL_net
+
+LICENSE=	ZLIB
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		cmake sdl
+USE_GITHUB=	yes
+GH_ACCOUNT=	libsdl-org
+GH_PROJECT=	SDL_net
+USE_SDL=	sdl3
+USE_LDCONFIG=	yes
+CMAKE_OFF=	SDLNET_SAMPLES
+
+.include <bsd.port.mk>
diff --git a/net/sdl3_net/distinfo b/net/sdl3_net/distinfo
new file mode 100644
index 000000000000..d9c1bb14dcf2
--- /dev/null
+++ b/net/sdl3_net/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1779155762
+SHA256 (libsdl-org-SDL_net-prerelease-3.1.0_GH0.tar.gz) = a1e651914355085f496bc9a3e7f92aabdf08ed1dd8cd523cb1a046b090d15933
+SIZE (libsdl-org-SDL_net-prerelease-3.1.0_GH0.tar.gz) = 1520902
diff --git a/net/sdl3_net/pkg-descr b/net/sdl3_net/pkg-descr
new file mode 100644
index 000000000000..4d0e5e029848
--- /dev/null
+++ b/net/sdl3_net/pkg-descr
@@ -0,0 +1,4 @@
+This is a portable network library for use with SDL. It's goal is
+to simplify the use of the usual socket interfaces and use SDL to
+handle common portable functionality such as threading and reporting
+errors.
diff --git a/net/sdl3_net/pkg-plist b/net/sdl3_net/pkg-plist
new file mode 100644
index 000000000000..22170637c020
--- /dev/null
+++ b/net/sdl3_net/pkg-plist
@@ -0,0 +1,9 @@
+include/SDL3_net/SDL_net.h
+lib/cmake/SDL3_net/SDL3_net-shared-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/SDL3_net/SDL3_net-shared-targets.cmake
+lib/cmake/SDL3_net/SDL3_netConfig.cmake
+lib/cmake/SDL3_net/SDL3_netConfigVersion.cmake
+lib/libSDL3_net.so
+lib/libSDL3_net.so.0
+lib/libSDL3_net.so.0.1.0
+libdata/pkgconfig/sdl3-net.pc


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a177055.33488.fd71157>