Files
pkgsrc-ng/audio/SDL2_mixer/options.mk
2014-11-05 12:41:07 +01:00

49 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