libao-macosx: Fix building on OS X versions before 10.6

This commit is contained in:
nia 2024-03-16 17:38:23 +00:00
parent de07fff54e
commit 141140905f
1 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2019/12/24 05:07:45 dbj Exp $
# $NetBSD: Makefile,v 1.10 2024/03/16 17:38:23 nia Exp $
.include "../../audio/libao/Makefile.common"
@ -15,5 +15,15 @@ BUILDLINK_API_DEPENDS.libao+= libao>=0.8.6nb1
_LIBAO_BUILDING_PLUGIN= yes
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} == "Darwin" && ${OPSYS_VERSION} < 100600
CPPFLAGS+= -DAudioComponent=Component
CPPFLAGS+= -DAudioComponentDescription=ComponentDescription
CPPFLAGS+= -DAudioComponentFindNext=FindNextComponent
CPPFLAGS+= -DAudioComponentInstanceNew=OpenAComponent
CPPFLAGS+= -DAudioComponentInstanceDispose=CloseComponent
.endif
.include "../../audio/libao/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"