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:
parent
6e3460247d
commit
af3ec5900c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494114
@ -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' \
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user