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