aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2026-06-08 05:13:35 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2026-06-11 07:47:54 +0000
commiteb4fb3c9f81e33abe552482401eabe99cd84be20 (patch)
tree9fc6a37d95aaba1202f20e2fdfde70c35fa68a87
parentdfe9b98e012db36ca520e4d2c2a95a877695d5e4 (diff)
devel/systemc: add powerpc64* support
QuickThreads has no ppc64 coroutine asm; use the pthreads backend there.
-rw-r--r--devel/systemc/Makefile8
-rw-r--r--devel/systemc/files/patch-configure.ac13
2 files changed, 20 insertions, 1 deletions
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