2008-05-25 01:05:27 +02:00
|
|
|
# $NetBSD: options.mk,v 1.5 2008/05/24 23:05:27 tnn Exp $
|
2005-09-27 01:17:32 +02:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.moc
|
2006-02-12 19:35:55 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= sndfile flac vorbis speex curl samplerate
|
|
|
|
PKG_SUGGESTED_OPTIONS= sndfile flac vorbis curl
|
2005-09-27 01:17:32 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2008-05-25 01:05:27 +02:00
|
|
|
PLIST_VARS+= flac sndfile speex vorbis
|
2008-04-13 00:42:57 +02:00
|
|
|
|
2008-04-07 18:15:24 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Msamplerate)
|
|
|
|
PKG_OPTIONS+= sndfile
|
|
|
|
CONFIGURE_ARGS+= --with-samplerate
|
|
|
|
. include "../../audio/libsamplerate/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-samplerate
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Msndfile) || defined(PKG_OPTIONS:Msamplerate)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.sndfile= yes
|
2005-09-27 01:17:32 +02:00
|
|
|
CONFIGURE_ARGS+= --with-sndfile
|
|
|
|
. include "../../audio/libsndfile/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sndfile
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mflac)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.flac= yes
|
2005-09-27 01:17:32 +02:00
|
|
|
CONFIGURE_ARGS+= --with-flac
|
|
|
|
. include "../../audio/flac/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-flac
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mvorbis)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.vorbis= yes
|
2005-09-27 01:17:32 +02:00
|
|
|
CONFIGURE_ARGS+= --with-vorbis
|
|
|
|
. include "../../audio/libvorbis/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-vorbis
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mspeex)
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.speex= yes
|
2005-09-27 01:17:32 +02:00
|
|
|
CONFIGURE_ARGS+= --with-speex
|
|
|
|
. include "../../audio/speex/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-speex
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mcurl)
|
|
|
|
CONFIGURE_ARGS+= --with-curl
|
|
|
|
. include "../../www/curl/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-curl
|
|
|
|
.endif
|