svn commit: r498168 - branches/2019Q2/games/lpairs
Mark Linimon
linimon at FreeBSD.org
Sat Apr 6 19:19:26 UTC 2019
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>
More information about the svn-ports-all
mailing list