1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

cad/electric: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-07-26 17:03:37 +02:00
parent c3aacd80a0
commit df92eba69a

View File

@ -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}/|; \