pkgsrc/audio/lmms/options.mk

49 lines
1.2 KiB
Makefile

# $NetBSD: options.mk,v 1.2 2019/06/17 07:31:12 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.lmms
PKG_SUPPORTED_OPTIONS+= alsa jack portaudio pulseaudio sdl
PKG_SUGGESTED_OPTIONS+= jack portaudio sdl
PKG_SUGGESTED_OPTIONS.Linux+= alsa pulseaudio
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Malsa)
CMAKE_ARGS+= -DWANT_ALSA=ON
.include "../../audio/alsa-lib/buildlink3.mk"
.else
CMAKE_ARGS+= -DWANT_ALSA=OFF
.endif
.if !empty(PKG_OPTIONS:Mjack)
CMAKE_ARGS+= -DWANT_JACK=ON
.include "../../audio/jack/buildlink3.mk"
.else
CMAKE_ARGS+= -DWANT_JACK=OFF
.endif
.if !empty(PKG_OPTIONS:Mportaudio)
CMAKE_ARGS+= -DWANT_PORTAUDIO=ON
.include "../../audio/portaudio-devel/buildlink3.mk"
.else
CMAKE_ARGS+= -DWANT_PORTAUDIO=OFF
.endif
.if !empty(PKG_OPTIONS:Mpulseaudio)
CMAKE_ARGS+= -DWANT_PULSEAUDIO=ON
.include "../../audio/pulseaudio/buildlink3.mk"
.else
CMAKE_ARGS+= -DWANT_PULSEAUDIO=OFF
.endif
.if !empty(PKG_OPTIONS:Msdl)
CMAKE_ARGS+= -DWANT_SDL=ON
# libSDL defines some symbols that are also defined in libX11, which has
# been fixed in SDL 1.2.11.
BUILDLINK_ABI_DEPENDS.SDL+= SDL>=1.2.11
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../audio/SDL_sound/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.else
CMAKE_ARGS+= -DWANT_SDL=OFF
.endif