diff options
author | bjs <bjs@pkgsrc.org> | 2008-07-31 03:58:05 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-07-31 03:58:05 +0000 |
commit | 283ce280f860246434d2f53e8b72ee0abeebe94f (patch) | |
tree | 770e17b43c12b69ad42039e9b44224ca64c912e0 /audio/jack/Makefile | |
parent | 1b2aff6afd05b57c9e38ecfafe5bb547e5f5347e (diff) | |
download | pkgsrc-283ce280f860246434d2f53e8b72ee0abeebe94f.tar.gz |
Move audio/jack-devel to audio/jack: jack 0.100.0 was broken on many
platforms and a hideous anachronism. On NetBSD-current/i386 and amd64,
at least, I can say that this package works very well. If you have issues
with the audio skipping and are running NetBSD 4.99.x, try updating to
rev. 1.241 of sys/dev/audio.c; the changes to audio_poll() and the pause
attribute handling (in large part thanks to help from jakemsr@openbsd.org)
are important for proper functioning of jack (though you may find it
works regardless, depending upon your audio driver, how demanding your
"workload" is, etc.). I will submit a pullup request for this change
for NetBSD 4 as well.
JACK now supports both our native audio API and OSS--I recommend
trying both.
Diffstat (limited to 'audio/jack/Makefile')
-rw-r--r-- | audio/jack/Makefile | 98 |
1 files changed, 82 insertions, 16 deletions
diff --git a/audio/jack/Makefile b/audio/jack/Makefile index 7f48e2acb49..15441d36bcf 100644 --- a/audio/jack/Makefile +++ b/audio/jack/Makefile @@ -1,28 +1,94 @@ -# $NetBSD: Makefile,v 1.10 2007/03/18 21:19:09 rillig Exp $ +# $NetBSD: Makefile,v 1.11 2008/07/31 03:58:05 bjs Exp $ # -DISTNAME= jack-audio-connection-kit-0.100.0 -PKGNAME= jack-0.100.0 -PKGREVISION= 3 -CATEGORIES= audio -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jackit/} +DISTNAME= jack-audio-connection-kit-${JACK_VERSION} +PKGNAME= jack-${JACK_VERSION} +CATEGORIES= audio +MASTER_SITES= ${MASTER_SITE_LOCAL} +EXTRACT_SUFX= .tar.bz2 -MAINTAINER= chriswareham@chriswareham.demon.co.uk -HOMEPAGE= http://jackaudio.org/ -COMMENT= Low-latency audio server +JACK_VERSION= 0.112.1 + +MAINTAINER= bjs@NetBSD.org +HOMEPAGE= http://www.jackaudio.org/ +COMMENT= JACK audio connection kit + +PKG_DESTDIR_SUPPORT= user-destdir -USE_LIBTOOL= yes -USE_PKGLOCALEDIR= yes -USE_TOOLS+= perl pkg-config GNU_CONFIGURE= yes -CONFIGURE_ENV+= ac_cv_header_readline_chardefs_h=yes +USE_TOOLS+= pkg-config +USE_LIBTOOL= yes PKGCONFIG_OVERRIDE+= jack.pc.in -LIBS+= ${LIBOSSAUDIO} +PTHREAD_OPTS+= require native + +CONFIGURE_ARGS+= --disable-alsa +CONFIGURE_ARGS+= --disable-freebob +CONFIGURE_ARGS+= --disable-coreaudio +CONFIGURE_ARGS+= --disable-firewire +CONFIGURE_ARGS+= --disable-optimize +CONFIGURE_ARGS+= --enable-resize +CONFIGURE_ARGS+= --enable-timestamps + +CFLAGS.NetBSD+= -D_NETBSD_SOURCE + +CONFIGURE_ENV+= ac_cv_header_readline_chardefs_h=yes + +JACKD_DEFAULT_TMPDIR?= /tmp +JACKD_PROCFS_PATH?= /proc + +.include "../../mk/bsd.prefs.mk" -.include "../../devel/libgetopt/buildlink3.mk" +.if "${OPSYS:M*BSD}" != "" || ${OPSYS} == "Darwin" +CFLAGS+= -DJACK_HOST_HAS_BSD_POLL +.endif + +.if exists(/dev/shm) && ${OPSYS} == "Linux" +CONFIGURE_ARGS+= --with-default-tmpdir=/dev/shm +.else +CONFIGURE_ARGS+= --with-default-tmpdir=${JACKD_DEFAULT_TMPDIR:Q} +.endif + +PLIST_VARS= oss sunaudio + +### +### XXX The sun driver is buggy on NetBSD right now. I hope to remedy +### this shortly. +### +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "Solaris" +CONFIGURE_ARGS+= --enable-sun +PLIST.sunaudio= yes +.else +CONFIGURE_ARGS+= --disable-sun +.endif + +.include "../../mk/oss.buildlink3.mk" + +.if ${OSS_TYPE} != "none" +CONFIGURE_ARGS+= --enable-oss +PLIST.oss= yes +MAKE_ENV+= LIBOSSAUDIO=${LIBOSSAUDIO:Q} +CFLAGS+= -DDEVOSSAUDIO=\"${DEVOSSAUDIO:U/dev/dsp}\" +.else +CONFIGURE_ARGS+= --disable-oss +.endif + + +SUBST_CLASSES+= jacksrc +SUBST_FILES.jacksrc= libjack/unlock.c +SUBST_MESSAGE.jacksrc= Peforming substitutions in JACK sources. +SUBST_STAGE.jacksrc= pre-build +SUBST_VARS.jacksrc= PREFIX JACKD_PROCFS_PATH + +post-extract: + ${RUN} \ + ${MKDIR} ${WRKSRC}/config/os/netbsd && \ + ${CP} ${FILESDIR}/atomicity.h \ + ${WRKSRC}/config/os/netbsd + +.include "../../audio/libsamplerate/buildlink3.mk" .include "../../devel/readline/buildlink3.mk" +.include "../../mk/dlopen.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" -.include "../../mk/oss.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |