mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
cad/electric: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c3aacd80a0
commit
df92eba69a
1 changed files with 8 additions and 1 deletions
|
@ -14,7 +14,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
|
||||||
USES= motif
|
USES= motif xorg
|
||||||
|
USE_XORG= ice sm x11 xext xmu xt
|
||||||
|
|
||||||
FEATURES= MOTIF
|
FEATURES= MOTIF
|
||||||
|
|
||||||
|
@ -28,6 +29,12 @@ NLS_USES= gettext
|
||||||
NLS_VARS= FEATURES+=INT
|
NLS_VARS= FEATURES+=INT
|
||||||
OPTIMIZED_CFLAGS_VARS= FEATURES+=OPT
|
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:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/usr/share/electric/lib/|${DATADIR}/lib/|; \
|
@${REINPLACE_CMD} -e 's|/usr/share/electric/lib/|${DATADIR}/lib/|; \
|
||||||
s|/usr/share/electric/doc/|${DOCSDIR}/|; \
|
s|/usr/share/electric/doc/|${DOCSDIR}/|; \
|
||||||
|
|
Loading…
Add table
Reference in a new issue