2019-10-20 13:10:47 +02:00
|
|
|
# $NetBSD: options.mk,v 1.4 2019/10/20 11:10:48 nia Exp $
|
2019-01-01 18:19:58 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.dolphin-emu
|
|
|
|
PKG_SUPPORTED_OPTIONS= alsa libao llvm openal portaudio pulseaudio
|
2019-06-13 21:44:35 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS+= alsa libao
|
2019-01-01 18:19:58 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Malsa)
|
|
|
|
CMAKE_ARGS+= -DENABLE_ALSA=ON
|
|
|
|
.include "../../audio/alsa-lib/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mlibao)
|
|
|
|
CMAKE_ARGS+= -DENABLE_AO=ON
|
|
|
|
.include "../../audio/libao/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# LLVM - Used for disassembly
|
|
|
|
#
|
|
|
|
.if !empty(PKG_OPTIONS:Mllvm)
|
|
|
|
CMAKE_ARGS+= -DENABLE_LLVM=ON
|
|
|
|
.include "../../lang/libLLVM/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mopenal)
|
|
|
|
CMAKE_ARGS+= -DENABLE_OPENAL=ON
|
|
|
|
.include "../../audio/openal-soft/buildlink3.mk"
|
|
|
|
.include "../../audio/soundtouch/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mportaudio)
|
|
|
|
CMAKE_ARGS+= -DENABLE_PORTAUDIO=ON
|
2019-10-20 13:10:47 +02:00
|
|
|
.include "../../audio/portaudio/buildlink3.mk"
|
2019-01-01 18:19:58 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mpulseaudio)
|
|
|
|
CMAKE_ARGS+= -DENABLE_PULSEAUDIO=ON
|
|
|
|
.include "../../audio/pulseaudio/buildlink3.mk"
|
|
|
|
.endif
|