From 567ee744d32cc5f20136c5fc0b04d83467994ded Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Fri, 24 Mar 2023 13:13:57 +0100 Subject: [PATCH] tox: find libnetwork --- net-libs/tox/patches/tox-0.2.12.patchset | 21 +++++++++++++++++++++ net-libs/tox/tox-0.2.12.recipe | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 net-libs/tox/patches/tox-0.2.12.patchset diff --git a/net-libs/tox/patches/tox-0.2.12.patchset b/net-libs/tox/patches/tox-0.2.12.patchset new file mode 100644 index 000000000..ea8ce58e3 --- /dev/null +++ b/net-libs/tox/patches/tox-0.2.12.patchset @@ -0,0 +1,21 @@ +From adda5fd7edb90e54c52e96d74dc4d5523e85371e Mon Sep 17 00:00:00 2001 +From: Jerome Duval +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 + diff --git a/net-libs/tox/tox-0.2.12.recipe b/net-libs/tox/tox-0.2.12.recipe index 8f9e25c44..101d16e34 100644 --- a/net-libs/tox/tox-0.2.12.recipe +++ b/net-libs/tox/tox-0.2.12.recipe @@ -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 }