git: 76d979921eb1 - main - audio/sfizz: Not generally broken

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 02 Aug 2022 18:20:25 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=76d979921eb16ba2668ed476959a019a37b6c57b

commit 76d979921eb16ba2668ed476959a019a37b6c57b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-02 18:18:10 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-02 18:20:23 +0000

    audio/sfizz: Not generally broken
    
    Broken only on 13.0 and earlier.
    
    Pointy hat to:  amdmi3@
---
 audio/sfizz/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/audio/sfizz/Makefile b/audio/sfizz/Makefile
index 6db5c89b65bb..31a3a62ad7f1 100644
--- a/audio/sfizz/Makefile
+++ b/audio/sfizz/Makefile
@@ -10,7 +10,6 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BROKEN_riscv64=	fails to compile: src/external/atomic_queue/defs.h:45:2: Unknown CPU architecture
 BROKEN_i386=	fails to compile: unknown type name 'Elf64_Auxinfo', see https://github.com/sfztools/sfizz/issues/1110
-BROKEN=		fails to compile: unknown type name '_Bool'
 
 LIB_DEPENDS=	libsndfile.so:audio/libsndfile
 RUN_DEPENDS=	zenity:x11/zenity
@@ -63,6 +62,12 @@ VST_USE=		${LV2_USE}
 VST_LIB_DEPENDS=	${LV2_LIB_DEPENDS}
 VST_CMAKE_BOOL=		SFIZZ_VST
 
+.include <bsd.port.pre.mk>
+
+.if (${OSVERSION} < 1301000)
+BROKEN=		fails to compile: unknown type name '_Bool'
+.endif
+
 post-install-LV2-on:
 	@${STRIP_CMD} \
 		${STAGEDIR}${PREFIX}/lib/lv2/sfizz.lv2/Contents/Binary/sfizz.so \
@@ -72,4 +77,4 @@ post-install-VST-on:
 	@${STRIP_CMD} \
 		${STAGEDIR}${PREFIX}/lib/vst3/sfizz.vst3/Contents/x86_64-linux/sfizz.so
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>