1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

cad/librnd: use a cleaner way to unbreak the build on recent -CURRENT

Relax the strictness of scconfig-based checks for various functions
as it involves initializing `int (*)()' pointer with an incompatible
expression which is no longer allowed by modern compilers.

Fixes:	474cdc3f85
This commit is contained in:
Alexey Dokuchaev 2023-09-06 14:55:20 +00:00
parent 1928355b9d
commit 512d100d03

View File

@ -68,15 +68,6 @@ STROKE_CONFIGURE_OFF= --disable-stroke
WGET_RUN_DEPENDS= wget:ftp/wget
WGET_CONFIGURE_OFF= --disable-lib_wget
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
USES+= llvm:max=15
CC= clang${LLVM_VERSION}
CPP= clang-cpp${LLVM_VERSION}
CXX= clang++${LLVM_VERSION}
.endif
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK4} || ${PORT_OPTIONS:MMOTIF}
@ -85,6 +76,10 @@ PLIST_SUB+= GUI=""
PLIST_SUB+= GUI="@comment "
.endif
post-patch:
@${ECHO_CMD} 'USER_CFLAGS += -DSCCONFIG_ACCEPT_IMPLICIT' \
>> ${WRKSRC}/scconfig/Makefile
pre-configure:
${REINPLACE_CMD} \
-e 's,%%LOCALBASE%%,${LOCALBASE},' \