Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2019 19:19:25 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r498168 - branches/2019Q2/games/lpairs
Message-ID:  <201904061919.x36JJPsm055979@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Apr  6 19:19:25 2019
New Revision: 498168
URL: https://svnweb.freebsd.org/changeset/ports/498168

Log:
  MFH: r498167
  
  Turn off the -Wno-unused-result flag on GCC-based architectures to
  fix the following:
  
    cc1: error: unrecognized command line option "-Wno-unused-result"
  
  Approved by:	portmgr (tier-2 blanket)

Modified:
  branches/2019Q2/games/lpairs/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/games/lpairs/Makefile
==============================================================================
--- branches/2019Q2/games/lpairs/Makefile	Sat Apr  6 19:17:00 2019	(r498167)
+++ branches/2019Q2/games/lpairs/Makefile	Sat Apr  6 19:19:25 2019	(r498168)
@@ -12,7 +12,7 @@ COMMENT=	Classical memory game
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		autoreconf
+USES=		autoreconf compiler sdl
 GNU_CONFIGURE=	yes
 USE_SDL=	sdl
 
@@ -31,10 +31,15 @@ OPTIONS_SUB=	yes
 NLS_USES=	gettext
 NLS_CONFIGURE_ENABLE=	nls
 
+.include <bsd.port.pre.mk>
+
 post-patch:
-	@${REINPLACE_CMD} -e 's|games/lpairs|lpairs|' ${WRKSRC}/configure.in
+	${REINPLACE_CMD} -e 's|games/lpairs|lpairs|' ${WRKSRC}/configure.in
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+	${REINPLACE_CMD} -e 's|-Wno-unused-result||' ${WRKSRC}/configure.in
+.endif
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
 
-.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?201904061919.x36JJPsm055979>