git: 535243e68823 - main - science/dynare: fix build on non-amd64 64-bit architectures

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 08 Oct 2021 01:27:13 UTC
The branch main has been updated by pkubaj:

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

commit 535243e68823658e76d55c6120d11d6e1a8c2552
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-10-08 01:25:19 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-10-08 01:25:19 +0000

    science/dynare: fix build on non-amd64 64-bit architectures
    
    The current Makefile checks only for amd64.
    
    Tested for no breakage on amd64.
---
 science/dynare/files/patch-Makefile.am | 20 ++++++++++++++++++++
 science/dynare/files/patch-Makefile.in | 20 ++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/science/dynare/files/patch-Makefile.am b/science/dynare/files/patch-Makefile.am
new file mode 100644
index 000000000000..e111480f3b87
--- /dev/null
+++ b/science/dynare/files/patch-Makefile.am
@@ -0,0 +1,20 @@
+--- Makefile.am.orig	2021-10-07 22:16:41 UTC
++++ Makefile.am
+@@ -28,7 +28,7 @@ EXTRA_DIST = \
+ 	.dir-locals.el
+ 
+ all-local: preprocessor/src/dynare_m$(EXEEXT)
+-	if file preprocessor/src/dynare_m$(EXEEXT) | grep -q x86.64; then \
++	if file preprocessor/src/dynare_m$(EXEEXT) | grep -q 64-bit; then \
+ 	  ARCH="64"; \
+ 	else \
+ 	  ARCH="32"; \
+@@ -54,7 +54,7 @@ install-exec-local:
+ 	cp -r matlab $(DESTDIR)$(pkglibdir)
+ 	find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete
+ 	rm -rf $(DESTDIR)$(pkglibdir)/matlab/preprocessor*
+-	if file preprocessor/src/dynare_m | grep -q x86.64; then \
++	if file preprocessor/src/dynare_m | grep -q 64-bit; then \
+ 	  ARCH="64"; \
+ 	else \
+ 	  ARCH="32"; \
diff --git a/science/dynare/files/patch-Makefile.in b/science/dynare/files/patch-Makefile.in
new file mode 100644
index 000000000000..1c019819f32d
--- /dev/null
+++ b/science/dynare/files/patch-Makefile.in
@@ -0,0 +1,20 @@
+--- Makefile.in.orig	2021-10-07 22:16:41 UTC
++++ Makefile.in
+@@ -28,7 +28,7 @@ EXTRA_DIST = \
+ 	.dir-locals.el
+ 
+ all-local: preprocessor/src/dynare_m$(EXEEXT)
+-	if file preprocessor/src/dynare_m$(EXEEXT) | grep -q x86.64; then \
++	if file preprocessor/src/dynare_m$(EXEEXT) | grep -q 64-bit; then \
+ 	  ARCH="64"; \
+ 	else \
+ 	  ARCH="32"; \
+@@ -54,7 +54,7 @@ install-exec-local:
+ 	cp -r matlab $(DESTDIR)$(pkglibdir)
+ 	find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete
+ 	rm -rf $(DESTDIR)$(pkglibdir)/matlab/preprocessor*
+-	if file preprocessor/src/dynare_m | grep -q x86.64; then \
++	if file preprocessor/src/dynare_m | grep -q 64-bit; then \
+ 	  ARCH="64"; \
+ 	else \
+ 	  ARCH="32"; \