Transmission: enable GUI (#1777)

* WIP

* WIP

* Transmission: enable Qt GUI, switch to cmake, recipe cleanup, patchset
cleanup.

* Removed leftover
This commit is contained in:
miqlas
2017-11-04 16:50:35 +01:00
committed by diversys
parent 5e50d332bb
commit c6b8de9443
3 changed files with 148 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
From b5e7c81ea3fc2ad66bb59088405cfa8fd8b16d11 Mon Sep 17 00:00:00 2001
From 36f9475fc73bc609f29fc6de2081cb140b839e11 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 5 Sep 2014 14:57:25 +0000
Subject: haiku patch
@@ -105,5 +105,46 @@ index 19e3054..2b1bce8 100644
default:
break;
--
2.7.0
2.14.2
From 29e44144fdecbff475757f7c47292b5e3af0d485 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sat, 4 Nov 2017 14:24:02 +0100
Subject: Haiku supporting patches
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac0989b..1aac8b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -538,6 +538,13 @@ if(HAVE_LIBM)
set(LIBM_LIBRARY m)
endif()
+if (HAIKU)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DB_USE_POSITIVE_POSIX_ERRORS")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DB_USE_POSITIVE_POSIX_ERRORS")
+ set(NETWORKING_LIBRARY network)
+ set(HAIKU_SUPPORT_LIBRARY posix_error_mapper)
+endif()
+
if(ENABLE_TESTS)
enable_testing()
include(CTest)
diff --git a/libtransmission/CMakeLists.txt b/libtransmission/CMakeLists.txt
index 4865dee..b796fde 100644
--- a/libtransmission/CMakeLists.txt
+++ b/libtransmission/CMakeLists.txt
@@ -244,6 +244,8 @@ target_link_libraries(${TR_NAME}
${B64_LIBRARIES}
${LIBINTL_LIBRARY}
${LIBM_LIBRARY}
+ ${NETWORKING_LIBRARY}
+ ${HAIKU_SUPPORT_LIBRARY}
)
if(ICONV_FOUND)
--
2.14.2