pkgsrc/audio/libfishsound/options.mk
rodent ff9b22711b Move flac, speex, and vorbis PKG_OPTIONS to PKG_OPTIONS_SET.codec, because
at least one of them is required, configure fails if one isn't set, and we
can help the user not make this mistake.
2013-05-25 01:37:59 +00:00

45 lines
1 KiB
Makefile

# $NetBSD: options.mk,v 1.2 2013/05/25 01:37:59 rodent 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