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)
This commit is contained in:
Mark Linimon 2019-04-06 19:19:25 +00:00
parent 3c6d652fea
commit 82b6155bb9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=498168

View File

@ -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>