summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorbjs <bjs>2008-04-08 01:52:41 +0000
committerbjs <bjs>2008-04-08 01:52:41 +0000
commit474543adfac14f46921c54fcfeb224e1ecaf3da3 (patch)
tree71b66ef10f847e42af7c80d7a0ba79f05b9349c6 /audio
parentdf6606c7f7d17c09c0e88079cb06b831e2361111 (diff)
downloadpkgsrc-474543adfac14f46921c54fcfeb224e1ecaf3da3.tar.gz
Add an option to use the new jack-devel package. Bump revision.
Diffstat (limited to 'audio')
-rw-r--r--audio/moc-devel/Makefile3
-rw-r--r--audio/moc-devel/options.mk21
2 files changed, 20 insertions, 4 deletions
diff --git a/audio/moc-devel/Makefile b/audio/moc-devel/Makefile
index d5a4df79cb7..02d195c70da 100644
--- a/audio/moc-devel/Makefile
+++ b/audio/moc-devel/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/04/07 16:10:37 bjs Exp $
+# $NetBSD: Makefile,v 1.2 2008/04/08 01:52:41 bjs Exp $
DISTNAME= moc-2.5.0-alpha3
PKGNAME= ${DISTNAME:S/-alpha/./:moc%=moc-devel%}
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.daper.net/pub/soft/moc/unstable/
EXTRACT_SUFX= .tar.bz2
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"