git: 5a764ac25deb - main - math/openblas: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 23 Jun 2024 09:26:01 UTC
The branch main has been updated by pkubaj:

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

commit 5a764ac25debbcbd89b260ed368140eb2c216e75
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-06-23 09:13:14 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-06-23 09:25:37 +0000

    math/openblas: fix build on powerpc64*
    
    gemv.c:229:31: error: 'GEMM_MULTITHREAD_THRESHOLD' undeclared (first use in this function)
      229 |   if ( 1L * m * n < 115200L * GEMM_MULTITHREAD_THRESHOLD )
---
 math/openblas/files/patch-param.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/math/openblas/files/patch-param.h b/math/openblas/files/patch-param.h
new file mode 100644
index 000000000000..0362153e41f1
--- /dev/null
+++ b/math/openblas/files/patch-param.h
@@ -0,0 +1,11 @@
+--- param.h.orig	2024-06-23 08:32:52 UTC
++++ param.h
+@@ -2553,7 +2553,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILI
+ 
+ #endif
+ 
+-#if defined(POWER9) && defined(OS_LINUX)
++#if defined(POWER9) && (defined(OS_LINUX) || defined(OS_FREEBSD))
+ 
+ #define SNUMOPT		16
+ #define DNUMOPT		8