pkgsrc/audio/musicpd/options.mk
2004-12-22 21:46:24 +00:00

50 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.2 2004/12/22 21:46:24 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.musicpd
PKG_SUPPORTED_OPTIONS= aac audiofile flac iconv id3 ogg
PKG_DEFAULT_OPTIONS+= aac audiofile flac iconv id3 ogg
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Maac)
. include "../../audio/faad2/buildlink3.mk"
CONFIGURE_ARGS+= --with-faad=${BUILDLINK_PREFIX.faad2}
.else
CONFIGURE_ARGS+= --disable-aac
.endif
.if !empty(PKG_OPTIONS:Maudiofile)
. include "../../audio/libaudiofile/buildlink3.mk"
CONFIGURE_ARGS+= --with-audiofile=${BUILDLINK_PREFIX.audiofile}
CONFIGURE_ENV+= ac_cv_lib_iconv_iconv_open=yes
.else
CONFIGURE_ARGS+= --disable-audiofile
.endif
.if !empty(PKG_OPTIONS:Mflac)
. include "../../audio/flac/buildlink3.mk"
CONFIGURE_ARGS+= --with-flac=${BUILDLINK_PREFIX.flac}
.else
CONFIGURE_ARGS+= --disable-flac
.endif
.if !empty(PKG_OPTIONS:Miconv)
. include "../../converters/libiconv/buildlink3.mk"
CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
.else
CONFIGURE_ARGS+= --disable-iconv
.endif
.if !empty(PKG_OPTIONS:Mid3)
. include "../../audio/libid3tag/buildlink3.mk"
CONFIGURE_ARGS+= --with-id3tag=${BUILDLINK_PREFIX.libid3tag}
.else
CONFIGURE_ARGS+= --disable-id3
.endif
.if !empty(PKG_OPTIONS:Mogg)
. include "../../audio/libvorbis/buildlink3.mk"
CONFIGURE_ARGS+= --with-ogg=${BUILDLINK_PREFIX.libvorbis}
.else
CONFIGURE_ARGS+= --disable-ogg
.endif