multimedia/svt-*: ignore __linux__ for third_party libs

Unlike SVT-* encoders GoogleTest properly supports FreeBSD and in fact
won't build if using Linux conditionals.
This commit is contained in:
Jan Beich 2019-02-28 00:58:00 +00:00
parent 6e3460247d
commit af3ec5900c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494114
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ post-patch:
@${REINPLACE_CMD} -i .opsys 's/Linux/${OPSYS}/' \
${WRKSRC}/CMakeLists.txt \
${WRKSRC}/Source/Lib/*/CMakeLists.txt
@${GREP} -Flr '__linux' ${WRKSRC} | ${XARGS} \
@${GREP} --exclude='*/third_party/*' -Flr '__linux' ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -i .opsys -E 's/__linux(__)?/__${OPSYS}__/'
# Avoid -msse4.1 for (unused) function not under Source/Lib/ASM_SSE4_1/
@${REINPLACE_CMD} -e '/_sse4_1/,/}/d; /smmintrin\.h/d' \

View File

@ -52,7 +52,7 @@ post-patch:
@${REINPLACE_CMD} -i .opsys 's/Linux/${OPSYS}/' \
${WRKSRC}/CMakeLists.txt \
${WRKSRC}/Source/Lib/*/CMakeLists.txt
@${GREP} -Flr '__linux' ${WRKSRC} | ${XARGS} \
@${GREP} --exclude='*/third_party/*' -Flr '__linux' ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -i .opsys -E 's/__linux(__)?/__${OPSYS}__/'
.include <bsd.port.mk>

View File

@ -47,7 +47,7 @@ post-patch:
@${REINPLACE_CMD} -i .opsys 's/Linux/${OPSYS}/' \
${WRKSRC}/CMakeLists.txt \
${WRKSRC}/Source/Lib/*/CMakeLists.txt
@${GREP} -Flr '__linux' ${WRKSRC} | ${XARGS} \
@${GREP} --exclude='*/third_party/*' -Flr '__linux' ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -i .opsys -E 's/__linux(__)?/__${OPSYS}__/'
.include <bsd.port.mk>