git: edd57deff8b8 - main - science/mbdyn: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 08 Nov 2021 15:57:51 UTC
The branch main has been updated by pkubaj:

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

commit edd57deff8b804e841b8eeec02cd2a608b672415
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-08 15:52:33 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-08 15:52:33 +0000

    science/mbdyn: fix build on powerpc64*
    
    In file included from bulk.cc:35:
    In file included from ./dataman.h:47:
    In file included from ./mbpar.h:107:
    In file included from ./../../libraries/libmbutil/parsinc.h:108:
    ./../../libraries/libmbutil/parser.h:275:3: error: expected identifier
                    FIRSTARG,
                    ^
    /usr/include/machine/frame.h:112:18: note: expanded from macro 'FIRSTARG'
                            ^
    1 error generated.
---
 science/mbdyn/Makefile                                 |  1 -
 science/mbdyn/files/patch-libraries_libmbutil_parser.h | 11 +++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/science/mbdyn/Makefile b/science/mbdyn/Makefile
index db85665031c5..00691d9627c9 100644
--- a/science/mbdyn/Makefile
+++ b/science/mbdyn/Makefile
@@ -13,7 +13,6 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 BROKEN_powerpc=		Does not compile on powerpc
-BROKEN_powerpc64=	fails to compile: libraries/libmbutil/parser.h:275:3: error: expected identifier
 
 BUILD_DEPENDS=	libatomic_ops>0:devel/libatomic_ops
 LIB_DEPENDS=	libltdl.so:devel/libltdl \
diff --git a/science/mbdyn/files/patch-libraries_libmbutil_parser.h b/science/mbdyn/files/patch-libraries_libmbutil_parser.h
new file mode 100644
index 000000000000..fc33a9adaf1e
--- /dev/null
+++ b/science/mbdyn/files/patch-libraries_libmbutil_parser.h
@@ -0,0 +1,11 @@
+--- libraries/libmbutil/parser.h.orig	2021-11-08 01:16:41 UTC
++++ libraries/libmbutil/parser.h
+@@ -272,7 +272,7 @@ class HighParser { (public)
+ 		UNKNOWN = -1,
+ 		
+ 		DESCRIPTION,
+-		FIRSTARG,
++		MBDYN_FIRSTARG,
+ 		ARG,
+ 		LASTARG,
+ 		NOARGS,