Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2021 10:37:36 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: dbb0b7482f87 - main - math/wxmaxima: fix build on powerpc
Message-ID:  <202107151037.16FAbaR6080829@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dbb0b7482f87c180be139b72925149eb7c4419cb

commit dbb0b7482f87c180be139b72925149eb7c4419cb
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-07-15 10:37:31 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-07-15 10:37:31 +0000

    math/wxmaxima: fix build on powerpc
    
    /usr/bin/c++ -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D__WXGTK__ -Isrc -isystem /usr/local/lib/wx/include/gtk3-unicode-3.0 -isystem /usr/local/include/wx-3.0 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pthread -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=gnu++11 -MD -MT src/CMakeFiles/wxmaxima.dir/SlideShowCell.cpp.o -MF src/CMakeFiles/wxmaxima.dir/SlideShowCell.cpp.o.d -o src/CMakeFiles/wxmaxima.dir/SlideShowCell.cpp.o -c /wrkdirs/usr/ports/math/wxmaxima/work/wxmaxima-Version-20.04.0/src/SlideShowCell.cpp
    In file included from /wrkdirs/usr/ports/math/wxmaxima/work/wxmaxima-Version-20.04.0/src/SlideShowCell.cpp:32:
    In file included from /wrkdirs/usr/ports/math/wxmaxima/work/wxmaxima-Version-20.04.0/src/SlideShowCell.h:33:
    In file included from /wrkdirs/usr/ports/math/wxmaxima/work/wxmaxima-Version-20.04.0/src/Image.h:33:
    src/Version.h:5:6: error: invalid token at start of a preprocessor expression
---
 math/wxmaxima/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/math/wxmaxima/Makefile b/math/wxmaxima/Makefile
index 3db33979c6b7..426bfa123a40 100644
--- a/math/wxmaxima/Makefile
+++ b/math/wxmaxima/Makefile
@@ -31,4 +31,10 @@ OPTIONS_SUB=	yes
 NLS_USES=	gettext
 NLS_EXTRA_PATCHES_OFF=	${PATCHDIR}/extra-patch-CMakeLists.txt
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} != powerpc
+EXTRA_PATCHES+=	${PATCHDIR}/extra-patch-src_Version.h.cin
+.endif
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107151037.16FAbaR6080829>