git: eb4fb3c9f81e - main - devel/systemc: add powerpc64* support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Jun 2026 07:48:23 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=eb4fb3c9f81e33abe552482401eabe99cd84be20
commit eb4fb3c9f81e33abe552482401eabe99cd84be20
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-06-08 05:13:35 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-06-11 07:47:54 +0000
devel/systemc: add powerpc64* support
QuickThreads has no ppc64 coroutine asm; use the pthreads backend there.
---
devel/systemc/Makefile | 8 +++++++-
devel/systemc/files/patch-configure.ac | 13 +++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/devel/systemc/Makefile b/devel/systemc/Makefile
index 622421b2f18c..1ffe19f922ba 100644
--- a/devel/systemc/Makefile
+++ b/devel/systemc/Makefile
@@ -9,7 +9,7 @@ WWW= https://www.accellera.org/downloads/standards/systemc
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= aarch64 amd64 i386
+ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON= configure: error: sorry...architecture not supported
USES= autoreconf compiler:c++17-lang gmake libtool
@@ -27,4 +27,10 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc64*}
+CONFIGURE_ARGS+= --enable-pthreads
+.endif
+
.include <bsd.port.mk>
diff --git a/devel/systemc/files/patch-configure.ac b/devel/systemc/files/patch-configure.ac
new file mode 100644
index 000000000000..75d9fe169fdc
--- /dev/null
+++ b/devel/systemc/files/patch-configure.ac
@@ -0,0 +1,13 @@
+--- configure.ac.orig 2026-06-07 11:34:19 UTC
++++ configure.ac
+@@ -164,6 +164,10 @@ AS_CASE([${TARGET_ARCH}],
+ [TARGET_ARCH="linuxaarch64"
+ QT_ARCH="aarch64"
+ CPU_ARCH=""],
++ [powerpc64le|powerpc64], dnl
++ [TARGET_ARCH="${TARGET_ARCH}64"
++ QT_ARCH="powerpc64"
++ CPU_ARCH=""],
+ [AC_MSG_ERROR("sorry...architecture not supported")])
+
+ # check compiler