MFH: r512702

Fix build with base GCC (revised solution of r512507).

Reviewed by:	pkubaj
Approved by:	portmgr blanket
This commit is contained in:
Emanuel Haupt 2019-09-24 08:19:41 +00:00
parent 16ecf2e7e6
commit 7a47e56c0f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q3/; revision=512703

View File

@ -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>