svn commit: r486020 - head/net/mediastreamer
Mark Linimon
linimon at FreeBSD.org
Tue Nov 27 16:21:02 UTC 2018
Author: linimon
Date: Tue Nov 27 16:21:00 2018
New Revision: 486020
URL: https://svnweb.freebsd.org/changeset/ports/486020
Log:
-Wno-format-truncation is not supported by base GCC and needs to be
removed to successfully build on architectures that use GCC in base.
PR: 233541
Submitted by: Piotr Kubaj
Modified:
head/net/mediastreamer/Makefile
Modified: head/net/mediastreamer/Makefile
==============================================================================
--- head/net/mediastreamer/Makefile Tue Nov 27 16:19:25 2018 (r486019)
+++ head/net/mediastreamer/Makefile Tue Nov 27 16:21:00 2018 (r486020)
@@ -19,7 +19,7 @@ LIB_DEPENDS= libbctoolbox.so:net/bctoolbox \
libsrtp2.so:net/libsrtp2 \
libbzrtp.so:security/bzrtp
-USES= cmake:outsource python:build
+USES= cmake:outsource compiler python:build
USE_LDCONFIG= yes
CMAKE_ARGS= -DENABLE_ALSA=NO -DENABLE_BV16=NO -DENABLE_DOC=NO \
@@ -87,8 +87,13 @@ XVIDEO_IMPLIES= VIDEO
XVIDEO_CMAKE_BOOL= ENABLE_X11 ENABLE_XV
XVIDEO_USE= XORG=xorgproto,x11,xv
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} 's,gsm/gsm\.h,gsm.h,' \
${WRKSRC}/cmake/FindGSM.cmake ${WRKSRC}/src/audiofilters/gsm.c
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+ @${REINPLACE_CMD} '/-Wno-format-truncation/d' ${WRKSRC}/CMakeLists.txt
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list