svn commit: r498219 - head/x11/xsettingsd

Mark Linimon linimon at FreeBSD.org
Sun Apr 7 00:49:33 UTC 2019


Author: linimon
Date: Sun Apr  7 00:49:32 2019
New Revision: 498219
URL: https://svnweb.freebsd.org/changeset/ports/498219

Log:
  Adjust compiler flags on GCC-based architectures to fix:
  
    cc1plus: error: unrecognized command line option "-Wno-narrowing"
  
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/x11/xsettingsd/Makefile

Modified: head/x11/xsettingsd/Makefile
==============================================================================
--- head/x11/xsettingsd/Makefile	Sun Apr  7 00:46:20 2019	(r498218)
+++ head/x11/xsettingsd/Makefile	Sun Apr  7 00:49:32 2019	(r498219)
@@ -22,10 +22,17 @@ PLIST_FILES=	bin/dump_xsettings \
 		man/man1/dump_xsettings.1.gz \
 		man/man1/xsettingsd.1.gz
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+pre-configure:
+	${REINPLACE_CMD} -e 's|-Wno-narrowing||' ${WRKSRC}/SConstruct
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/dump_xsettings ${WRKSRC}/xsettingsd \
 		${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/dump_xsettings.1 ${WRKSRC}/xsettingsd.1 \
 		${STAGEDIR}${MAN1PREFIX}/man/man1
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list