diff --git a/devel/systemc/Makefile b/devel/systemc/Makefile index 622421b2f18c..1ffe19f922ba 100644 --- a/devel/systemc/Makefile +++ b/devel/systemc/Makefile @@ -1,30 +1,36 @@ PORTNAME= systemc DISTVERSION= 3.0.1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ classes and macros for describing complex hardware systems 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 USE_CXXSTD= c++17 # needs to match that of cad/verilator, to avoid mismatches like https://github.com/verilator/verilator/issues/4499 USE_GITHUB= yes GH_ACCOUNT= accellera-official USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-unix-layout=yes INSTALL_TARGET= install-strip PORTDOCS= * OPTIONS_DEFINE= DOCS +.include + +.if ${ARCH:Mpowerpc64*} +CONFIGURE_ARGS+= --enable-pthreads +.endif + .include 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