Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2018 16:21:01 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r486020 - head/net/mediastreamer
Message-ID:  <201811271621.wARGL1CC025325@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811271621.wARGL1CC025325>