renderdoc: fix build w/ qt5-5.15.0 (QPainterPath)

This commit is contained in:
Jürgen Buchmüller 2020-08-31 19:51:25 +02:00
parent d9b2c37cc8
commit 8f271bdc71
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,40 @@
--- a/qrenderdoc/Widgets/RangeHistogram.cpp 2019-04-29 11:50:14.000000000 +0200
+++ b/qrenderdoc/Widgets/RangeHistogram.cpp 2020-08-31 19:10:09.169423623 +0200
@@ -27,6 +27,7 @@
#include <math.h>
#include <QMouseEvent>
#include <QPainter>
+#include <QPainterPath>
RangeHistogram::RangeHistogram(QWidget *parent) : QWidget(parent)
{
--- a/qrenderdoc/Styles/RDTweakedNativeStyle/RDTweakedNativeStyle.cpp.orig 2019-04-29 11:50:14.000000000 +0200
+++ b/qrenderdoc/Styles/RDTweakedNativeStyle/RDTweakedNativeStyle.cpp 2020-08-31 19:14:26.336436890 +0200
@@ -26,6 +26,7 @@
#include <QDebug>
#include <QFontMetrics>
#include <QPainter>
+#include <QPainterPath>
#include <QPen>
#include <QStyleOption>
--- a/qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManager.cpp 2019-04-29 11:50:14.000000000 +0200
+++ b/qrenderdoc/3rdparty/toolwindowmanager/ToolWindowManager.cpp 2020-08-31 19:15:33.841440372 +0200
@@ -32,6 +32,7 @@
#include <QMimeData>
#include <QMouseEvent>
#include <QPainter>
+#include <QPainterPath>
#include <QScreen>
#include <QSplitter>
#include <QTabBar>
--- a/qrenderdoc/Windows/TimelineBar.cpp 2019-04-29 11:50:14.000000000 +0200
+++ b/qrenderdoc/Windows/TimelineBar.cpp 2020-08-31 19:16:36.087443584 +0200
@@ -25,6 +25,7 @@
#include "TimelineBar.h"
#include <QMouseEvent>
#include <QPainter>
+#include <QPainterPath>
#include <QScrollBar>
#include <QWheelEvent>
#include "Code/QRDUtils.h"

View File

@ -18,6 +18,10 @@ homepage="https://github.com/baldurk/renderdoc"
distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz" distfiles="https://github.com/baldurk/${pkgname}/archive/v${version}.tar.gz"
checksum=9a78951f386fb7c3ecf7df6919d300db59719d14f0621438963ae30a75d33677 checksum=9a78951f386fb7c3ecf7df6919d300db59719d14f0621438963ae30a75d33677
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" libexecinfo-devel"
LDFLAGS+=" -lexecinfo"
fi
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) broken="This package uses execinfo.h which is not available on musl" ;; *-musl) broken="This package uses execinfo.h which is not available on musl" ;;
ppc64*) ;; ppc64*) ;;