svn commit: r488060 - head/www/libepc

Mark Linimon linimon at FreeBSD.org
Sat Dec 22 03:33:23 UTC 2018


Author: linimon
Date: Sat Dec 22 03:33:22 2018
New Revision: 488060
URL: https://svnweb.freebsd.org/changeset/ports/488060

Log:
  #pragma GCC diagnostic needs to be removed to build on GCC-based
  architectures.
  
  PR:		234159
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/www/libepc/Makefile

Modified: head/www/libepc/Makefile
==============================================================================
--- head/www/libepc/Makefile	Sat Dec 22 03:29:34 2018	(r488059)
+++ head/www/libepc/Makefile	Sat Dec 22 03:33:22 2018	(r488060)
@@ -25,4 +25,10 @@ USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 
+post-patch:
+.if exists(/usr/lib/libstdc++.so)
+	${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
+		${WRKSRC}/examples/simple-publisher.c
+.endif
+
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list