mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:27:35 +00:00
Ports: Add libenet
Libenet is a UDP networking library that is used by Love2D, a game framework I would like to port.
This commit is contained in:
parent
719a00df3a
commit
d94a374001
6 changed files with 109 additions and 0 deletions
24
Ports/libenet/patches/0001-Make-library-shared.patch
Normal file
24
Ports/libenet/patches/0001-Make-library-shared.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
From f3a57c5b7971c073f2405d97bf48a93c9b12ba44 Mon Sep 17 00:00:00 2001
|
||||
From: surrealegg <surrealegg@pm.me>
|
||||
Date: Thu, 21 Sep 2023 16:35:39 +0400
|
||||
Subject: [PATCH 1/3] 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
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -84,7 +84,7 @@ set(SOURCE_FILES
|
||||
source_group(include FILES ${INCLUDE_FILES})
|
||||
source_group(source FILES ${SOURCE_FILES})
|
||||
|
||||
-add_library(enet STATIC
|
||||
+add_library(enet SHARED
|
||||
${INCLUDE_FILES}
|
||||
${SOURCE_FILES}
|
||||
)
|
||||
--
|
||||
2.41.0
|
30
Ports/libenet/patches/0002-Add-missing-install-options.patch
Normal file
30
Ports/libenet/patches/0002-Add-missing-install-options.patch
Normal file
|
@ -0,0 +1,30 @@
|
|||
From 16b8f344dd913ea6ac9ff88fbc31f8e4a93f06d0 Mon Sep 17 00:00:00 2001
|
||||
From: surrealegg <surrealegg@pm.me>
|
||||
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
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
From 67f1ac3f2f1d2c24035bf8b2cd0a279158b94d2e Mon Sep 17 00:00:00 2001
|
||||
From: surrealegg <surrealegg@pm.me>
|
||||
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
|
||||
|
13
Ports/libenet/patches/ReadMe.md
Normal file
13
Ports/libenet/patches/ReadMe.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Patches for libenet on SerenityOS
|
||||
|
||||
## `0001-Make-library-shared.patch`
|
||||
|
||||
Makes Library Shared
|
||||
|
||||
## `0002-Add-missing-install-options.patch`
|
||||
|
||||
Add missing install options
|
||||
|
||||
## `0003-Fix-cmake-deprecation-warning.patch`
|
||||
|
||||
Fix CMake deprecation warning
|
Loading…
Add table
Add a link
Reference in a new issue