Ports: Update libenet to 1.3.18

The dropped patches were upstreamed by other people some time ago:

- https://github.com/lsalzman/enet/commit/9fda19e54b01919b07d70c944c42576c4f1ef0b9
- https://github.com/lsalzman/enet/commit/92ef50a080ed5ae1e9dcce2715f5f0623636e927
This commit is contained in:
Linus Groh authored and Nico Weber committed 2026-09-01 06:40:06 -04:00
1 parent 856cd2ea67
commit c8379f10a6
6 files changed
+7 -67

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`libarchive`](libarchive/) | libarchive | 3.7.7 | https://libarchive.org/ |
| [`libassuan`](libassuan/) | libassuan | 2.5.7 | https://gnupg.org/software/libassuan/index.html |
| [`libatomic_ops`](libatomic_ops/) | libatomic_ops | 7.10.0 | https://github.com/bdwgc/libatomic_ops/ |
| [`libenet`](libenet/) | libenet | 1.3.17 | http://sauerbraten.org/enet/ |
| [`libenet`](libenet/) | libenet | 1.3.18 | http://sauerbraten.org/enet/ |
| [`libexpat`](libexpat/) | Expat | 2.6.4 | https://libexpat.github.io/ |
| [`libffi`](libffi/) | libffi | 3.4.5 | https://www.sourceware.org/libffi/ |
| [`libfftw3`](libfftw3/) | Fastest Fourier Transform in the West (double precision) | 3.3.10 | https://www.fftw.org/ |
+2 -2
View File
@@ -1,9 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='libenet'
version='1.3.17'
version='1.3.18'
useconfigure='true'
files=(
"http://sauerbraten.org/enet/download/enet-${version}.tar.gz#a38f0f194555d558533b8b15c0c478e946310022d0ec7b34334e19e4574dcedc"
"http://sauerbraten.org/enet/download/enet-${version}.tar.gz#2a8a0c5360d68bb4fcd11f2e4c47c69976e8d2c85b109dd7d60b1181a4f85d36"
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
@@ -1,14 +1,14 @@
From f3a57c5b7971c073f2405d97bf48a93c9b12ba44 Mon Sep 17 00:00:00 2001
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: surrealegg <[email protected]>
Date: Thu, 21 Sep 2023 16:35:39 +0400
Subject: [PATCH 1/3] Make library shared
Subject: [PATCH] Make library shared
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3d4aa8..091cb5a 100644
index c6459b62d356e10f2987542e136bb97bcf8de61f..8fe22cb5c95d4499e71697ba4ad397f51a4c84ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,7 +84,7 @@ set(SOURCE_FILES
@@ -20,5 +20,3 @@ index d3d4aa8..091cb5a 100644
${INCLUDE_FILES}
${SOURCE_FILES}
)
--
2.41.0
@@ -1,30 +0,0 @@
From 16b8f344dd913ea6ac9ff88fbc31f8e4a93f06d0 Mon Sep 17 00:00:00 2001
From: surrealegg <[email protected]>
Date: Thu, 21 Sep 2023 16:46:57 +0400
Subject: [PATCH 2/3] Add missing install options
---
CMakeLists.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 091cb5a..532e628 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,3 +92,13 @@ add_library(enet SHARED
if (MINGW)
target_link_libraries(enet winmm ws2_32)
endif()
+
+install(
+ TARGETS enet
+ LIBRARY DESTINATION lib
+)
+
+install(
+ DIRECTORY include/
+ DESTINATION include
+)
--
2.41.0
@@ -1,22 +0,0 @@
From 67f1ac3f2f1d2c24035bf8b2cd0a279158b94d2e Mon Sep 17 00:00:00 2001
From: surrealegg <[email protected]>
Date: Thu, 21 Sep 2023 22:25:02 +0400
Subject: [PATCH 3/3] Fix cmake deprecation warning
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 532e628..6281d7e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.8.12...3.20)
project(enet)
--
2.41.0
+1 -7
View File
@@ -2,12 +2,6 @@
## `0001-Make-library-shared.patch`
Makes Library Shared
Make library shared
## `0002-Add-missing-install-options.patch`
Add missing install options
## `0003-Fix-cmake-deprecation-warning.patch`
Fix CMake deprecation warning