Date: Sat, 6 Apr 2019 19:13:31 +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: r498166 - branches/2019Q2/audio/vgmplay Message-ID: <201904061913.x36JDV0v055497@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Sat Apr 6 19:13:31 2019 New Revision: 498166 URL: https://svnweb.freebsd.org/changeset/ports/498166 Log: MFH: r498163 Modify compiler flags if !clang to prevent the following: cc1: error: unrecognized command line option "-Wno-unused-but-set-variable" Approved by: portmgr (tier-2 blanket) Modified: branches/2019Q2/audio/vgmplay/Makefile Directory Properties: branches/2019Q2/ (props changed) Modified: branches/2019Q2/audio/vgmplay/Makefile ============================================================================== --- branches/2019Q2/audio/vgmplay/Makefile Sat Apr 6 18:37:18 2019 (r498165) +++ branches/2019Q2/audio/vgmplay/Makefile Sat Apr 6 19:13:31 2019 (r498166) @@ -12,7 +12,7 @@ COMMENT= Command-line player for VGM (video game music LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/licenses/GPL.txt -USES= 7z dos2unix gmake +USES= 7z compiler dos2unix gmake NO_WRKSUBDIR= yes @@ -33,8 +33,13 @@ MAKE_ENV+= PREFIX=${LOCALBASE} PLIST_FILES= bin/vgmplay bin/vgm2pcm bin/vgm2wav man/man1/vgmplay.1.gz ${EXAMPLESDIR}/vgmplay.ini +.include <bsd.port.pre.mk> + post-patch: ${REINPLACE_CMD} -e 's/@//' ${WRKSRC}/Makefile +.if ${CHOSEN_COMPILER_TYPE} != clang + ${REINPLACE_CMD} -e 's/-Wno-unused-but-set-variable//' ${WRKSRC}/Makefile +.endif ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; s|/usr/share/vgmplay|${EXAMPLESDIR}|; s|VGMPlay|vgmplay|g;' ${WRKSRC}/vgmplay.1 do-install: @@ -45,4 +50,4 @@ do-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/VGMPlay.ini ${STAGEDIR}${EXAMPLESDIR}/vgmplay.ini -.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?201904061913.x36JDV0v055497>