git: df92eba69a94 - main - cad/electric: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jul 2023 15:04:19 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=df92eba69a94d2a7eb83472f2dd9f99fd38ef5db commit df92eba69a94d2a7eb83472f2dd9f99fd38ef5db Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-26 15:03:37 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-26 15:04:03 +0000 cad/electric: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- cad/electric/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cad/electric/Makefile b/cad/electric/Makefile index de787f23236b..f5c593f45fd5 100644 --- a/cad/electric/Makefile +++ b/cad/electric/Makefile @@ -14,7 +14,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING GNU_CONFIGURE= yes -USES= motif +USES= motif xorg +USE_XORG= ice sm x11 xext xmu xt FEATURES= MOTIF @@ -28,6 +29,12 @@ NLS_USES= gettext NLS_VARS= FEATURES+=INT OPTIMIZED_CFLAGS_VARS= FEATURES+=OPT +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types -Dregister= +.endif + post-patch: @${REINPLACE_CMD} -e 's|/usr/share/electric/lib/|${DATADIR}/lib/|; \ s|/usr/share/electric/doc/|${DOCSDIR}/|; \