Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2019 08:19:04 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512702 - head/audio/fasttracker2
Message-ID:  <201909240819.x8O8J4iT084892@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue Sep 24 08:19:03 2019
New Revision: 512702
URL: https://svnweb.freebsd.org/changeset/ports/512702

Log:
  Fix build with base GCC (revised solution of r512507).
  
  Reviewed by:	pkubaj
  MFH:		2019Q3 (blanket)

Modified:
  head/audio/fasttracker2/Makefile

Modified: head/audio/fasttracker2/Makefile
==============================================================================
--- head/audio/fasttracker2/Makefile	Tue Sep 24 07:23:58 2019	(r512701)
+++ head/audio/fasttracker2/Makefile	Tue Sep 24 08:19:03 2019	(r512702)
@@ -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.x8O8J4iT084892>