mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
dev-cpp/uwebsockets: async tcp, udp websockets framework
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
24
dev-cpp/uwebsockets/files/uwebsockets-Makefile.patch
Normal file
24
dev-cpp/uwebsockets/files/uwebsockets-Makefile.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index ae71753..d057e96 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,3 +1,9 @@
|
||||
+DESTDIR ?=
|
||||
+
|
||||
+prefix ?= "/usr/local"
|
||||
+exec_prefix ?= "$(prefix)"
|
||||
+includedir?= "$(exec_prefix)/include/uWebSockets"
|
||||
+
|
||||
EXAMPLE_FILES := HelloWorld EchoServer BroadcastingEchoServer
|
||||
THREADED_EXAMPLE_FILES := HelloWorldThreaded EchoServerThreaded
|
||||
override CXXFLAGS += -lpthread -Wconversion -std=c++17 -Isrc -IuSockets/src
|
||||
@@ -38,3 +44,9 @@ all:
|
||||
clean:
|
||||
rm -rf $(EXAMPLE_FILES) $(THREADED_EXAMPLE_FILES)
|
||||
rm -rf fuzzing/*.o benchmarks/*.o
|
||||
+install:
|
||||
+ # create the folder for the header files
|
||||
+ install -d "$(DESTDIR)$(includedir)/f2"
|
||||
+ # now install the header files
|
||||
+ install -m 644 src/*.h "$(DESTDIR)$(includedir)/"
|
||||
+ install -m 644 src/f2/function2.hpp "$(DESTDIR)$(includedir)/f2/"
|
||||
13
dev-cpp/uwebsockets/files/uwebsockets-src_Loop.h.patch
Normal file
13
dev-cpp/uwebsockets/files/uwebsockets-src_Loop.h.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/Loop.h b/src/Loop.h
|
||||
index 3681dad..03d8a75 100644
|
||||
--- a/src/Loop.h
|
||||
+++ b/src/Loop.h
|
||||
@@ -21,7 +21,7 @@
|
||||
/* The loop is lazily created per-thread and run with uWS::run() */
|
||||
|
||||
#include "LoopData.h"
|
||||
-#include <libusockets.h>
|
||||
+#include <uSockets/libusockets.h>
|
||||
|
||||
namespace uWS {
|
||||
struct Loop {
|
||||
Reference in New Issue
Block a user