summaryrefslogtreecommitdiff
path: root/audio/moc-devel/options.mk
diff options
context:
space:
mode:
authorbjs <bjs@pkgsrc.org>2008-04-08 01:52:41 +0000
committerbjs <bjs@pkgsrc.org>2008-04-08 01:52:41 +0000
commitc9dcc6b710b8f58c6b2e14546d914e128525a52b (patch)
tree71b66ef10f847e42af7c80d7a0ba79f05b9349c6 /audio/moc-devel/options.mk
parent30c497585f2f574bf018ebf6c6460a40ab67c799 (diff)
downloadpkgsrc-c9dcc6b710b8f58c6b2e14546d914e128525a52b.tar.gz
Add an option to use the new jack-devel package. Bump revision.
Diffstat (limited to 'audio/moc-devel/options.mk')
-rw-r--r--audio/moc-devel/options.mk21
1 files changed, 18 insertions, 3 deletions
diff --git a/audio/moc-devel/options.mk b/audio/moc-devel/options.mk
index 8460c4d344f..b5437013bd2 100644
--- a/audio/moc-devel/options.mk
+++ b/audio/moc-devel/options.mk
@@ -1,20 +1,35 @@
-# $NetBSD: options.mk,v 1.1.1.1 2008/04/07 16:10:37 bjs Exp $
+# $NetBSD: options.mk,v 1.2 2008/04/08 01:52:41 bjs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.moc
-PKG_SUPPORTED_OPTIONS= sndfile flac vorbis speex curl samplerate
+PKG_SUPPORTED_OPTIONS= sndfile flac vorbis speex curl samplerate jack
PKG_SUGGESTED_OPTIONS= sndfile flac vorbis curl
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mjack)
+CONFIGURE_ARGS+= --with-jack
+###
+### Resampling support is usually required with jack.
+###
+. include "../../audio/jack-devel/buildlink3.mk"
+. if empty(PKG_OPTIONS:Msamplerate)
+PKG_OPTIONS+= samplerate
+. endif
+.else
+CONFIGURE_ARGS+= --without-jack
+.endif
+
.if !empty(PKG_OPTIONS:Msamplerate)
CONFIGURE_ARGS+= --with-samplerate
+. if empty(PKG_OPTIONS:Msndfile)
PKG_OPTIONS+= sndfile
+. endif
. include "../../audio/libsamplerate/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-samplerate
.endif
-.if !empty(PKG_OPTIONS:Msndfile) || !empty(PKG_OPTIONS:Msamplerate)
+.if !empty(PKG_OPTIONS:Msndfile)
PLIST_SUBST+= SNDFILE=
CONFIGURE_ARGS+= --with-sndfile
. include "../../audio/libsndfile/buildlink3.mk"