git: d02513634783 - main - www/node19: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 24 Apr 2023 20:34:29 UTC
The branch main has been updated by pkubaj:

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

commit d0251363478349b761639bb1f35e161b7401ca3c
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-04-24 17:31:43 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-04-24 20:34:01 +0000

    www/node19: fix build on powerpc64*
---
 www/node19/files/extra-patch-common.gypi | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/www/node19/files/extra-patch-common.gypi b/www/node19/files/extra-patch-common.gypi
index 8e817a2959c9..02db35b1a46c 100644
--- a/www/node19/files/extra-patch-common.gypi
+++ b/www/node19/files/extra-patch-common.gypi
@@ -1,13 +1,11 @@
---- common.gypi.orig	2019-10-01 15:32:40.000000000 +0200
-+++ common.gypi	2019-10-16 12:47:09.236138000 +0200
-@@ -390,8 +390,8 @@
+--- common.gypi.orig	2023-04-12 04:09:10 UTC
++++ common.gypi
+@@ -426,7 +426,7 @@
              'ldflags': [ '-m32' ],
            }],
-           [ 'target_arch=="ppc64" and OS!="aix"', {
+           [ 'target_arch=="ppc64" and OS not in "aix os400"', {
 -            'cflags': [ '-m64', '-mminimal-toc' ],
--            'ldflags': [ '-m64' ],
 +            'cflags': [ '-m64' ],
-+            'ldflags': [ '-m64' ],
+             'ldflags': [ '-m64' ],
            }],
-           [ 'target_arch=="s390x"', {
-             'cflags': [ '-m64', '-march=z196' ],
+           [ 'target_arch=="s390x" and OS=="linux"', {