diff --git a/net-p2p/opendchub/Makefile b/net-p2p/opendchub/Makefile index 7a6b69e944a5..4cf53747c3be 100644 --- a/net-p2p/opendchub/Makefile +++ b/net-p2p/opendchub/Makefile @@ -1,31 +1,37 @@ PORTNAME= opendchub PORTVERSION= 0.8.3 CATEGORIES= net-p2p MASTER_SITES= SF/${PORTNAME}/Open%20DC%20Hub/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Unofficial Unix version of the Direct Connect Hub software WWW= http://opendchub.sourceforge.net/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USES= perl5 gmake localbase ssl GNU_CONFIGURE= yes # Fix build with clang 11 CFLAGS+= -fcommon OPTIONS_DEFINE= DOCS PORTDOCS= README configfiles general scriptdoc PLIST_FILES= bin/${PORTNAME} +.include + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + pre-install: @${CHMOD} a+rx ${WRKSRC}/install-sh post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/Documentation/* ${STAGEDIR}${DOCSDIR} .include