Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146054110
D48110.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48110.diff
View Options
diff --git a/net/usockets/Makefile b/net/usockets/Makefile
--- a/net/usockets/Makefile
+++ b/net/usockets/Makefile
@@ -1,6 +1,7 @@
PORTNAME= usockets
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.8
+PORTREVISION= 1
CATEGORIES= net devel
MAINTAINER= yuri@FreeBSD.org
@@ -25,12 +26,18 @@
ALL_TARGET= default
+SUB_FILES= libusockets.pc
+SUB_LISTS= VERSION=${DISTVERSION}
+
PLIST_FILES= include/libusockets.h \
+ lib/libuSockets.so.0 \
lib/libuSockets.so
do-install:
${INSTALL_DATA} ${WRKSRC}/src/libusockets.h ${STAGEDIR}${PREFIX}/include
- ${INSTALL_LIB} ${WRKSRC}/libuSockets.so ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_LIB} ${WRKSRC}/libuSockets.so.0 ${STAGEDIR}${PREFIX}/lib
+ ${RLN} ${WRKSRC}/libuSockets.so.0 ${STAGEDIR}${PREFIX}/lib/libuSockets.so
+ ${INSTALL_DATA} ${WRKDIR}/libusockets.pc ${STAGEDIR}${LOCALBASE}/libdata/pkgconfig
do-test: # tests fail to compile: https://github.com/uNetworking/uSockets/issues/213
cd ${WRKSRC} && \
diff --git a/net/usockets/files/patch-Makefile b/net/usockets/files/patch-Makefile
--- a/net/usockets/files/patch-Makefile
+++ b/net/usockets/files/patch-Makefile
@@ -1,11 +1,11 @@
---- Makefile.orig 2023-12-28 02:58:25 UTC
+--- Makefile.orig 2024-02-07 13:04:14 UTC
+++ Makefile
@@ -88,7 +88,7 @@ endif
$(CXX) $(CXXFLAGS) -std=c++17 -flto -O3 -c src/crypto/*.cpp
endif
# Create a static library (try windows, then unix)
- lib.exe /out:uSockets.a *.o || $(AR) rvs uSockets.a *.o
-+ $(CXX) -shared -o libuSockets.so *.o -lssl
++ $(CXX) -shared -o libuSockets.so.0 -Wl,-soname=libuSockets.so.0 *.o -lssl
# BoringSSL needs cmake and golang
.PHONY: boringssl
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 28, 10:02 AM (3 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29063234
Default Alt Text
D48110.diff (1 KB)
Attached To
Mode
D48110: net/usockets: fix shared library and provide pc file
Attached
Detach File
Event Timeline
Log In to Comment