Date: Tue, 24 Sep 2019 08:19:42 +0000 (UTC) From: Emanuel Haupt <ehaupt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r512703 - branches/2019Q3/audio/fasttracker2 Message-ID: <201909240819.x8O8JgL4085069@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ehaupt Date: Tue Sep 24 08:19:41 2019 New Revision: 512703 URL: https://svnweb.freebsd.org/changeset/ports/512703 Log: MFH: r512702 Fix build with base GCC (revised solution of r512507). Reviewed by: pkubaj Approved by: portmgr blanket Modified: branches/2019Q3/audio/fasttracker2/Makefile Directory Properties: branches/2019Q3/ (props changed) Modified: branches/2019Q3/audio/fasttracker2/Makefile ============================================================================== --- branches/2019Q3/audio/fasttracker2/Makefile Tue Sep 24 08:19:03 2019 (r512702) +++ branches/2019Q3/audio/fasttracker2/Makefile Tue Sep 24 08:19:41 2019 (r512703) @@ -17,7 +17,7 @@ LICENSE_COMB= multi LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/src/LICENSE.txt LICENSE_FILE_CC-BY-NC-SA-4.0= ${WRKSRC}/src/gfxdata/bmp/LICENSE.txt -USES= dos2unix iconv:wchar_t localbase:ldflags sdl zip +USES= compiler dos2unix iconv:wchar_t localbase:ldflags sdl zip USE_SDL= sdl2 WRKSRC= ${WRKDIR}/ft2-clone-code @@ -42,6 +42,14 @@ ALSA_LDFLAGS+= -lasound CFLAGS_i386+= -msse2 +.include <bsd.port.pre.mk> + +# clang reports: +# error: invalid argument '-std=c99' not allowed with 'C++' +.if ${CHOSEN_COMPILER_TYPE} == gcc +USE_CSTD= c99 +.endif + do-build: ${CC} ${CFLAGS} ${LDFLAGS} \ ${WRKSRC}/src/rtmidi/*.cpp ${WRKSRC}/src/gfxdata/*.c ${WRKSRC}/src/*.c \ @@ -53,4 +61,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/src/gfxdata/icon/ft2-clone.ico \ ${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?201909240819.x8O8JgL4085069>