- Fix build with clang

This commit is contained in:
Dmitry Marakasov 2015-03-01 15:07:02 +00:00
parent 5a4f078dc0
commit 00fa54adec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=380202

View File

@ -14,7 +14,7 @@ BUILD_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
USE_CSTD= gnu89
USES= gmake
USES= compiler:features gmake
WRKSRC= ${WRKDIR}/${PORTNAME}/konference
PLIST_FILES= lib/asterisk/modules/app_konference.so
@ -22,4 +22,11 @@ PLIST_FILES= lib/asterisk/modules/app_konference.so
ONLY_FOR_ARCHS= amd64 arm i386 ia64
ONLY_FOR_ARCHS_REASON= not yet ported to this architecture
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 36
post-patch:
@${REINPLACE_CMD} -e 's|-fsingle-precision-constant||' ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>