aboutsummaryrefslogtreecommitdiffstats
path: root/audio/jack
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2010-12-17 01:34:13 +0800
committermakc <makc@FreeBSD.org>2010-12-17 01:34:13 +0800
commite301cb78da2a6a181c1c7ce1c4b5b3f2ff8a7391 (patch)
tree6410c2be626c6291969565fbdd9bed4cd432afb3 /audio/jack
parent61e4f5a5b2ea6f1a99fda9c56c34498ae78e5c20 (diff)
downloadfreebsd-ports-gnome-e301cb78da2a6a181c1c7ce1c4b5b3f2ff8a7391.tar.gz
freebsd-ports-gnome-e301cb78da2a6a181c1c7ce1c4b5b3f2ff8a7391.tar.zst
freebsd-ports-gnome-e301cb78da2a6a181c1c7ce1c4b5b3f2ff8a7391.zip
Add optional support for ALSA, off by default
Remove md5 sum while here PR: ports/153187 Approved by: kwm (with multimedia hat)
Diffstat (limited to 'audio/jack')
-rw-r--r--audio/jack/Makefile13
-rw-r--r--audio/jack/distinfo1
-rw-r--r--audio/jack/pkg-plist8
3 files changed, 15 insertions, 7 deletions
diff --git a/audio/jack/Makefile b/audio/jack/Makefile
index 3ba9d30424f4..cd86227c542f 100644
--- a/audio/jack/Makefile
+++ b/audio/jack/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jackit
PORTVERSION= 0.118.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://jackaudio.org/downloads/
DISTNAME= jack-audio-connection-kit-${PORTVERSION}
@@ -18,7 +18,6 @@ COMMENT= A low-latency audio server
LIB_DEPENDS= portaudio.0:${PORTSDIR}/audio/portaudio \
sndfile.1:${PORTSDIR}/audio/libsndfile \
samplerate.1:${PORTSDIR}/audio/libsamplerate \
- asound.2:${PORTSDIR}/audio/alsa-lib \
celt.0:${PORTSDIR}/audio/celt
LATEST_LINK= jack
@@ -34,6 +33,8 @@ USE_GNOME= pkgconfig gnometarget gnomehack
MAN1= jackd.1 jackstart.1
+OPTIONS= ALSA "Build with ALSA compatibility library" off
+
.include <bsd.port.pre.mk>
.if !defined(NOPORTDOCS)
@@ -46,6 +47,14 @@ CONFIGURE_ENV+= ac_cv_prog_HAVE_DOXYGEN="false"
LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline
.endif
+.if defined(WITH_ALSA)
+LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
+PLIST_SUB+= ALSA=""
+.else
+CONFIGURE_ARGS+=--disable-alsa
+PLIST_SUB+= ALSA="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|define USE_MLOCK|undef USE_MLOCK|' \
${WRKSRC}/configure
diff --git a/audio/jack/distinfo b/audio/jack/distinfo
index b850041e915c..888acc87f5b8 100644
--- a/audio/jack/distinfo
+++ b/audio/jack/distinfo
@@ -1,3 +1,2 @@
-MD5 (jack-audio-connection-kit-0.118.0.tar.gz) = d58e29a55f285d54e75134cec8e02a10
SHA256 (jack-audio-connection-kit-0.118.0.tar.gz) = 6aadf38ca98104772fd675bba7adecf72d2a600e17cccfc5d1f7c50f19b722c2
SIZE (jack-audio-connection-kit-0.118.0.tar.gz) = 992374
diff --git a/audio/jack/pkg-plist b/audio/jack/pkg-plist
index 2002325ac54b..36ee5e1e247f 100644
--- a/audio/jack/pkg-plist
+++ b/audio/jack/pkg-plist
@@ -1,5 +1,5 @@
-bin/alsa_in
-bin/alsa_out
+%%ALSA%%bin/alsa_in
+%%ALSA%%bin/alsa_out
bin/jack_alias
bin/jack_bufsize
bin/jack_connect
@@ -36,8 +36,8 @@ lib/jack/inprocess.la
lib/jack/inprocess.so
lib/jack/intime.la
lib/jack/intime.so
-lib/jack/jack_alsa.la
-lib/jack/jack_alsa.so
+%%ALSA%%lib/jack/jack_alsa.la
+%%ALSA%%lib/jack/jack_alsa.so
lib/jack/jack_dummy.la
lib/jack/jack_dummy.so
lib/jack/jack_net.la