pkgsrc/audio/libfishsound/options.mk
rillig b49e05bea1 audio: align variable assignments and directives
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-02 21:09:12 +00:00

45 lines
1 KiB
Makefile

# $NetBSD: options.mk,v 1.4 2019/11/02 21:09:14 rillig Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libfishsound
PKG_SUPPORTED_OPTIONS= doc valgrind
PKG_SUGGESTED_OPTIONS+= flac speex vorbis
PKG_OPTIONS_NONEMPTY_SETS+= codec
PKG_OPTIONS_SET.codec= flac speex vorbis
PLIST_VARS+= doc nodoc
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdoc)
BUILD_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
PLIST.doc= yes
.else
CONFIGURE_ARGS+= HAVE_DOXYGEN=no
PLIST.nodoc= yes
.endif
.if !empty(PKG_OPTIONS:Mflac)
BUILDLINK_DEPMETHOD.flac= build
.include "../../audio/flac/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-flac
.endif
.if !empty(PKG_OPTIONS:Mspeex)
.include "../../audio/speex/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-speex
.endif
.if !empty(PKG_OPTIONS:Mvalgrind)
BUILD_DEPENDS+= valgrind-[0-9]*:../../devel/valgrind
CONFIGURE_ARGS+= --enable-valgrind-testing
.else
CONFIGURE_ARGS+= --disable-valgrind-testing
.endif
.if !empty(PKG_OPTIONS:Mvorbis)
.include "../../audio/libvorbis/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-vorbis
.endif