qbittorrent: link against libnetwork.

This commit is contained in:
Jerome Duval
2017-10-11 21:22:00 +02:00
parent f295295c5c
commit adb2ff7e13
2 changed files with 30 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
From 12906e1526d1efdec43624c7d86b7a1042687a41 Mon Sep 17 00:00:00 2001
From 258ae785b6379f62a0eeb39b9d0a497cb86a1cd6 Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Mon, 30 Nov 2015 11:40:43 +0300
Subject: Disable QtLockedFile on Haiku
@@ -45,5 +45,32 @@ index 976c1b9..65813b8 100644
return true;
}
--
2.2.2
2.14.2
From 5c46079abe28a5be1f6fcf5dc698a4aca7e4f9ed Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 11 Oct 2017 21:19:08 +0200
Subject: Link with libnetwork on Haiku
diff --git a/configure.ac b/configure.ac
index 1019ffe..c932918 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,12 @@ AS_IF([expr "$host_os" : ".*freebsd.*" > /dev/null],
LIBS="-lexecinfo $LIBS"],
[AC_MSG_RESULT([no])])
+AC_MSG_CHECKING([whether OS is Haiku])
+AS_IF([expr "$host_os" : ".*haiku.*" > /dev/null],
+ [AC_MSG_RESULT([yes])
+ LIBS="-lnetwork $LIBS"],
+ [AC_MSG_RESULT([no])])
+
AC_MSG_CHECKING([whether OS is macOS])
AS_IF([expr "$host_os" : ".*darwin.*" > /dev/null],
[AC_MSG_RESULT([yes])
--
2.14.2

View File

@@ -9,7 +9,7 @@ qBittorrent is based on the Qt toolkit and libtorrent-rasterbar library."
HOMEPAGE="https://www.qbittorrent.org/"
COPYRIGHT="2006-2017 The qBittorrent project"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://downloads.sf.net/qbittorrent/qbittorrent-$portVersion.tar.xz"
CHECKSUM_SHA256="ea08a61872c397258c2627780f6e09fe777189d9a57cc5e02a656da9aeb0be57"
SOURCE_DIR="qbittorrent-$portVersion"