Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2025 08:58:28 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: 1c59f1735680 - main - x11/pixman: fix build on powerpc*
Message-ID:  <202501130858.50D8wSbE056334@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=1c59f17356804707b48575f9e5153928f718c1b7

commit 1c59f17356804707b48575f9e5153928f718c1b7
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-13 08:56:12 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-13 08:58:17 +0000

    x11/pixman: fix build on powerpc*
    
    1. Clang complains about -mabi=altivec on all powerpc*.
    2. There's no libomp for powerpc.
---
 x11/pixman/Makefile                |  3 +++
 x11/pixman/files/patch-meson.build | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/x11/pixman/Makefile b/x11/pixman/Makefile
index 25bc5725abc3..80b8c0f070c0 100644
--- a/x11/pixman/Makefile
+++ b/x11/pixman/Makefile
@@ -58,6 +58,9 @@ MESON_ARGS+=	-Dvmx=enabled
 .else
 MESON_ARGS+=	-Dvmx=disabled
 .endif
+.if ${ARCH} == powerpc
+MESON_ARGS+=	-Dopenmp=disabled
+.endif
 .if ${ARCH} == riscv64
 MESON_ARGS+=	-Drvv=enabled
 .else
diff --git a/x11/pixman/files/patch-meson.build b/x11/pixman/files/patch-meson.build
new file mode 100644
index 000000000000..a89973f40339
--- /dev/null
+++ b/x11/pixman/files/patch-meson.build
@@ -0,0 +1,11 @@
+--- meson.build.orig	2025-01-13 07:25:33 UTC
++++ meson.build
+@@ -226,7 +226,7 @@ have_vmx = false
+ 
+ use_vmx = get_option('vmx')
+ have_vmx = false
+-vmx_flags = ['-maltivec', '-mabi=altivec']
++vmx_flags = ['-maltivec']
+ if not use_vmx.disabled()
+   if host_machine.cpu_family().startswith('ppc')
+     if cc.compiles('''



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