1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Fix build with clang 3.4 on -CURRENT

This commit is contained in:
Ganael LAPLANCHE 2014-03-26 07:35:22 +00:00
parent ecbb83e044
commit c02145518f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349230

View File

@ -18,11 +18,13 @@ ONLY_FOR_ARCHS= amd64 i386 ia64
ONLY_FOR_ARCHS_REASON= has not been ported to this platform
USE_LDCONFIG= yes
USES= gmake
USES= compiler gmake
ALL_TARGET= default
WRKSRC= ${WRKDIR}/${DISTNAME:S/_src//}
.include <bsd.port.pre.mk>
post-extract:
.if ${CC} != "gcc"
@${CP} ${WRKSRC}/build/FreeBSD.gcc.inc ${WRKSRC}/build/FreeBSD.${CC}.inc
@ -32,6 +34,10 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' -e 's|g++|${CXX}|g' \
${WRKSRC}/build/FreeBSD.${CC}.inc
.if ${COMPILER_TYPE} != "gcc"
@${REINPLACE_CMD} -e 's| -fno-schedule-insns2||g' \
${WRKSRC}/build/FreeBSD.${CC}.inc
.endif
do-install:
cd ${WRKSRC}; \
@ -46,4 +52,4 @@ do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/tbb/; \
cd include/tbb/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/tbb/
.include <bsd.port.mk>
.include <bsd.port.post.mk>