git: 1d6f11300683 - main - finance/kmymoney: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Sep 2022 11:26:50 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1d6f1130068376df13f407f2a4d1762327af894f
commit 1d6f1130068376df13f407f2a4d1762327af894f
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-09-22 10:14:00 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-09-22 10:14:00 +0000
finance/kmymoney: fix build on powerpc
ld: error: undefined symbol: __multi3
>>> referenced by mymoneyforecast.cpp
>>> kmymoney/mymoney/CMakeFiles/kmm_mymoney.dir/mymoneyforecast.cpp.o:(MyMoneyForecastPrivate::calculateAccountTrendList())
>>> did you mean: __muldi3
>>> defined in: /usr/lib/libgcc_s.so
---
finance/kmymoney/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/finance/kmymoney/Makefile b/finance/kmymoney/Makefile
index a7b4484d464d..8ed70f25531a 100644
--- a/finance/kmymoney/Makefile
+++ b/finance/kmymoney/Makefile
@@ -13,8 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSES/GPL-2.0-or-later.txt
LIB_DEPENDS= libalkimia5.so:finance/alkimia \
libKChart.so:graphics/kdiagram
-USES= cmake compiler:c++14-lang desktop-file-utils gettext kde:5 \
- pkgconfig qt:5 shared-mime-info shebangfix tar:xz
+USES= cmake desktop-file-utils gettext kde:5 pkgconfig qt:5 \
+ shared-mime-info shebangfix tar:xz
USE_QT= buildtools:build core dbus gui network printsupport qmake:build \
sql testlib:build xml webkit widgets
USE_KDE= activities archive auth bookmarks codecs completion config \
@@ -94,6 +94,14 @@ WOOB_USES= python:3.7+
WOOB_USE= qt=concurrent
WOOB_CMAKE_BOOL= ENABLE_WOOB
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+= compiler:gcc-c++11-lib
+.else
+USES+= compiler:c++14-lang
+.endif
+
.if defined(MAINTAINER_MODE)
# Apply additional substitutions to pkg-plist generated by the 'makeplist' target
create-plist: stage