diff --git a/net-libs/libktorrent/libktorrent-2.1.1.recipe b/net-libs/libktorrent/libktorrent-2.1.1.recipe index 187cf28b9..158e60f7f 100644 --- a/net-libs/libktorrent/libktorrent-2.1.1.recipe +++ b/net-libs/libktorrent/libktorrent-2.1.1.recipe @@ -8,9 +8,10 @@ blocking lists." HOMEPAGE="https://github.com/KDE/libktorrent/" COPYRIGHT="2010-2019 KDE Organisation" LICENSE="GNU LGPL v2" -REVISION="3" +REVISION="4" SOURCE_URI="https://github.com/KDE/libktorrent/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="897d970d8e06c82dfb43757b23e3079731dbb74bca259c559e25b7d574dfece4" +PATCHES="libktorrent-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" @@ -54,7 +55,7 @@ REQUIRES_devel=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel - extra_cmake_modules$secondaryArchSuffix >= 5.65 + extra_cmake_modules$secondaryArchSuffix devel:libboost_system$secondaryArchSuffix devel:libgcrypt$secondaryArchSuffix devel:libgmp$secondaryArchSuffix @@ -76,14 +77,15 @@ BUILD_REQUIRES=" devel:libKF5WidgetsAddons$secondaryArchSuffix devel:libKF5WindowSystem$secondaryArchSuffix devel:libKF5XmlGui$secondaryArchSuffix - devel:libqca$secondaryArchSuffix >= 2 - devel:libQt5Core$secondaryArchSuffix >= 5.14 + devel:libqca_qt5$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cmake cmd:g++$secondaryArchSuffix cmd:make - cmd:python3 + cmd:msgfmt$secondaryArchSuffix + cmd:msgmerge$secondaryArchSuffix cmd:qdbuscpp2xml$secondaryArchSuffix " @@ -91,8 +93,10 @@ BUILD() { cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ $cmakeDirArgs \ - -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ - -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs + -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ + -Wno-dev + make -C build $jobArgs } diff --git a/net-libs/libktorrent/patches/libktorrent-2.1.1.patchset b/net-libs/libktorrent/patches/libktorrent-2.1.1.patchset new file mode 100644 index 000000000..539c74c87 --- /dev/null +++ b/net-libs/libktorrent/patches/libktorrent-2.1.1.patchset @@ -0,0 +1,21 @@ +From eca8be820362d9d403cfacfa386cb93a5fd0c7be Mon Sep 17 00:00:00 2001 +From: Luc Schrijvers +Date: Sat, 27 Dec 2025 09:18:07 +0100 +Subject: libktorrent, link to libnetwork + + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index d347e07..b97ddc8 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -243,6 +243,7 @@ PUBLIC + Qt5::Xml + LibGcrypt::LibGcrypt + LibGMP::LibGMP ++ network + ) + + if(WIN32) +-- +2.52.0 +