git: 154acf8af142 - main - x11-servers/xorg-server: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Thu, 04 Aug 2022 16:34:07 UTC
The branch main has been updated by pkubaj:

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

commit 154acf8af14201d5d13afb931826ce2bee924d54
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-08-04 16:31:54 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-08-04 16:32:44 +0000

    x11-servers/xorg-server: fix build on powerpc64*
    
    ld: error: undefined symbol: xf86EnableIO
    >>> referenced by xf86Configure.c
    >>>               libxorg_common.a.p/xf86Configure.c.o:(DoConfigure) in archive hw/xfree86/common/libxorg_common.a
---
 .../xorg-server/files/patch-hw_xfree86_os-support_meson.build | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_meson.build b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_meson.build
new file mode 100644
index 000000000000..400068d37709
--- /dev/null
+++ b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_meson.build
@@ -0,0 +1,11 @@
+--- hw/xfree86/os-support/meson.build.orig	2022-08-04 15:48:52 UTC
++++ hw/xfree86/os-support/meson.build
+@@ -113,7 +113,7 @@ elif host_machine.system().endswith('bsd')
+         endif
+     elif host_machine.cpu_family() == 'arm'
+         srcs_xorg_os_support += 'bsd/arm_video.c'
+-    elif host_machine.cpu_family() == 'powerpc'
++    elif host_machine.cpu_family() == 'powerpc' or host_machine.cpu_family() == 'ppc64'
+         srcs_xorg_os_support += 'bsd/ppc_video.c'
+     elif host_machine.cpu_family() == 'sparc64'
+         srcs_xorg_os_support += 'bsd/sparc64_video.c'