summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-07-22 15:25:04 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-07-22 15:25:04 +0000
commitbcf0b40a66d0e510291a8a5c9579d10020d334a7 (patch)
tree7e1529822a239ae497ec4260511e6de6a0859086 /finance
parent- Update to 0.99.26 (diff)
- Fix build
PR: 180689 Submitted by: ports fury
Notes
Notes: svn path=/head/; revision=323465
Diffstat (limited to 'finance')
-rw-r--r--finance/qhacc/Makefile4
-rw-r--r--finance/qhacc/files/patch-gui__graphing__BudgetingWindow.cpp14
2 files changed, 16 insertions, 2 deletions
diff --git a/finance/qhacc/Makefile b/finance/qhacc/Makefile
index 0791fa79ab66..240629ae6b41 100644
--- a/finance/qhacc/Makefile
+++ b/finance/qhacc/Makefile
@@ -16,13 +16,13 @@ LIB_DEPENDS= qwt6:${PORTSDIR}/x11-toolkits/qwt6
OPTIONS_DEFINE= DOCS
-BROKEN= Does not build
-
USE_QT4= corelib gui sql moc_build qmake_build rcc_build uic_build
USE_GCC= 4.6+
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
+CXXFLAGS+= -fpermissive
+
DESKTOP_ENTRIES="QHacc" "" "" "${PORTNAME}" "" ""
.include <bsd.port.options.mk>
diff --git a/finance/qhacc/files/patch-gui__graphing__BudgetingWindow.cpp b/finance/qhacc/files/patch-gui__graphing__BudgetingWindow.cpp
new file mode 100644
index 000000000000..14cdb33d3964
--- /dev/null
+++ b/finance/qhacc/files/patch-gui__graphing__BudgetingWindow.cpp
@@ -0,0 +1,14 @@
+--- gui/graphing/BudgetingWindow.cpp.orig
++++ gui/graphing/BudgetingWindow.cpp
+@@ -120,7 +120,11 @@
+ }
+ }
+
++#if defined(QWT_VERSION) && QWT_VERSION>=0x060100
++ const QwtScaleDiv * div = &widget.qwtPlot->axisScaleDiv( QwtPlot::xBottom );
++#else
+ QwtScaleDiv * div = widget.qwtPlot->axisScaleDiv( QwtPlot::xBottom );
++#endif
+ div->setInterval( 0, drawer->count() );
+ widget.qwtPlot->setAxisMaxMajor( QwtPlot::xBottom, drawer->count() );
+