pkgsrc/audio/SDL2_mixer/options.mk
rodent a928a8e882 Import SDL2_mixer-2.0.0 as audio/SDL2_mixer.
SDL_mixer is a sample multi-channel audio mixer library. It supports any number
of simultaneously playing channels of 16 bit stereo audio, plus a single channel
of music, mixed by the popular FLAC, MikMod MOD, Timidity MIDI, Ogg Vorbis, and
SMPEG MP3 libraries.

As of SDL_mixer 1.2.7, FLAC, MikMod, Ogg Vorbis and MP3 loading libraries are
dynamically loaded, so if you don't need to load those formats, you don't need
to include those shared libraries.
2014-02-02 15:39:01 +00:00

48 lines
1.3 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2014/02/02 15:39:01 rodent Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.SDL2_mixer
PKG_SUPPORTED_OPTIONS= flac fluidsynth modplug smpeg2 static vorbis
PKG_SUGGESTED_OPTIONS+= flac modplug smpeg2 static vorbis
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mflac)
.include "../../audio/flac/buildlink3.mk"
CONFIGURE_ARGS+= --enable-music-flac=yes
.else
CONFIGURE_ARGS+= --enable-music-flac=no
.endif
.if !empty(PKG_OPTIONS:Mfluidsynth)
.include "../../audio/fluidsynth/buildlink3.mk"
CONFIGURE_ARGS+= --enable-music-midi-fluidsynth=yes
.else
CONFIGURE_ARGS+= --enable-music-midi-fluidsynth=no
.endif
.if !empty(PKG_OPTIONS:Mmodplug)
.include "../../audio/libmodplug/buildlink3.mk"
CONFIGURE_ARGS+= --enable-music-mod-modplug=yes
.else
CONFIGURE_ARGS+= --enable-music-mod-modplug=no
.endif
.if !empty(PKG_OPTIONS:Msmpeg2)
.include "../../multimedia/smpeg2/buildlink3.mk"
CONFIGURE_ARGS+= --enable-music-mp3-smpeg=yes
.else
CONFIGURE_ARGS+= --enable-music-mp3-smpeg=no
.endif
.if !empty(PKG_OPTIONS:Mstatic)
CONFIGURE_ARGS+= --enable-static=yes
.else
CONFIGURE_ARGS+= --enable-static=no
.endif
.if !empty(PKG_OPTIONS:Mvorbis)
.include "../../audio/libvorbis/buildlink3.mk"
CONFIGURE_ARGS+= --enable-music-ogg=yes
.else
CONFIGURE_ARGS+= --enable-music-ogg=no
.endif