summaryrefslogtreecommitdiff
path: root/games/lpairs
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2019-04-06 19:17:00 +0000
committerMark Linimon <linimon@FreeBSD.org>2019-04-06 19:17:00 +0000
commitd61df5cd2de8c973fa978201a2cf6ba82a616433 (patch)
tree30b114d208506a17d950eb44a28a3ebfa92eb054 /games/lpairs
parentMark BROKEN: fails to build (diff)
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)
Notes
Notes: svn path=/head/; revision=498167
Diffstat (limited to 'games/lpairs')
-rw-r--r--games/lpairs/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/games/lpairs/Makefile b/games/lpairs/Makefile
index 5ad817341515..1f81fc984b9e 100644
--- a/games/lpairs/Makefile
+++ b/games/lpairs/Makefile
@@ -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>