mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
Qt5: bump version to 5.10.1
This commit is contained in:
@@ -1,351 +0,0 @@
|
||||
From 562e50af0578028a1c5e537ffafa0a9c49fccb0f Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Fri, 16 Oct 2015 23:07:40 +1000
|
||||
Subject: Fix Haiku build
|
||||
|
||||
|
||||
diff --git a/qtbase/src/corelib/io/qstandardpaths_haiku.cpp b/qtbase/src/corelib/io/qstandardpaths_haiku.cpp
|
||||
index 044d69f..89653c1 100644
|
||||
--- a/qtbase/src/corelib/io/qstandardpaths_haiku.cpp
|
||||
+++ b/qtbase/src/corelib/io/qstandardpaths_haiku.cpp
|
||||
@@ -145,15 +145,15 @@ QString QStandardPaths::writableLocation(StandardLocation type)
|
||||
return haikuStandardPath(B_USER_NONPACKAGED_BIN_DIRECTORY);
|
||||
case TempLocation:
|
||||
return haikuStandardPath(B_SYSTEM_TEMP_DIRECTORY);
|
||||
- case AppDataLocation: // fall through
|
||||
- case AppLocalDataLocation:
|
||||
- return haikuAppStandardPath(B_USER_NONPACKAGED_DATA_DIRECTORY);
|
||||
- case GenericDataLocation:
|
||||
- return haikuStandardPath(B_USER_NONPACKAGED_DATA_DIRECTORY);
|
||||
+// case AppDataLocation: // fall through
|
||||
+// case AppLocalDataLocation:
|
||||
+// return haikuAppStandardPath(B_USER_NONPACKAGED_DATA_DIRECTORY);
|
||||
+// case GenericDataLocation:
|
||||
+// return haikuStandardPath(B_USER_NONPACKAGED_DATA_DIRECTORY);
|
||||
case CacheLocation:
|
||||
return haikuAppStandardPath(B_USER_CACHE_DIRECTORY);
|
||||
case GenericCacheLocation:
|
||||
- return haikuStandardPath(B_USER_CACHE_DIRECTORY);
|
||||
+ return haikuStandardPath(B_SYSTEM_CACHE_DIRECTORY);
|
||||
case ConfigLocation: // fall through
|
||||
case AppConfigLocation:
|
||||
return haikuAppStandardPath(B_USER_SETTINGS_DIRECTORY);
|
||||
@@ -179,7 +179,7 @@ QStringList QStandardPaths::standardLocations(StandardLocation type)
|
||||
case MoviesLocation:
|
||||
case DownloadLocation:
|
||||
case HomeLocation:
|
||||
- paths += haikuStandardPath(B_USER_NONPACKAGED_DIRECTORY);
|
||||
+ paths += haikuStandardPath(B_USER_DIRECTORY);
|
||||
break;
|
||||
case FontsLocation:
|
||||
paths += haikuStandardPaths(B_FIND_PATH_FONTS_DIRECTORY);
|
||||
@@ -203,7 +203,7 @@ QStringList QStandardPaths::standardLocations(StandardLocation type)
|
||||
break;
|
||||
case ConfigLocation: // fall through
|
||||
case AppConfigLocation:
|
||||
- paths += haikuAppStandardPath(B_SYSTEM_SETTINGS_DIRECTORY);
|
||||
+ paths += haikuAppStandardPath(B_USER_SETTINGS_DIRECTORY);
|
||||
break;
|
||||
case GenericConfigLocation:
|
||||
paths += haikuStandardPath(B_SYSTEM_SETTINGS_DIRECTORY);
|
||||
diff --git a/qtbase/tests/auto/corelib/io/qfileselector/qfileselector.qrc b/qtbase/tests/auto/corelib/io/qfileselector/qfileselector.qrc
|
||||
index ea9b827..928e949 100644
|
||||
--- a/qtbase/tests/auto/corelib/io/qfileselector/qfileselector.qrc
|
||||
+++ b/qtbase/tests/auto/corelib/io/qfileselector/qfileselector.qrc
|
||||
@@ -21,6 +21,7 @@
|
||||
<file>platforms/+unix/+darwin/test</file>
|
||||
<file>platforms/+unix/+haiku/test</file>
|
||||
<file>platforms/+unix/+linux/test</file>
|
||||
+ <file>platforms/+unix/+haiku/test</file>
|
||||
<file>platforms/+unix/test</file>
|
||||
<file>platforms/+windows/+wince/test</file>
|
||||
<file>platforms/+windows/+winnt/test</file>
|
||||
diff --git a/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp b/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp
|
||||
index e715ed2..b05e71e 100644
|
||||
--- a/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp
|
||||
+++ b/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp
|
||||
@@ -47,6 +47,13 @@ inline size_t systemPageSize()
|
||||
return ::sysconf(_SC_PAGESIZE);
|
||||
}
|
||||
|
||||
+#elif OS(HAIKU)
|
||||
+
|
||||
+inline size_t systemPageSize()
|
||||
+{
|
||||
+ return 4096;
|
||||
+}
|
||||
+
|
||||
#elif OS(WINDOWS)
|
||||
|
||||
inline size_t systemPageSize()
|
||||
diff --git a/qtdeclarative/src/3rdparty/masm/wtf/Platform.h b/qtdeclarative/src/3rdparty/masm/wtf/Platform.h
|
||||
index 7f2023a..4b3d202 100644
|
||||
--- a/qtdeclarative/src/3rdparty/masm/wtf/Platform.h
|
||||
+++ b/qtdeclarative/src/3rdparty/masm/wtf/Platform.h
|
||||
@@ -412,6 +412,11 @@
|
||||
#define WTF_OS_QNX 1
|
||||
#endif
|
||||
|
||||
+/* OS(HAIKU) - Haiku */
|
||||
+#if defined(__HAIKU__)
|
||||
+#define WTF_OS_HAIKU 1
|
||||
+#endif
|
||||
+
|
||||
/* OS(SOLARIS) - Solaris */
|
||||
#if defined(sun) || defined(__sun)
|
||||
#define WTF_OS_SOLARIS 1
|
||||
@@ -442,6 +447,7 @@
|
||||
|| OS(HURD) \
|
||||
|| OS(INTEGRITY) \
|
||||
|| OS(LINUX) \
|
||||
+ || OS(HAIKU) \
|
||||
|| OS(NETBSD) \
|
||||
|| OS(OPENBSD) \
|
||||
|| OS(QNX) \
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From 826a34a14f72b6b0d25ea76352c3a3ce956ec4b9 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Mon, 11 Apr 2016 01:04:24 +0200
|
||||
Subject: Add filteredDeviceFilePaths for Haiku's /dev/ports/*
|
||||
|
||||
|
||||
diff --git a/qtserialport/src/serialport/qserialportinfo_unix.cpp b/qtserialport/src/serialport/qserialportinfo_unix.cpp
|
||||
index 0f62a9d..afd5c0b 100644
|
||||
--- a/qtserialport/src/serialport/qserialportinfo_unix.cpp
|
||||
+++ b/qtserialport/src/serialport/qserialportinfo_unix.cpp
|
||||
@@ -79,13 +79,20 @@ static QStringList filteredDeviceFilePaths()
|
||||
<< QStringLiteral("cu*");
|
||||
#elif defined(Q_OS_QNX)
|
||||
<< QStringLiteral("ser*");
|
||||
+#elif defined(Q_OS_HAIKU)
|
||||
+ << QStringLiteral("*serial*")
|
||||
+ << QStringLiteral("usb*");
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
|
||||
QStringList result;
|
||||
|
||||
+#if defined(Q_OS_HAIKU)
|
||||
+ QDir deviceDir(QStringLiteral("/dev/ports"));
|
||||
+#else
|
||||
QDir deviceDir(QStringLiteral("/dev"));
|
||||
+#endif
|
||||
if (deviceDir.exists()) {
|
||||
deviceDir.setNameFilters(deviceFileNameFilterList);
|
||||
deviceDir.setFilter(QDir::Files | QDir::System | QDir::NoSymLinks);
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From fcf3f15774a7a8c7b5ee2594f313d76cfbf7663c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Sat, 12 Nov 2016 03:19:40 +0100
|
||||
Subject: Make sure libs are searched in the develop/ dir by CMake
|
||||
|
||||
Static libs at least are not in the lib[/x86] dirs...
|
||||
|
||||
diff --git a/qtbase/mkspecs/features/create_cmake.prf b/qtbase/mkspecs/features/create_cmake.prf
|
||||
index bb5083c..b286bed 100644
|
||||
--- a/qtbase/mkspecs/features/create_cmake.prf
|
||||
+++ b/qtbase/mkspecs/features/create_cmake.prf
|
||||
@@ -84,6 +84,9 @@ win32:!static:!staticlib {
|
||||
CMAKE_DLL_DIR = $$[QT_INSTALL_BINS]/
|
||||
CMAKE_DLL_DIR_IS_ABSOLUTE = True
|
||||
}
|
||||
+} else:haiku {
|
||||
+ CMAKE_DLL_DIR = develop/$$CMAKE_LIB_DIR
|
||||
+ CMAKE_DLL_DIR_IS_ABSOLUTE = $$CMAKE_LIB_DIR_IS_ABSOLUTE
|
||||
} else {
|
||||
CMAKE_DLL_DIR = $$CMAKE_LIB_DIR
|
||||
CMAKE_DLL_DIR_IS_ABSOLUTE = $$CMAKE_LIB_DIR_IS_ABSOLUTE
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From 0adf0e1b28896f368a587b24fb73859e45535ad7 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Thu, 23 Mar 2017 21:08:37 +0100
|
||||
Subject: enable QV4 JIT.
|
||||
|
||||
|
||||
diff --git a/qtdeclarative/src/qml/jit/qv4targetplatform_p.h b/qtdeclarative/src/qml/jit/qv4targetplatform_p.h
|
||||
index 6d788f4..c4c47ea 100644
|
||||
--- a/qtdeclarative/src/qml/jit/qv4targetplatform_p.h
|
||||
+++ b/qtdeclarative/src/qml/jit/qv4targetplatform_p.h
|
||||
@@ -90,7 +90,7 @@ class TargetPlatform
|
||||
{
|
||||
};
|
||||
|
||||
-#if CPU(X86) && (OS(LINUX) || OS(WINDOWS) || OS(QNX) || OS(FREEBSD) || defined(Q_OS_IOS))
|
||||
+#if CPU(X86) && (OS(LINUX) || OS(WINDOWS) || OS(QNX) || OS(FREEBSD) || defined(Q_OS_IOS) || OS(HAIKU) )
|
||||
template <>
|
||||
class TargetPlatform<JSC::MacroAssemblerX86, NoOperatingSystemSpecialization>
|
||||
{
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
}
|
||||
|
||||
#if OS(WINDOWS) || OS(QNX) || \
|
||||
- ((OS(LINUX) || OS(FREEBSD)) && (defined(__PIC__) || defined(__PIE__)))
|
||||
+ ((OS(LINUX) || OS(FREEBSD) || OS(HAIKU)) && (defined(__PIC__) || defined(__PIE__)))
|
||||
|
||||
static const int gotRegister = JSC::X86Registers::ebx;
|
||||
static int savedGOTRegisterSlotOnStack() {
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
};
|
||||
#endif // x86
|
||||
|
||||
-#if CPU(X86_64) && (OS(LINUX) || OS(MAC_OS_X) || OS(FREEBSD) || OS(QNX) || defined(Q_OS_IOS))
|
||||
+#if CPU(X86_64) && (OS(LINUX) || OS(MAC_OS_X) || OS(FREEBSD) || OS(HAIKU) ||OS(QNX) || defined(Q_OS_IOS))
|
||||
template <>
|
||||
class TargetPlatform<JSC::MacroAssemblerX86_64, NoOperatingSystemSpecialization>
|
||||
{
|
||||
diff --git a/qtdeclarative/src/qml/jsruntime/qv4global_p.h b/qtdeclarative/src/qml/jsruntime/qv4global_p.h
|
||||
index 8769519..7e637bf 100644
|
||||
--- a/qtdeclarative/src/qml/jsruntime/qv4global_p.h
|
||||
+++ b/qtdeclarative/src/qml/jsruntime/qv4global_p.h
|
||||
@@ -92,10 +92,10 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); }
|
||||
// NOTE: This should match the logic in qv4targetplatform_p.h!
|
||||
|
||||
#if defined(Q_PROCESSOR_X86) && (QT_POINTER_SIZE == 4) \
|
||||
- && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD))
|
||||
+ && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU))
|
||||
# define V4_ENABLE_JIT
|
||||
#elif defined(Q_PROCESSOR_X86_64) && (QT_POINTER_SIZE == 8) \
|
||||
- && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_MAC) || defined(Q_OS_FREEBSD))
|
||||
+ && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU))
|
||||
# define V4_ENABLE_JIT
|
||||
#elif defined(Q_PROCESSOR_ARM_32) && (QT_POINTER_SIZE == 4)
|
||||
# if defined(thumb2) || defined(__thumb2__) || ((defined(__thumb) || defined(__thumb__)) && __TARGET_ARCH_THUMB-0 == 4)
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From 0f7551408b6d401f2b206fd4ed740f7bf998cc12 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 31 May 2017 21:59:22 +0200
|
||||
Subject: fix qt3d build on x86.
|
||||
|
||||
|
||||
diff --git a/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h b/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h
|
||||
index 98053cb..57ca638 100644
|
||||
--- a/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h
|
||||
+++ b/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h
|
||||
@@ -545,7 +545,8 @@ public:
|
||||
flags_ |= kIntFlag;
|
||||
}
|
||||
|
||||
-#if defined(__APPLE__)
|
||||
+#if defined(__APPLE__) || defined(__HAIKU__)
|
||||
+#if !defined(__HAIKU__)
|
||||
//! Constructor for unsigned long value.
|
||||
explicit GenericValue(unsigned long u64) RAPIDJSON_NOEXCEPT : data_(), flags_(kNumberUint64Flag) {
|
||||
data_.n.u64 = u64;
|
||||
@@ -556,6 +557,7 @@ public:
|
||||
if (!(u64 & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
|
||||
flags_ |= kIntFlag;
|
||||
}
|
||||
+#endif
|
||||
|
||||
#if !defined(__x86_64__) && !defined(__arm64__)
|
||||
//! Constructor for size_t value.
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From 6bb5e7068c117275e59164a14d64e54989d82cb5 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Fri, 9 Jun 2017 19:47:02 +0200
|
||||
Subject: QSslSocketPrivate::unixRootCertDirectories(): add ssl path for Haiku.
|
||||
|
||||
|
||||
diff --git a/qtbase/src/network/ssl/qsslsocket.cpp b/qtbase/src/network/ssl/qsslsocket.cpp
|
||||
index 5c9ebac..04ac990 100644
|
||||
--- a/qtbase/src/network/ssl/qsslsocket.cpp
|
||||
+++ b/qtbase/src/network/ssl/qsslsocket.cpp
|
||||
@@ -2681,6 +2681,7 @@ QList<QByteArray> QSslSocketPrivate::unixRootCertDirectories()
|
||||
<< "/usr/local/ssl/certs/" // Solaris
|
||||
<< "/etc/openssl/certs/" // BlackBerry
|
||||
<< "/opt/openssl/certs/" // HP-UX
|
||||
+ << "/system/data/ssl/" // Haiku
|
||||
<< "/etc/ssl/"; // OpenBSD
|
||||
}
|
||||
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From e7dace583933cb5cd13aaf3ea5e89b598ffa1dd3 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 16 Jul 2017 21:55:25 +1000
|
||||
Subject: Disable built-in haiku QPA plugin
|
||||
|
||||
|
||||
diff --git a/qtbase/src/plugins/platforms/platforms.pro b/qtbase/src/plugins/platforms/platforms.pro
|
||||
index 9ccc2b5..9e404e2 100644
|
||||
--- a/qtbase/src/plugins/platforms/platforms.pro
|
||||
+++ b/qtbase/src/plugins/platforms/platforms.pro
|
||||
@@ -42,10 +42,6 @@ freebsd {
|
||||
SUBDIRS += bsdfb
|
||||
}
|
||||
|
||||
-haiku {
|
||||
- SUBDIRS += haiku
|
||||
-}
|
||||
-
|
||||
qtConfig(mirclient): SUBDIRS += mirclient
|
||||
|
||||
qtConfig(integrityfb): SUBDIRS += integrity
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From c192afa8c086eeef69c823a3f43a558ebd77fb35 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sun, 17 Sep 2017 14:29:22 +0200
|
||||
Subject: skip QMAKE_DEFAULT_LIBDIRS check
|
||||
|
||||
for some reason QMAKE_DEFAULT_LIBDIRS is empty on Haiku.
|
||||
|
||||
diff --git a/qtbase/mkspecs/features/toolchain.prf b/qtbase/mkspecs/features/toolchain.prf
|
||||
index 21c18c7..60fab6f 100644
|
||||
--- a/qtbase/mkspecs/features/toolchain.prf
|
||||
+++ b/qtbase/mkspecs/features/toolchain.prf
|
||||
@@ -140,7 +140,7 @@ isEmpty($${target_prefix}.INCDIRS) {
|
||||
}
|
||||
}
|
||||
isEmpty(QMAKE_DEFAULT_LIBDIRS)|isEmpty(QMAKE_DEFAULT_INCDIRS): \
|
||||
- !integrity: \
|
||||
+ !integrity:!haiku: \
|
||||
error("failed to parse default search paths from compiler output")
|
||||
QMAKE_DEFAULT_LIBDIRS = $$unique(QMAKE_DEFAULT_LIBDIRS)
|
||||
} else: msvc {
|
||||
--
|
||||
2.13.1
|
||||
|
||||
|
||||
From a78d9751e4d5a951bc2150c3d1b767adaeaa2db7 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sun, 17 Sep 2017 15:19:26 +0200
|
||||
Subject: disable mapbox-gl-native on Haiku.
|
||||
|
||||
|
||||
diff --git a/qtlocation/src/location/configure.json b/qtlocation/src/location/configure.json
|
||||
index 4de6e86..4d79881 100644
|
||||
--- a/qtlocation/src/location/configure.json
|
||||
+++ b/qtlocation/src/location/configure.json
|
||||
@@ -37,7 +37,7 @@
|
||||
"condition": [
|
||||
"features.opengl",
|
||||
"features.c++14",
|
||||
- "!config.qnx && (!config.win32 || config.mingw)"
|
||||
+ "!config.qnx && (!config.win32 || config.mingw) && !config.haiku"
|
||||
],
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
--
|
||||
2.13.1
|
||||
|
||||
@@ -1,27 +1,29 @@
|
||||
From d841295d609c27409511b15bb429f9e443e51adc Mon Sep 17 00:00:00 2001
|
||||
From b9ad223ca73735683316cb98dc8bdeb7512103f9 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Fri, 16 Oct 2015 23:07:40 +1000
|
||||
Date: Sun, 22 Apr 2018 10:49:00 +1000
|
||||
Subject: Fix Haiku build
|
||||
|
||||
|
||||
diff --git a/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp b/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp
|
||||
index e715ed2..b05e71e 100644
|
||||
index e715ed2..1362a13 100644
|
||||
--- a/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp
|
||||
+++ b/qtdeclarative/src/3rdparty/masm/wtf/PageBlock.cpp
|
||||
@@ -47,6 +47,13 @@ inline size_t systemPageSize()
|
||||
return ::sysconf(_SC_PAGESIZE);
|
||||
}
|
||||
@@ -40,7 +40,14 @@ namespace WTF {
|
||||
static size_t s_pageSize;
|
||||
static size_t s_pageMask;
|
||||
|
||||
+#elif OS(HAIKU)
|
||||
-#if OS(UNIX)
|
||||
+#if OS(HAIKU)
|
||||
+
|
||||
+inline size_t systemPageSize()
|
||||
+{
|
||||
+ return 4096;
|
||||
+}
|
||||
+
|
||||
#elif OS(WINDOWS)
|
||||
+#elif OS(UNIX)
|
||||
|
||||
inline size_t systemPageSize()
|
||||
{
|
||||
diff --git a/qtdeclarative/src/3rdparty/masm/wtf/Platform.h b/qtdeclarative/src/3rdparty/masm/wtf/Platform.h
|
||||
index 7f2023a..4b3d202 100644
|
||||
--- a/qtdeclarative/src/3rdparty/masm/wtf/Platform.h
|
||||
@@ -47,12 +49,12 @@ index 7f2023a..4b3d202 100644
|
||||
|| OS(OPENBSD) \
|
||||
|| OS(QNX) \
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From c013af413b3e1cd5ee0bf06508e05db5c01d6aee Mon Sep 17 00:00:00 2001
|
||||
From c96c0e7327190e6db7039543ff61732d7fd456f6 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Mon, 11 Apr 2016 01:04:24 +0200
|
||||
Date: Sun, 22 Apr 2018 10:50:57 +1000
|
||||
Subject: Add filteredDeviceFilePaths for Haiku's /dev/ports/*
|
||||
|
||||
|
||||
@@ -82,12 +84,12 @@ index 0f62a9d..afd5c0b 100644
|
||||
deviceDir.setNameFilters(deviceFileNameFilterList);
|
||||
deviceDir.setFilter(QDir::Files | QDir::System | QDir::NoSymLinks);
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From 1944dc07ba8d5fa1e9331107d3c2094b4a163a1f Mon Sep 17 00:00:00 2001
|
||||
From 2f1d469d8cd6d0ef41915c0e2da34fb7ee418e0a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
|
||||
Date: Sat, 12 Nov 2016 03:19:40 +0100
|
||||
Date: Sun, 22 Apr 2018 10:52:35 +1000
|
||||
Subject: Make sure libs are searched in the develop/ dir by CMake
|
||||
|
||||
Static libs at least are not in the lib[/x86] dirs...
|
||||
@@ -107,39 +109,17 @@ index bb5083c..b286bed 100644
|
||||
CMAKE_DLL_DIR = $$CMAKE_LIB_DIR
|
||||
CMAKE_DLL_DIR_IS_ABSOLUTE = $$CMAKE_LIB_DIR_IS_ABSOLUTE
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From d9ab036140ec10e4268dd31cd02e7c0cfe9a691a Mon Sep 17 00:00:00 2001
|
||||
From b21ba2b743bcff8088db0ac541220cdc23efee68 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sat, 4 Mar 2017 10:41:09 +0100
|
||||
Subject: Haiku also provides bluetooth/bluetooth.h, so check for Bluez a bit
|
||||
more.
|
||||
|
||||
|
||||
diff --git a/qtconnectivity/config.tests/bluez/main.cpp b/qtconnectivity/config.tests/bluez/main.cpp
|
||||
index 0b9235a..bfc2a0c 100644
|
||||
--- a/qtconnectivity/config.tests/bluez/main.cpp
|
||||
+++ b/qtconnectivity/config.tests/bluez/main.cpp
|
||||
@@ -30,5 +30,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
+ bacmp(BDADDR_ANY, BDADDR_NONE);
|
||||
return 0;
|
||||
}
|
||||
--
|
||||
2.15.0
|
||||
|
||||
|
||||
From a8208fdf3be60bb94f8a50cc90a3404ea8f241c8 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Thu, 23 Mar 2017 21:08:37 +0100
|
||||
Date: Sun, 22 Apr 2018 10:54:37 +1000
|
||||
Subject: enable QV4 JIT.
|
||||
|
||||
|
||||
diff --git a/qtdeclarative/src/qml/jit/qv4targetplatform_p.h b/qtdeclarative/src/qml/jit/qv4targetplatform_p.h
|
||||
index 6d788f4..c4c47ea 100644
|
||||
index 6d788f4..d6529d7 100644
|
||||
--- a/qtdeclarative/src/qml/jit/qv4targetplatform_p.h
|
||||
+++ b/qtdeclarative/src/qml/jit/qv4targetplatform_p.h
|
||||
@@ -90,7 +90,7 @@ class TargetPlatform
|
||||
@@ -147,7 +127,7 @@ index 6d788f4..c4c47ea 100644
|
||||
};
|
||||
|
||||
-#if CPU(X86) && (OS(LINUX) || OS(WINDOWS) || OS(QNX) || OS(FREEBSD) || defined(Q_OS_IOS))
|
||||
+#if CPU(X86) && (OS(LINUX) || OS(WINDOWS) || OS(QNX) || OS(FREEBSD) || defined(Q_OS_IOS) || OS(HAIKU) )
|
||||
+#if CPU(X86) && (OS(LINUX) || OS(WINDOWS) || OS(QNX) || OS(FREEBSD) || OS(HAIKU) || defined(Q_OS_IOS))
|
||||
template <>
|
||||
class TargetPlatform<JSC::MacroAssemblerX86, NoOperatingSystemSpecialization>
|
||||
{
|
||||
@@ -165,12 +145,12 @@ index 6d788f4..c4c47ea 100644
|
||||
#endif // x86
|
||||
|
||||
-#if CPU(X86_64) && (OS(LINUX) || OS(MAC_OS_X) || OS(FREEBSD) || OS(QNX) || defined(Q_OS_IOS))
|
||||
+#if CPU(X86_64) && (OS(LINUX) || OS(MAC_OS_X) || OS(FREEBSD) || OS(HAIKU) ||OS(QNX) || defined(Q_OS_IOS))
|
||||
+#if CPU(X86_64) && (OS(LINUX) || OS(MAC_OS_X) || OS(FREEBSD) || OS(QNX) || OS(HAIKU) || defined(Q_OS_IOS))
|
||||
template <>
|
||||
class TargetPlatform<JSC::MacroAssemblerX86_64, NoOperatingSystemSpecialization>
|
||||
{
|
||||
diff --git a/qtdeclarative/src/qml/jsruntime/qv4global_p.h b/qtdeclarative/src/qml/jsruntime/qv4global_p.h
|
||||
index 3abda68..0eef251 100644
|
||||
index 5cddf2e..74ae422 100644
|
||||
--- a/qtdeclarative/src/qml/jsruntime/qv4global_p.h
|
||||
+++ b/qtdeclarative/src/qml/jsruntime/qv4global_p.h
|
||||
@@ -92,10 +92,10 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); }
|
||||
@@ -181,49 +161,23 @@ index 3abda68..0eef251 100644
|
||||
+ && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU))
|
||||
# define V4_ENABLE_JIT
|
||||
#elif defined(Q_PROCESSOR_X86_64) && (QT_POINTER_SIZE == 8) \
|
||||
- && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_MAC) || defined(Q_OS_FREEBSD))
|
||||
+ && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU))
|
||||
- && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_MAC) || defined(Q_OS_FREEBSD))
|
||||
+ && (defined(Q_OS_WIN) || defined(Q_OS_LINUX) || defined(Q_OS_QNX) || defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(Q_OS_HAIKU))
|
||||
# define V4_ENABLE_JIT
|
||||
#elif defined(Q_PROCESSOR_ARM_32) && (QT_POINTER_SIZE == 4)
|
||||
# if defined(thumb2) || defined(__thumb2__) || ((defined(__thumb) || defined(__thumb__)) && __TARGET_ARCH_THUMB-0 == 4)
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From 65bcb9f267e38b5318a0912b6308d7dffd1e8d50 Mon Sep 17 00:00:00 2001
|
||||
From 1b4eb3335f0a2481a566c4002500bb1113077adf Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 31 May 2017 20:58:35 +0200
|
||||
Subject: fix build in tiff imageformats plugin.
|
||||
|
||||
tip from 3deyes!
|
||||
|
||||
diff --git a/qtimageformats/src/plugins/imageformats/tiff/qtiffhandler.cpp b/qtimageformats/src/plugins/imageformats/tiff/qtiffhandler.cpp
|
||||
index 81ad7e9..8f3d3e4 100644
|
||||
--- a/qtimageformats/src/plugins/imageformats/tiff/qtiffhandler.cpp
|
||||
+++ b/qtimageformats/src/plugins/imageformats/tiff/qtiffhandler.cpp
|
||||
@@ -335,8 +335,8 @@ bool QTiffHandler::read(QImage *image)
|
||||
}
|
||||
|
||||
TIFF *const tiff = d->tiff;
|
||||
- const uint32 width = d->size.width();
|
||||
- const uint32 height = d->size.height();
|
||||
+ const quint32 width = d->size.width();
|
||||
+ const quint32 height = d->size.height();
|
||||
|
||||
if (format == QImage::Format_Mono || format == QImage::Format_Indexed8 || format == QImage::Format_Grayscale8) {
|
||||
if (format == QImage::Format_Mono) {
|
||||
--
|
||||
2.15.0
|
||||
|
||||
|
||||
From e611590e0c80625b01330c595a172d49a9c8fb11 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Wed, 31 May 2017 21:59:22 +0200
|
||||
Date: Sun, 22 Apr 2018 10:55:23 +1000
|
||||
Subject: fix qt3d build on x86.
|
||||
|
||||
|
||||
diff --git a/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h b/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h
|
||||
index 98053cb..57ca638 100644
|
||||
index 98053cb..aac3c8f 100644
|
||||
--- a/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h
|
||||
+++ b/qt3d/src/3rdparty/assimp/contrib/rapidjson/include/rapidjson/document.h
|
||||
@@ -545,7 +545,8 @@ public:
|
||||
@@ -236,26 +190,27 @@ index 98053cb..57ca638 100644
|
||||
//! Constructor for unsigned long value.
|
||||
explicit GenericValue(unsigned long u64) RAPIDJSON_NOEXCEPT : data_(), flags_(kNumberUint64Flag) {
|
||||
data_.n.u64 = u64;
|
||||
@@ -556,6 +557,7 @@ public:
|
||||
@@ -556,7 +557,7 @@ public:
|
||||
if (!(u64 & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
|
||||
flags_ |= kIntFlag;
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
|
||||
#if !defined(__x86_64__) && !defined(__arm64__)
|
||||
//! Constructor for size_t value.
|
||||
explicit GenericValue( size_t u ) RAPIDJSON_NOEXCEPT : data_(), flags_( kNumberUintFlag ) {
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From 19b29cd573eea47eec5fc864ac3459e400b23e41 Mon Sep 17 00:00:00 2001
|
||||
From 8e83ae312c47ff83f070bd292f7b6da7475be819 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 16 Jul 2017 21:55:25 +1000
|
||||
Date: Sun, 22 Apr 2018 10:55:55 +1000
|
||||
Subject: Disable built-in haiku QPA plugin
|
||||
|
||||
|
||||
diff --git a/qtbase/src/plugins/platforms/platforms.pro b/qtbase/src/plugins/platforms/platforms.pro
|
||||
index 9ccc2b5..9e404e2 100644
|
||||
index 9414f01..dccd41e 100644
|
||||
--- a/qtbase/src/plugins/platforms/platforms.pro
|
||||
+++ b/qtbase/src/plugins/platforms/platforms.pro
|
||||
@@ -42,10 +42,6 @@ freebsd {
|
||||
@@ -270,12 +225,12 @@ index 9ccc2b5..9e404e2 100644
|
||||
|
||||
qtConfig(integrityfb): SUBDIRS += integrity
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From c7feefd593eb2aa029685ed846d4269e2cedb426 Mon Sep 17 00:00:00 2001
|
||||
From 67744051e82ffc234cdecc11178dd49886ff6407 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Mon, 9 Oct 2017 22:57:10 +1000
|
||||
Date: Sun, 22 Apr 2018 10:56:50 +1000
|
||||
Subject: disable mapbox-gl-native on Haiku.
|
||||
|
||||
|
||||
@@ -293,12 +248,12 @@ index b81ad34..7b642c0 100644
|
||||
warning("Submodule mapbox-gl-native does not exist. Run 'git submodule update --init' on qtlocation.")
|
||||
} else {
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From 85c03479cd4278801048ce820f66756214e91b63 Mon Sep 17 00:00:00 2001
|
||||
From 69108472115fe694b483c7512c5459f48e90e5c5 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Mon, 9 Oct 2017 22:58:38 +1000
|
||||
Date: Sun, 22 Apr 2018 10:57:22 +1000
|
||||
Subject: Fix QStandartPaths for Haiku
|
||||
|
||||
|
||||
@@ -356,20 +311,20 @@ index 044d69f..1f255a9 100644
|
||||
case GenericConfigLocation:
|
||||
paths += haikuStandardPath(B_SYSTEM_SETTINGS_DIRECTORY);
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From 104ec97eae6dd9a6f2375078040e0e0970745061 Mon Sep 17 00:00:00 2001
|
||||
From 5231637ee9af585b4dd8e90d572857a87c27c77f Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 26 Nov 2017 19:09:37 +1000
|
||||
Date: Sun, 22 Apr 2018 10:57:46 +1000
|
||||
Subject: QSslSocketPrivate::unixRootCertDirectories(): add ssl path for Haiku.
|
||||
|
||||
|
||||
diff --git a/qtbase/src/network/ssl/qsslsocket.cpp b/qtbase/src/network/ssl/qsslsocket.cpp
|
||||
index 8eba5db..2e433d3 100644
|
||||
index adff568..2197843 100644
|
||||
--- a/qtbase/src/network/ssl/qsslsocket.cpp
|
||||
+++ b/qtbase/src/network/ssl/qsslsocket.cpp
|
||||
@@ -2682,6 +2682,7 @@ QList<QByteArray> QSslSocketPrivate::unixRootCertDirectories()
|
||||
@@ -2693,6 +2693,7 @@ QList<QByteArray> QSslSocketPrivate::unixRootCertDirectories()
|
||||
<< "/usr/local/ssl/certs/" // Solaris
|
||||
<< "/etc/openssl/certs/" // BlackBerry
|
||||
<< "/opt/openssl/certs/" // HP-UX
|
||||
@@ -378,20 +333,20 @@ index 8eba5db..2e433d3 100644
|
||||
}
|
||||
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
|
||||
From 758d9e669c5d450e298a64fd70eb932bdf7acdd3 Mon Sep 17 00:00:00 2001
|
||||
From c04be273c2223640948c788ccf4491188736bd01 Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Sun, 26 Nov 2017 19:15:26 +1000
|
||||
Date: Sun, 22 Apr 2018 10:58:17 +1000
|
||||
Subject: Fix build for Haiku platform
|
||||
|
||||
|
||||
diff --git a/qtbase/mkspecs/features/toolchain.prf b/qtbase/mkspecs/features/toolchain.prf
|
||||
index ba41598..34b46bc 100644
|
||||
index fdf3d1c..6424b71 100644
|
||||
--- a/qtbase/mkspecs/features/toolchain.prf
|
||||
+++ b/qtbase/mkspecs/features/toolchain.prf
|
||||
@@ -116,7 +116,7 @@ isEmpty($${target_prefix}.INCDIRS) {
|
||||
@@ -119,7 +119,7 @@ isEmpty($${target_prefix}.INCDIRS) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -401,5 +356,5 @@ index ba41598..34b46bc 100644
|
||||
# or gold under Linux) will not print any library search path. Need to use another
|
||||
# invocation with different options (which in turn doesn't print include search
|
||||
--
|
||||
2.15.0
|
||||
2.16.2
|
||||
|
||||
@@ -4,14 +4,13 @@ used for developing software with a graphical user interface, and also used \
|
||||
for developing non-GUI programs such as command-line tools and consoles for \
|
||||
servers."
|
||||
HOMEPAGE="https://qt.io/"
|
||||
COPYRIGHT="2015-2017 The Qt Company Ltd."
|
||||
COPYRIGHT="2015-2018 The Qt Company Ltd."
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU LGPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://download.qt.io/development_releases/qt/5.10/${portVersion/\~/-}/single/qt-everywhere-src-5.10.0.tar.xz"
|
||||
CHECKSUM_SHA256="1243304e74e25360c376040cf055dcb4a3b24647bbfe01bd94853c6651c45ae0"
|
||||
SOURCE_FILENAME="qt-everywhere-src-$portVersion.tar.xz"
|
||||
SOURCE_DIR="qt-everywhere-src-5.10.0"
|
||||
SOURCE_URI="https://download.qt.io/official_releases/qt/5.10/${portVersion/\~/-}/single/qt-everywhere-src-${portVersion/\~/-}.tar.xz"
|
||||
CHECKSUM_SHA256="05ffba7b811b854ed558abf2be2ddbd3bb6ddd0b60ea4b5da75d277ac15e740a"
|
||||
SOURCE_DIR="qt-everywhere-src-${portVersion/\~/-}"
|
||||
PATCHES="qt5-$portVersion.patchset"
|
||||
|
||||
ADDITIONAL_FILES="
|
||||
@@ -22,8 +21,8 @@ ADDITIONAL_FILES="
|
||||
qhelpconverter.rdef.in
|
||||
"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qt5$secondaryArchSuffix = $portVersion compat >= 5
|
||||
@@ -35,7 +34,7 @@ PROVIDES="
|
||||
lib:libQt5EglFSDeviceIntegration$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Gui$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Network$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5OpenGL$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5OpenGL$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Sql$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Test$secondaryArchSuffix = $portVersion compat >= 5
|
||||
@@ -79,7 +78,6 @@ PROVIDES="
|
||||
lib:libQt5MultimediaGstTools$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5MultimediaQuick$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5MultimediaWidgets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libqgsttools_p$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||
# qtnetworkauth
|
||||
lib:libQt5NetworkAuth$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtpurchasing
|
||||
@@ -93,8 +91,9 @@ PROVIDES="
|
||||
lib:libQt5Scxml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtsensors
|
||||
lib:libQt5Sensors$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtserialport
|
||||
# qtserialbus
|
||||
lib:libQt5SerialBus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtserialport
|
||||
lib:libQt5SerialPort$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtspeech
|
||||
lib:libQt5TextToSpeech$secondaryArchSuffix = $portVersion compat >= 5
|
||||
@@ -126,7 +125,6 @@ REQUIRES="
|
||||
lib:libgstapp_1.0$secondaryArchSuffix
|
||||
lib:libgstaudio_1.0$secondaryArchSuffix
|
||||
lib:libgstbadaudio_1.0$secondaryArchSuffix
|
||||
lib:libgstbadbase_1.0$secondaryArchSuffix
|
||||
lib:libgstbadvideo_1.0$secondaryArchSuffix
|
||||
lib:libgstreamer_1.0$secondaryArchSuffix
|
||||
lib:libgstvideo_1.0$secondaryArchSuffix
|
||||
@@ -153,6 +151,7 @@ PROVIDES_devel="
|
||||
devel:libQt5Concurrent$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Core$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5DBus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EdidSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Gui$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Network$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5OpenGL$secondaryArchSuffix = $portVersion compat >= 5
|
||||
@@ -218,8 +217,9 @@ PROVIDES_devel="
|
||||
devel:libQt5Scxml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtsensors
|
||||
devel:libQt5Sensors$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtserialport
|
||||
# qtserialbus
|
||||
devel:libQt5SerialBus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtserialport
|
||||
devel:libQt5SerialPort$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtspeech
|
||||
devel:libQt5TextToSpeech$secondaryArchSuffix = $portVersion compat >= 5
|
||||
@@ -239,14 +239,19 @@ PROVIDES_devel="
|
||||
devel:libQt5AccessibilitySupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5DeviceDiscoverySupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EdidSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EglSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EglFSDeviceIntegration$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EventDispatcherSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5FbSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5FontDatabaseSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5OpenGLExtensions$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5PacketProtocol$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5PlatformCompositorSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QmlDebug$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QmlDevTools$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5ServiceSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5ThemeSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EGLSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EglFSDeviceIntegration$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5UiTools$secondaryArchSuffix = $portVersion compat >= 5
|
||||
|
||||
cmd:assistant$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:canbusutil$secondaryArchSuffix = $portVersion compat >= 5
|
||||
@@ -315,10 +320,18 @@ REQUIRES_docs="
|
||||
qt5${secondaryArchSuffix}_devel == $portVersion base
|
||||
"
|
||||
|
||||
PROVIDES_examples="
|
||||
qt5${secondaryArchSuffix}_examples = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES_examples="
|
||||
qt5${secondaryArchSuffix}_devel == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcrypto$secondaryArchSuffix >= 1.0.0
|
||||
devel:libdouble_conversion$secondaryArchSuffix
|
||||
devel:libdouble_conversion$secondaryArchSuffix
|
||||
devel:libegl$secondaryArchSuffix
|
||||
devel:libflite$secondaryArchSuffix
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
@@ -329,12 +342,14 @@ BUILD_REQUIRES="
|
||||
devel:libgstapp_1.0$secondaryArchSuffix
|
||||
devel:libgstaudio_1.0$secondaryArchSuffix
|
||||
devel:libgstbadaudio_1.0$secondaryArchSuffix
|
||||
devel:libgstbadbase_1.0$secondaryArchSuffix
|
||||
devel:libgstbadvideo_1.0$secondaryArchSuffix
|
||||
devel:libgstbase_1.0$secondaryArchSuffix
|
||||
devel:libgstpbutils_1.0$secondaryArchSuffix
|
||||
devel:libgstreamer_1.0$secondaryArchSuffix
|
||||
devel:libgstvideo_1.0$secondaryArchSuffix
|
||||
devel:libicuuc$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:liborc_0.4$secondaryArchSuffix
|
||||
devel:libpcre2_16$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
@@ -356,11 +371,12 @@ BUILD_PREREQUIRES="
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
cmd:make
|
||||
cmd:orcc$secondaryArchSuffix
|
||||
cmd:perl
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python
|
||||
cmd:ruby
|
||||
cmd:sed
|
||||
cmd:sed
|
||||
cmd:xargs
|
||||
cmd:which
|
||||
"
|
||||
@@ -390,7 +406,6 @@ BUILD()
|
||||
-no-rpath -system-sqlite \
|
||||
-gstreamer 1.0 \
|
||||
-strip
|
||||
#CPPFLAGS=-D_BSD_SOURCE ./configure -platform haiku-g++ -no-pch -nomake examples -release -opensource -confirm-license -no-iconv -no-rpath -system-sqlite -gstreamer 1.0 -strip
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -399,65 +414,66 @@ INSTALL()
|
||||
make install
|
||||
|
||||
# build and install docs
|
||||
#PATH=$PATH:$binDir
|
||||
#LIBRARY_PATH=$LIBRARY_PATH:$libDir
|
||||
#make $jobArgs docs
|
||||
#make install_docs
|
||||
PATH=$PATH:$binDir
|
||||
LIBRARY_PATH=$LIBRARY_PATH:$libDir
|
||||
make $jobArgs docs
|
||||
make install_docs
|
||||
|
||||
# copy all examples
|
||||
_base=$dataDir/Qt5/examples
|
||||
mkdir -p $_base
|
||||
cp ${sourceDir}/qtbase/examples/examples.pro $_base
|
||||
|
||||
_fdirs=$(find "${sourceDir}" -maxdepth 2 -type d -name examples)
|
||||
for _dir in $_fdirs; do
|
||||
_mod=$(basename ${_dir%/examples})
|
||||
if [ -e "$_dir/README" ]; then
|
||||
cp $_dir/README $_dir/README.$_mod
|
||||
fi
|
||||
# mkdir $_base/$_mod
|
||||
cp -rn $_dir/* $_base
|
||||
done
|
||||
|
||||
rm $libDir/*.la
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libQt5Concurrent libQt5Core libQt5DBus libQt5Gui \
|
||||
libQt5Network libQt5NetworkAuth libQt5PrintSupport libQt5OpenGL \
|
||||
libQt5Sql libQt5Test libQt5Widgets libQt5Xml \
|
||||
libQt5XmlPatterns libQt5WebSockets \
|
||||
libQt5WebChannel libQt5Svg libQt5SerialBus \
|
||||
libQt5SerialPort libQt5Sensors libQt5ScriptTools libQt5Script \
|
||||
libQt5QuickWidgets libQt5QuickTest libQt5QuickParticles \
|
||||
libQt5Quick libQt5QuickControls2 libQt5QuickTemplates2 \
|
||||
libQt5Qml libQt5Positioning libQt5Nfc libQt5Gamepad \
|
||||
libQt5MultimediaWidgets libQt5MultimediaQuick libQt5Multimedia \
|
||||
libQt5MultimediaGstTools \
|
||||
libQt5Location libQt5Help libQt5Designer libQt5DesignerComponents \
|
||||
libQt5Bluetooth libQt5TextToSpeech \
|
||||
libQt5Charts libQt5DataVisualization libQt53DQuickInput \
|
||||
libQt53DQuickExtras libQt53DExtras \
|
||||
libQt53DQuick libQt53DLogic libQt53DInput libQt53DCore \
|
||||
libQt53DQuickRender libQt53DRender libQt53DQuickScene2D libQt5PacketProtocol \
|
||||
libQt5QmlDebug libQt5Scxml libQt5Purchasing libQt5AccessibilitySupport \
|
||||
libQt5DeviceDiscoverySupport libQt5EventDispatcherSupport \
|
||||
libQt5FbSupport libQt5FontDatabaseSupport \
|
||||
libQt5PlatformCompositorSupport libQt5ServiceSupport\
|
||||
libQt5ThemeSupport libQt53DAnimation libQt53DQuickAnimation \
|
||||
libQt5RemoteObjects libQt5EglFSDeviceIntegration libQt5EglSupport \
|
||||
libQt5EdidSupport
|
||||
libQt53DAnimation libQt53DCore libQt53DExtras libQt53DInput \
|
||||
libQt53DLogic libQt53DQuick libQt53DQuickAnimation \
|
||||
libQt53DQuickExtras libQt53DQuickInput libQt53DQuickRender \
|
||||
libQt53DQuickScene2D libQt53DRender libQt5Bluetooth libQt5Charts \
|
||||
libQt5Concurrent libQt5Core libQt5DataVisualization libQt5DBus \
|
||||
libQt5Designer libQt5DesignerComponents libQt5EglFSDeviceIntegration \
|
||||
libQt5Gamepad libQt5Gui libQt5Help libQt5Location libQt5Multimedia \
|
||||
libQt5MultimediaGstTools libQt5MultimediaQuick libQt5MultimediaWidgets \
|
||||
libQt5Network libQt5NetworkAuth libQt5Nfc libQt5OpenGL \
|
||||
libQt5Positioning libQt5PrintSupport libQt5Purchasing libQt5Qml \
|
||||
libQt5Quick libQt5QuickControls2 libQt5QuickParticles \
|
||||
libQt5QuickTemplates2 libQt5QuickTest libQt5QuickWidgets \
|
||||
libQt5RemoteObjects libQt5Script libQt5ScriptTools libQt5Scxml \
|
||||
libQt5Sensors libQt5SerialBus libQt5SerialPort libQt5Sql libQt5Svg \
|
||||
libQt5Test libQt5TextToSpeech libQt5WebChannel libQt5WebSockets \
|
||||
libQt5Widgets libQt5Xml libQt5XmlPatterns
|
||||
|
||||
cd $libDir
|
||||
for i in lib*.so.5.*;do
|
||||
ln -fs $i $(echo $i | cut -f1,2 -d.)
|
||||
done
|
||||
|
||||
rm -rf $libDir/fonts/ $prefix/tests
|
||||
rm -rf $dataDir/Qt5/demos $dataDir/Qt5/examples
|
||||
|
||||
mv -f $libDir/libQt5UiTools* $developLibDir/
|
||||
mv -f $libDir/libQt5QmlDevTools* $developLibDir/
|
||||
mv -f $libDir/libQt5Bootstrap* $developLibDir/
|
||||
mv -f $libDir/libQt5OpenGLExtensions* $developLibDir/
|
||||
mv -f $libDir/*.a $developLibDir/
|
||||
mv -f $libDir/*.prl $developLibDir/
|
||||
|
||||
# fix mkspec for static libs
|
||||
grep -rl $dataDir/Qt5/mkspecs/modules/*.pri -e "staticlib" | xargs sed -i 's%$$QT_MODULE_LIB_BASE%'${developLibDir}'%g'
|
||||
|
||||
devCommands="assistant canbusutil designer fixqt4headers.pl linguist
|
||||
lconvert lrelease lupdate pixeltool qcollectiongenerator qdbusviewer
|
||||
qdbus qgltf qhelpconverter qhelpgenerator qml qmlcachegen qmleasing
|
||||
qmlimportscanner qmllint qmlmin qmlplugindump qmlprofiler qmlscene
|
||||
qmltestrunner qtattributionsscanner qtdiag qtpaths qtplugininfo
|
||||
xmlpatterns xmlpatternsvalidator
|
||||
moc qdbuscpp2xml qdbusxml2cpp qdoc qlalr qmake qscxmlc rcc syncqt.pl
|
||||
uic repc qvkgen"
|
||||
devCommands="assistant canbusutil designer fixqt4headers.pl lconvert
|
||||
linguist lrelease lupdate moc pixeltool qcollectiongenerator qdbus
|
||||
qdbuscpp2xml qdbusviewer qdbusxml2cpp qdoc qgltf qhelpconverter
|
||||
qhelpgenerator qlalr qmake qml qmlcachegen qmleasing qmlimportscanner
|
||||
qmllint qmlmin qmlplugindump qmlprofiler qmlscene qmltestrunner
|
||||
qscxmlc qtattributionsscanner qtdiag qtpaths qtplugininfo qvkgen
|
||||
rcc repc syncqt.pl uic xmlpatterns xmlpatternsvalidator"
|
||||
|
||||
for i in $devCommands; do
|
||||
devPackageCommands="$devPackageCommands $binDir/$i"
|
||||
@@ -492,6 +508,9 @@ INSTALL()
|
||||
packageEntries docs \
|
||||
$docDir/Qt5
|
||||
|
||||
packageEntries examples \
|
||||
$dataDir/Qt5/examples
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$devPackageCommands \
|
||||
@@ -1,493 +0,0 @@
|
||||
SUMMARY="A comprehensive C++ application development framework"
|
||||
DESCRIPTION="Qt is a cross-platform application framework that is widely \
|
||||
used for developing software with a graphical user interface, and also used \
|
||||
for developing non-GUI programs such as command-line tools and consoles for \
|
||||
servers."
|
||||
HOMEPAGE="https://qt.io/"
|
||||
COPYRIGHT="2015-2017 The Qt Company Ltd."
|
||||
LICENSE="GNU LGPL v2.1
|
||||
GNU LGPL v3"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://download.qt.io/official_releases/qt/5.9/${portVersion/\~/-}/single/qt-everywhere-opensource-src-${portVersion/\~/-}.tar.xz"
|
||||
CHECKSUM_SHA256="57acd8f03f830c2d7dc29fbe28aaa96781b2b9bdddce94196e6761a0f88c6046"
|
||||
SOURCE_DIR="qt-everywhere-opensource-src-${portVersion/\~/-}"
|
||||
PATCHES="qt5-$portVersion.patchset"
|
||||
|
||||
ADDITIONAL_FILES="
|
||||
assistant.rdef.in
|
||||
designer.rdef.in
|
||||
linguist.rdef.in
|
||||
qdbusviewer.rdef.in
|
||||
qhelpconverter.rdef.in
|
||||
"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
qt5$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libqt5$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtbase
|
||||
lib:libQt5Concurrent$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Core$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5DBus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5EglFSDeviceIntegration$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Gui$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Network$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5OpenGL$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Sql$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Test$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Widgets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Xml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qt3d
|
||||
lib:libQt53DAnimation$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DCore$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DExtras$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DInput$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DLogic$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DQuick$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DQuickAnimation$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DQuickExtras$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DQuickInput$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DQuickRender$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DQuickScene2D$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt53DRender$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtcharts
|
||||
lib:libQt5Charts$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtconnectivity
|
||||
lib:libQt5Bluetooth$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Nfc$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtdatavis3d
|
||||
lib:libQt5DataVisualization$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtdeclarative
|
||||
lib:libQt5Qml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Quick$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5QuickControls2$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5QuickParticles$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5QuickTemplates2$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5QuickTest$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5QuickWidgets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtgamepad
|
||||
lib:libQt5Gamepad$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtlocation
|
||||
lib:libQt5Location$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Positioning$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtmultimedia
|
||||
lib:libQt5Multimedia$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5MultimediaQuick_p$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5MultimediaWidgets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libqgsttools_p$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||
# qtnetworkauth
|
||||
lib:libQt5NetworkAuth$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtpurchasing
|
||||
lib:libQt5Purchasing$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtremoteobjects
|
||||
lib:libQt5RemoteObjects$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtscript
|
||||
lib:libQt5Script$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5ScriptTools$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtscxml
|
||||
lib:libQt5Scxml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtsensors
|
||||
lib:libQt5Sensors$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtserialport
|
||||
lib:libQt5SerialBus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5SerialPort$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtspeech
|
||||
lib:libQt5TextToSpeech$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtsvg
|
||||
lib:libQt5Svg$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qttools
|
||||
lib:libQt5Help$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5Designer$secondaryArchSuffix = $portVersion compat >= 5
|
||||
lib:libQt5DesignerComponents$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtwebchannel
|
||||
lib:libQt5WebChannel$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtwebsockets
|
||||
lib:libQt5WebSockets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtxmlpatterns
|
||||
lib:libQt5XmlPatterns$secondaryArchSuffix = $portVersion compat >= 5
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libdouble_conversion$secondaryArchSuffix
|
||||
lib:libegl$secondaryArchSuffix
|
||||
lib:libflite$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libfontconfig$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgstapp_1.0$secondaryArchSuffix
|
||||
lib:libgstaudio_1.0$secondaryArchSuffix
|
||||
lib:libgstbadaudio_1.0$secondaryArchSuffix
|
||||
lib:libgstbadbase_1.0$secondaryArchSuffix
|
||||
lib:libgstbadvideo_1.0$secondaryArchSuffix
|
||||
lib:libgstreamer_1.0$secondaryArchSuffix
|
||||
lib:libgstvideo_1.0$secondaryArchSuffix
|
||||
lib:libicudata$secondaryArchSuffix
|
||||
lib:libicui18n$secondaryArchSuffix
|
||||
lib:libicuuc$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpcre2_16$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
cmd:qsystray
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
qt5${secondaryArchSuffix}_devel = $portVersion compat >= 5
|
||||
devel:libqt5$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtbase
|
||||
devel:libQt5Bootstrap$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Concurrent$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Core$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5DBus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Gui$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Network$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5OpenGL$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5OpenGLExtensions$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Sql$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Test$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Widgets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Xml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qt3d
|
||||
devel:libQt53DAnimation$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DCore$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DExtras$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DInput$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DLogic$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DQuick$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DQuickAnimation$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DQuickExtras$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DQuickInput$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DQuickRender$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DQuickScene2D$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt53DRender$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtcharts
|
||||
devel:libQt5Charts$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtconnectivity
|
||||
devel:libQt5Bluetooth$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Nfc$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtdatavis3d
|
||||
devel:libQt5DataVisualization$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtdeclarative
|
||||
devel:libQt5PacketProtocol$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Qml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QmlDebug$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Quick$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QuickControls2$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QuickParticles$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QuickTemplates2$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QuickTest$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5QuickWidgets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtgamepad
|
||||
devel:libQt5Gamepad$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtlocation
|
||||
devel:libQt5Location$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Positioning$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtmultimedia
|
||||
devel:libQt5Multimedia$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5MultimediaQuick_p$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5MultimediaWidgets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtnetworkauth
|
||||
devel:libQt5NetworkAuth$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtpurchasing
|
||||
devel:libQt5Purchasing$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtquick1
|
||||
devel:libQt5QmlDevTools$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5UiTools$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtremoteobjects
|
||||
devel:libQt5RemoteObjects$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtscript
|
||||
devel:libQt5Script$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5ScriptTools$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtscxml
|
||||
devel:libQt5Scxml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtsensors
|
||||
devel:libQt5Sensors$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtserialport
|
||||
devel:libQt5SerialBus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5SerialPort$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtspeech
|
||||
devel:libQt5TextToSpeech$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtsvg
|
||||
devel:libQt5Svg$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qttools
|
||||
devel:libQt5Designer$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5DesignerComponents$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5Help$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtwebchannel
|
||||
devel:libQt5WebChannel$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtwebsockets
|
||||
devel:libQt5WebSockets$secondaryArchSuffix = $portVersion compat >= 5
|
||||
# qtxmlpatterns
|
||||
devel:libQt5XmlPatterns$secondaryArchSuffix = $portVersion compat >= 5
|
||||
|
||||
devel:libQt5AccessibilitySupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5DeviceDiscoverySupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EventDispatcherSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5FbSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5FontDatabaseSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5PlatformCompositorSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5ServiceSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5ThemeSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EGLSupport$secondaryArchSuffix = $portVersion compat >= 5
|
||||
devel:libQt5EglFSDeviceIntegration$secondaryArchSuffix = $portVersion compat >= 5
|
||||
|
||||
cmd:assistant$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:canbusutil$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:designer$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:fixqt4headers.pl$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:lconvert$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:linguist$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:lrelease$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:lupdate$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:moc$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:pixeltool$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qcollectiongenerator$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qdbus$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qdbuscpp2xml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qdbusviewer$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qdbusxml2cpp$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qdoc$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qgltf$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qhelpconverter$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qhelpgenerator$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qlalr$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmake$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qml$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmlcachegen$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmleasing$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmlimportscanner$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmllint$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmlmin$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmlplugindump$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmlprofiler$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmlscene$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qmltestrunner$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qscxmlc$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qtattributionsscanner$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qtdiag$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qtpaths$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:qtplugininfo$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:rcc$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:repc$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:syncqt.pl$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:uic$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:xmlpatterns$secondaryArchSuffix = $portVersion compat >= 5
|
||||
cmd:xmlpatternsvalidator$secondaryArchSuffix = $portVersion compat >= 5
|
||||
"
|
||||
|
||||
# if libssl and libcrypto are not in REQUIRES_devel,
|
||||
# qmake will decide that there is no system OpenSSL support
|
||||
# and thus build Qt apps without any SSL support.
|
||||
REQUIRES_devel="
|
||||
qt5$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
lib:libcrypto$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_docs="
|
||||
qt5${secondaryArchSuffix}_docs = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES_docs="
|
||||
qt5${secondaryArchSuffix}_devel == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcrypto$secondaryArchSuffix >= 1.0.0
|
||||
devel:libdouble_conversion$secondaryArchSuffix
|
||||
devel:libegl$secondaryArchSuffix
|
||||
devel:libflite$secondaryArchSuffix
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libgstapp_1.0$secondaryArchSuffix
|
||||
devel:libgstaudio_1.0$secondaryArchSuffix
|
||||
devel:libgstbadaudio_1.0$secondaryArchSuffix
|
||||
devel:libgstbadbase_1.0$secondaryArchSuffix
|
||||
devel:libgstbadvideo_1.0$secondaryArchSuffix
|
||||
devel:libgstreamer_1.0$secondaryArchSuffix
|
||||
devel:libgstvideo_1.0$secondaryArchSuffix
|
||||
devel:libicuuc$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpcre2_16$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
devel:libssl$secondaryArchSuffix >= 1.0.0
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:bison
|
||||
cmd:cmp
|
||||
cmd:find
|
||||
cmd:flex
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:gperf
|
||||
cmd:grep
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
cmd:make
|
||||
cmd:perl
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python
|
||||
cmd:ruby
|
||||
cmd:sed
|
||||
cmd:xargs
|
||||
cmd:which
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
CPPFLAGS=-D_BSD_SOURCE ./configure \
|
||||
-prefix $prefix \
|
||||
-bindir $binDir \
|
||||
-libdir $libDir \
|
||||
-libexecdir $libExecDir \
|
||||
-headerdir $includeDir \
|
||||
-docdir $docDir/Qt5 \
|
||||
-datadir $dataDir/Qt5 \
|
||||
-archdatadir $dataDir/Qt5 \
|
||||
-hostdatadir $dataDir/Qt5 \
|
||||
-translationdir $dataDir/Qt5/translations \
|
||||
-sysconfdir $settingsDir \
|
||||
-testsdir $dataDir/Qt5/tests \
|
||||
-examplesdir $dataDir/Qt5/examples \
|
||||
-importdir $dataDir/Qt5/imports \
|
||||
-qmldir $dataDir/Qt5/qml \
|
||||
-plugindir $addOnsDir/Qt5 \
|
||||
-platform haiku-g++ -no-pch \
|
||||
-nomake examples -release -opensource \
|
||||
-confirm-license -no-iconv \
|
||||
-no-rpath -system-sqlite \
|
||||
-gstreamer 1.0 \
|
||||
-strip
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# build and install docs
|
||||
PATH=$PATH:$binDir
|
||||
LIBRARY_PATH=$LIBRARY_PATH:$libDir
|
||||
make $jobArgs docs
|
||||
make install_docs
|
||||
|
||||
rm $libDir/*.la
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libQt5Concurrent libQt5Core libQt5DBus libQt5Gui \
|
||||
libQt5Network libQt5NetworkAuth libQt5PrintSupport libQt5OpenGL \
|
||||
libQt5Sql libQt5Test libQt5Widgets libQt5Xml \
|
||||
libQt5XmlPatterns libQt5WebSockets \
|
||||
libQt5WebChannel libQt5Svg libQt5SerialBus \
|
||||
libQt5SerialPort libQt5Sensors libQt5ScriptTools libQt5Script \
|
||||
libQt5QuickWidgets libQt5QuickTest libQt5QuickParticles \
|
||||
libQt5Quick libQt5QuickControls2 libQt5QuickTemplates2 \
|
||||
libQt5Qml libQt5Positioning libQt5Nfc libQt5Gamepad \
|
||||
libQt5MultimediaWidgets libQt5MultimediaQuick_p libQt5Multimedia \
|
||||
libQt5Location libQt5Help libQt5Designer libQt5DesignerComponents \
|
||||
libQt5Bluetooth libQt5TextToSpeech \
|
||||
libQt5Charts libQt5DataVisualization libQt53DQuickInput \
|
||||
libQt53DQuickExtras libQt53DExtras \
|
||||
libQt53DQuick libQt53DLogic libQt53DInput libQt53DCore \
|
||||
libQt53DQuickRender libQt53DRender libQt53DQuickScene2D libQt5PacketProtocol \
|
||||
libQt5QmlDebug libQt5Scxml libQt5Purchasing libQt5AccessibilitySupport \
|
||||
libQt5DeviceDiscoverySupport libQt5EventDispatcherSupport \
|
||||
libQt5FbSupport libQt5FontDatabaseSupport \
|
||||
libQt5PlatformCompositorSupport libQt5ServiceSupport\
|
||||
libQt5ThemeSupport libQt53DAnimation libQt53DQuickAnimation \
|
||||
libQt5RemoteObjects libQt5EglFSDeviceIntegration libQt5EglSupport
|
||||
|
||||
cd $libDir
|
||||
for i in lib*.so.5.*;do
|
||||
ln -fs $i $(echo $i | cut -f1,2 -d.)
|
||||
done
|
||||
|
||||
rm -rf $libDir/fonts/ $prefix/tests
|
||||
rm -rf $dataDir/Qt5/demos $dataDir/Qt5/examples
|
||||
|
||||
mv -f $libDir/libQt5UiTools* $developLibDir/
|
||||
mv -f $libDir/libQt5QmlDevTools* $developLibDir/
|
||||
mv -f $libDir/libQt5Bootstrap* $developLibDir/
|
||||
mv -f $libDir/libQt5OpenGLExtensions* $developLibDir/
|
||||
|
||||
# fix mkspec for static libs
|
||||
grep -rl $dataDir/Qt5/mkspecs/modules/*.pri -e "staticlib" | xargs sed -i 's%$$QT_MODULE_LIB_BASE%'${developLibDir}'%g'
|
||||
|
||||
devCommands="assistant canbusutil designer fixqt4headers.pl linguist
|
||||
lconvert lrelease lupdate pixeltool qcollectiongenerator qdbusviewer
|
||||
qdbus qgltf qhelpconverter qhelpgenerator qml qmlcachegen qmleasing
|
||||
qmlimportscanner qmllint qmlmin qmlplugindump qmlprofiler qmlscene
|
||||
qmltestrunner qtattributionsscanner qtdiag qtpaths qtplugininfo
|
||||
xmlpatterns xmlpatternsvalidator
|
||||
moc qdbuscpp2xml qdbusxml2cpp qdoc qlalr qmake qscxmlc rcc syncqt.pl
|
||||
uic repc"
|
||||
|
||||
for i in $devCommands; do
|
||||
devPackageCommands="$devPackageCommands $binDir/$i"
|
||||
done
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="0"
|
||||
local VARIETY="B_APPV_DEVELOPMENT"
|
||||
|
||||
iconFiles="assistant designer linguist qdbusviewer qhelpconverter"
|
||||
for j in $iconFiles; do
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@VARIETY@|$VARIETY|" \
|
||||
$portDir/additional-files/$j.rdef.in > $sourceDir/$j.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/$j.rdef "$binDir/$j"
|
||||
mimeset -f "$binDir/$j"
|
||||
done
|
||||
|
||||
DIR_QT_DEVELOP_DESKBAR="${dataDir}/deskbar/menu/Applications/Qt"
|
||||
mkdir -p ${DIR_QT_DEVELOP_DESKBAR}
|
||||
addAppDeskbarSymlink $binDir/assistant "Qt/Assistant"
|
||||
addAppDeskbarSymlink $binDir/designer "Qt/Designer"
|
||||
addAppDeskbarSymlink $binDir/linguist "Qt/Linguist"
|
||||
addAppDeskbarSymlink $binDir/qdbusviewer "Qt/Qt D-Bus Viewer"
|
||||
addAppDeskbarSymlink $binDir/qhelpconverter "Qt/Qt Help Converter"
|
||||
|
||||
packageEntries docs \
|
||||
$docDir/Qt5
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$devPackageCommands \
|
||||
${DIR_QT_DEVELOP_DESKBAR} \
|
||||
$libDir/cmake \
|
||||
$dataDir/Qt5/mkspecs
|
||||
}
|
||||
Reference in New Issue
Block a user