pkgsrc/audio/fluidsynth/options.mk
wiz 3b5deb82a9 fluidsynth: update to 2.2.8.
Fix pkglint.

* ALSA and WinMIDI drivers now pass system real-time messages on to user callback (#1115, thanks to @albedozero)
* Fix FPU division by zero in fluid_player_set_tempo() (#1111)
* Fix system-wide config file not loaded (#1118)
* Pluseaudio driver now honors audio.periods setting (#1127, thanks to @pedrolcl)
2022-07-17 08:26:57 +00:00

72 lines
1.7 KiB
Makefile

# $NetBSD: options.mk,v 1.6 2022/07/17 08:26:57 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.fluidsynth
# Audio backends
PKG_SUPPORTED_OPTIONS= alsa jack portaudio pulseaudio sdl2
PKG_SUGGESTED_OPTIONS.Linux= alsa
# Misc
PKG_SUPPORTED_OPTIONS+= dbus ladspa
.include "../../mk/oss.buildlink3.mk"
# On platforms without a native-ish backend, build the SDL2 backend.
.if ${OPSYS} != "Linux" && ${OPSYS} != Darwin && ${OSS_TYPE} == "none"
PKG_SUGGESTED_OPTIONS+= sdl2
.endif
# A guess at platforms where ladspa is likely to work...
.if ${OPSYS} == "Linux" || ${OPSYS:M*BSD} || ${OPSYS} == "DragonFly"
PKG_SUGGESTED_OPTIONS+= ladspa
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Malsa)
CMAKE_ARGS+= -Denable-alsa=ON
.include "../../audio/alsa-lib/buildlink3.mk"
.else
CMAKE_ARGS+= -Denable-alsa=OFF
.endif
.if !empty(PKG_OPTIONS:Mdbus)
CMAKE_ARGS+= -Denable-dbus=ON
.include "../../sysutils/dbus/buildlink3.mk"
.else
CMAKE_ARGS+= -Denable-dbus=OFF
.endif
.if !empty(PKG_OPTIONS:Mjack)
CMAKE_ARGS+= -Denable-jack=ON
.include "../../audio/jack/buildlink3.mk"
.else
CMAKE_ARGS+= -Denable-jack=OFF
.endif
.if !empty(PKG_OPTIONS:Mportaudio)
CMAKE_ARGS+= -Denable-portaudio=ON
.include "../../audio/portaudio/buildlink3.mk"
.else
CMAKE_ARGS+= -Denable-portaudio=OFF
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
CMAKE_ARGS+= -Denable-pulseaudio=ON
.include "../../audio/pulseaudio/buildlink3.mk"
.else
CMAKE_ARGS+= -Denable-pulseaudio=OFF
.endif
.if !empty(PKG_OPTIONS:Msdl2)
CMAKE_ARGS+= -Denable-sdl2=ON
.include "../../devel/SDL2/buildlink3.mk"
.else
CMAKE_ARGS+= -Denable-sdl2=OFF
.endif
.if !empty(PKG_OPTIONS:Mladspa)
CMAKE_ARGS+= -Denable-ladspa=ON
.include "../../audio/ladspa/buildlink3.mk"
.else
CMAKE_ARGS+= -Denable-ladspa=OFF
.endif