mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
tox: find libnetwork
This commit is contained in:
21
net-libs/tox/patches/tox-0.2.12.patchset
Normal file
21
net-libs/tox/patches/tox-0.2.12.patchset
Normal file
@@ -0,0 +1,21 @@
|
||||
From adda5fd7edb90e54c52e96d74dc4d5523e85371e Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Fri, 24 Mar 2023 13:12:39 +0100
|
||||
Subject: Haiku: find libnetwork
|
||||
|
||||
|
||||
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
|
||||
index 8361e8e..d6062ab 100644
|
||||
--- a/cmake/Dependencies.cmake
|
||||
+++ b/cmake/Dependencies.cmake
|
||||
@@ -11,6 +11,7 @@ find_package(Threads REQUIRED)
|
||||
find_library(NSL_LIBRARIES nsl )
|
||||
find_library(RT_LIBRARIES rt )
|
||||
find_library(SOCKET_LIBRARIES socket )
|
||||
+find_library(SOCKET_LIBRARIES network )
|
||||
|
||||
# For toxcore.
|
||||
pkg_use_module(LIBSODIUM libsodium )
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -11,6 +11,7 @@ REVISION="2"
|
||||
SOURCE_URI="https://github.com/TokTok/c-toxcore/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="30ae3263c9b68d3bef06f799ba9d7a67e3fad447030625f0ffa4bb22684228b0"
|
||||
SOURCE_DIR="c-toxcore-$portVersion"
|
||||
PATCHES="tox-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -74,8 +75,6 @@ BUILD()
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
||||
-DCMAKE_EXE_LINKER_FLAGS:STRING=-lnetwork \
|
||||
-DSOCKET_LIBRARIES=-lnetwork \
|
||||
-DUSE_IPV6=OFF
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user