diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2019-09-24 08:19:41 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2019-09-24 08:19:41 +0000 |
commit | 7a47e56c0fb84efb51455697ad475f2869d489d8 (patch) | |
tree | bba9121429c2c9c9ffb8dcd59f885f9c5de2d6a7 | |
parent | 16ecf2e7e6d092ce4608a15be910989155d7ade9 (diff) | |
download | ports-7a47e56c0fb84efb51455697ad475f2869d489d8.tar.gz ports-7a47e56c0fb84efb51455697ad475f2869d489d8.zip |
MFH: r512702
Fix build with base GCC (revised solution of r512507).
Reviewed by: pkubaj
Approved by: portmgr blanket
Notes
Notes:
svn path=/branches/2019Q3/; revision=512703
-rw-r--r-- | audio/fasttracker2/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/audio/fasttracker2/Makefile b/audio/fasttracker2/Makefile index e08297bfda7c..d368aeb66415 100644 --- a/audio/fasttracker2/Makefile +++ b/audio/fasttracker2/Makefile @@ -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> |