svn commit: r498220 - branches/2019Q2/x11/xsettingsd

Mark Linimon linimon at FreeBSD.org
Sun Apr 7 00:54:36 UTC 2019


Author: linimon
Date: Sun Apr  7 00:54:35 2019
New Revision: 498220
URL: https://svnweb.freebsd.org/changeset/ports/498220

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

Modified:
  branches/2019Q2/x11/xsettingsd/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/x11/xsettingsd/Makefile
==============================================================================
--- branches/2019Q2/x11/xsettingsd/Makefile	Sun Apr  7 00:49:32 2019	(r498219)
+++ branches/2019Q2/x11/xsettingsd/Makefile	Sun Apr  7 00:54:35 2019	(r498220)
@@ -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