-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable COOKEDMODE for more versatile soundcard support; use GitHub Detailed log: * Add COOKEDMODE option that turns on SNDCTL_DSP_COOKEDMODE. Without the cooked mode Jack's OSS driver currently fails for some soundcards (it chooses wrong sample rate). It's better to have COOKEDMODE=on by default since it often appears broken otherwise. Professionals probably want COOKEDMODE=off, after they make sure their soundcard works with jack. * Switch to github for fetching the sources. * Include the merged upstream pull request #60 to enable the realtime mode (-R). * Add USES=autoreconf (github source doesn't include a configure script) * Install more manpages. PR: 220785 Submitted by: [email protected] Approved by: portmgr (feld)
- Loading branch information
1 parent
c9cbc4a
commit f082f5f
Showing
9 changed files
with
197 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,8 @@ | |
|
||
PORTNAME= jackit | ||
PORTVERSION= 0.125.0 | ||
PORTREVISION= 1 | ||
PORTREVISION= 2 | ||
CATEGORIES= audio | ||
MASTER_SITES= http://jackaudio.org/downloads/ | ||
DISTNAME= jack-audio-connection-kit-${PORTVERSION} | ||
|
||
MAINTAINER= [email protected] | ||
COMMENT= Low latency audio server | ||
|
@@ -19,22 +17,36 @@ LIB_DEPENDS= libsndfile.so:audio/libsndfile \ | |
libcelt0.so:audio/celt \ | ||
libuuid.so:misc/e2fsprogs-libuuid | ||
|
||
GNU_CONFIGURE= yes | ||
USES= autoreconf gmake pathfix pkgconfig libtool localbase bdb | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= jackaudio | ||
GH_PROJECT= jack1 | ||
GH_TAGNAME= 90f9dd3 | ||
GH_TUPLE= jackaudio:headers:07f1ecf:h/jack | ||
GH_TUPLE+= jackaudio:tools:8d13c31:t/tools | ||
GH_TUPLE+= jackaudio:example-clients:7fa0890:e/example-clients | ||
USE_LDCONFIG= yes | ||
USES= gmake pathfix pkgconfig libtool localbase bdb | ||
GNU_CONFIGURE= yes | ||
USE_RC_SUBR= jackd | ||
|
||
CONFIGURE_ARGS= --disable-portaudio \ | ||
--enable-optimize \ | ||
--enable-force-install \ | ||
--with-default-tmpdir=/tmp | ||
|
||
CFLAGS+= -I${BDB_INCLUDE_DIR} | ||
LIBS+= -L${BDB_LIB_DIR} | ||
INSTALL_TARGET= install-strip | ||
CFLAGS+= -I${BDB_INCLUDE_DIR} | ||
LIBS+= -L${BDB_LIB_DIR} | ||
INSTALL_TARGET= install-strip | ||
|
||
OPTIONS_DEFINE= ALSA DOXYGEN READLINE SNDIO | ||
OPTIONS_DEFAULT=READLINE | ||
OPTIONS_SUB= yes | ||
OPTIONS_DEFINE= ALSA DOXYGEN READLINE SNDIO COOKEDMODE | ||
OPTIONS_DEFINE_i386= DYNSIMD | ||
OPTIONS_DEFINE_amd64= DYNSIMD | ||
OPTIONS_DEFAULT= READLINE COOKEDMODE | ||
OPTIONS_DEFAULT_i386= DYNSIMD | ||
OPTIONS_DEFAULT_amd64= DYNSIMD | ||
OPTIONS_SUB= yes | ||
COOKEDMODE_DESC= Use OSS COOKEDMODE (OSS driver is broken without it) | ||
DYNSIMD_DESC= Use dynamic SIMD selection (only i386/amd64) | ||
|
||
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib | ||
ALSA_CONFIGURE_ENABLE= alsa | ||
|
@@ -50,21 +62,11 @@ READLINE_CONFIGURE_ENV_OFF= ac_cv_lib_readline_readline=no \ | |
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio | ||
SNDIO_CONFIGURE_ENABLE= sndio | ||
|
||
COOKEDMODE_CFLAGS= -DOPTION_COOKEDMODE | ||
|
||
DYNSIMD_CONFIGURE_ENABLE=dynsimd | ||
|
||
post-patch: | ||
@${REINPLACE_CMD} -e 's|define USE_MLOCK|undef USE_MLOCK|' \ | ||
-e 's|alloca.h||' \ | ||
${WRKSRC}/configure | ||
@${REINPLACE_CMD} -e "s,-lpthread,-pthread," \ | ||
${WRKSRC}/configure ${WRKSRC}/libjack/Makefile.in \ | ||
${WRKSRC}/jackd/Makefile.in \ | ||
${WRKSRC}/example-clients/Makefile.in ${WRKSRC}/jack.pc.in | ||
@${REINPLACE_CMD} -e "s,-lrt,," ${WRKSRC}/libjack/Makefile.in \ | ||
${WRKSRC}/jackd/Makefile.in \ | ||
${WRKSRC}/example-clients/Makefile.in | ||
@${REINPLACE_CMD} -e "s,-ldl,," ${WRKSRC}/jackd/Makefile.in \ | ||
${WRKSRC}/example-clients/Makefile.in | ||
@${REINPLACE_CMD} -e 's|md5sum|md5 -q|g' \ | ||
${WRKSRC}/jackd/Makefile.in | ||
@${RM} ${WRKSRC}/doc/reference/html/* | ||
|
||
post-build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
TIMESTAMP = 1491234945 | ||
SHA256 (jack-audio-connection-kit-0.125.0.tar.gz) = 3517b5bff82139a76b2b66fe2fd9a3b34b6e594c184f95a988524c575b11d444 | ||
SIZE (jack-audio-connection-kit-0.125.0.tar.gz) = 1217977 | ||
TIMESTAMP = 1500250305 | ||
SHA256 (jackaudio-jack1-0.125.0-90f9dd3_GH0.tar.gz) = e0ba7dcf58fa934af51329cd329f466fe8d2bc180d07e4ab8be21ed80c60aa8a | ||
SIZE (jackaudio-jack1-0.125.0-90f9dd3_GH0.tar.gz) = 392822 | ||
SHA256 (jackaudio-headers-07f1ecf_GH0.tar.gz) = 04a3bb87d278923985ba44045b7a27439c90776cc5d4a6016d062fc7a6aa5023 | ||
SIZE (jackaudio-headers-07f1ecf_GH0.tar.gz) = 36704 | ||
SHA256 (jackaudio-tools-8d13c31_GH0.tar.gz) = 23e6bc60c8cef4283677206f2687a408367203a725c091c923f48554ae6e8cc8 | ||
SIZE (jackaudio-tools-8d13c31_GH0.tar.gz) = 45544 | ||
SHA256 (jackaudio-example-clients-7fa0890_GH0.tar.gz) = 79e2ac1d38d7d77b1afb71aa97414c339e8c00613a5d9b725861232b5c995223 | ||
SIZE (jackaudio-example-clients-7fa0890_GH0.tar.gz) = 16174 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- configure.ac.orig 2017-01-10 10:20:51 UTC | ||
+++ configure.ac | ||
@@ -172,6 +172,7 @@ case "${host_os}" in | ||
# barrier code, this may be fixed in 5.3, stay tuned. | ||
USE_BARRIER="no" | ||
USE_MD5SUM=0 | ||
+ JACK_DO_NOT_MLOCK=0 | ||
;; | ||
openbsd*) | ||
# pthread_barrier* not implemented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- jackd/jackd.c.orig 2017-07-17 17:10:09 UTC | ||
+++ jackd/jackd.c | ||
@@ -521,11 +521,17 @@ jack_drivers_load () | ||
|
||
static void copyright (FILE* file) | ||
{ | ||
- fprintf (file, "jackd " VERSION "\n" | ||
+ fprintf (file, "jackd " VERSION " (COOKEDMODE=%s)\n" | ||
"Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.\n" | ||
"jackd comes with ABSOLUTELY NO WARRANTY\n" | ||
"This is free software, and you are welcome to redistribute it\n" | ||
- "under certain conditions; see the file COPYING for details\n\n"); | ||
+ "under certain conditions; see the file COPYING for details\n\n", | ||
+#if defined(OPTION_COOKEDMODE) | ||
+ "on" | ||
+#else | ||
+ "off" | ||
+#endif | ||
+ ); | ||
} | ||
|
||
static void usage (FILE *file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.