summaryrefslogtreecommitdiff
path: root/audio/moc-devel/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'audio/moc-devel/options.mk')
-rw-r--r--audio/moc-devel/options.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/audio/moc-devel/options.mk b/audio/moc-devel/options.mk
index b5437013bd2..cbfd40eb89d 100644
--- a/audio/moc-devel/options.mk
+++ b/audio/moc-devel/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2008/04/08 01:52:41 bjs Exp $
+# $NetBSD: options.mk,v 1.3 2008/04/12 22:42:58 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.moc
PKG_SUPPORTED_OPTIONS= sndfile flac vorbis speex curl samplerate jack
@@ -6,6 +6,8 @@ PKG_SUGGESTED_OPTIONS= sndfile flac vorbis curl
.include "../../mk/bsd.options.mk"
+PLIST_VARS+= flac sndfile speex vorbis
+
.if !empty(PKG_OPTIONS:Mjack)
CONFIGURE_ARGS+= --with-jack
###
@@ -30,38 +32,34 @@ CONFIGURE_ARGS+= --without-samplerate
.endif
.if !empty(PKG_OPTIONS:Msndfile)
-PLIST_SUBST+= SNDFILE=
+PLIST.sndfile= yes
CONFIGURE_ARGS+= --with-sndfile
. include "../../audio/libsndfile/buildlink3.mk"
.else
-PLIST_SUBST+= SNDFILE='@comment '
CONFIGURE_ARGS+= --without-sndfile
.endif
.if !empty(PKG_OPTIONS:Mflac)
-PLIST_SUBST+= FLAC=
+PLIST.flac= yes
CONFIGURE_ARGS+= --with-flac
. include "../../audio/flac/buildlink3.mk"
.else
-PLIST_SUBST+= FLAC='@comment '
CONFIGURE_ARGS+= --without-flac
.endif
.if !empty(PKG_OPTIONS:Mvorbis)
-PLIST_SUBST+= VORBIS=
+PLIST.vorbis= yes
CONFIGURE_ARGS+= --with-vorbis
. include "../../audio/libvorbis/buildlink3.mk"
.else
-PLIST_SUBST+= VORBIS='@comment '
CONFIGURE_ARGS+= --without-vorbis
.endif
.if !empty(PKG_OPTIONS:Mspeex)
-PLIST_SUBST+= SPEEX=
+PLIST.speex= yes
CONFIGURE_ARGS+= --with-speex
. include "../../audio/speex/buildlink3.mk"
.else
-PLIST_SUBST+= SPEEX='@comment '
CONFIGURE_ARGS+= --without-speex
.endif