freebsd-ports/audio/jack-example-tools/Makefile
Hans Petter Selasky 93344cda77 audio/jack: Update to 1.9.20 release.
The FreeBSD specific changes have been upstreamed, we can fetch the original
sources again. Development of the client examples and tools has been split
from the JACK server, move them to the new port jack-example-tools.

This also includes a fix for missing library symbols, see bug #257696.

Take maintainership of audio/jack and audio/jack-example-tools .

PR: 257696
PR: 261256

Submitted by:   Florian Walpen <dev@submerge.ch>
Approved by:	pi (implicit)
2022-01-19 11:44:09 +01:00

49 lines
1.2 KiB
Makefile

PORTNAME= jack-example-tools
DISTVERSION= 1
CATEGORIES= audio
MAINTAINER= dev@submerge.ch
COMMENT= Low latency audio server
LICENSE= GPLv2 GPLv3+
LICENSE_COMB= multi
LIB_DEPENDS= libjack.so:audio/jack \
libsndfile.so:audio/libsndfile \
libsamplerate.so:audio/libsamplerate \
libsysinfo.so:devel/libsysinfo
USES= compiler:c11 pkgconfig meson localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= jackaudio
CFLAGS+= -fPIC
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= -Djack_net=enabled -Djack_netsource=enabled -Djack_rec=enabled
OPTIONS_DEFINE= ALSA READLINE OPUS
OPTIONS_DEFAULT= READLINE OPUS
OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib \
libzita-alsa-pcmi.so:audio/zita-alsa-pcmi \
libzita-resampler.so:audio/zita-resampler
ALSA_MESON_ENABLED= alsa_in_out zalsa
READLINE_USES= readline
READLINE_MESON_ENABLED= readline_support
READLINE_LDFLAGS= -lreadline
OPUS_LIB_DEPENDS= libopus.so:audio/opus
OPUS_MESON_ENABLED= opus_support
.include <bsd.port.pre.mk>
# The alloca.h header is not available on FreeBSD. Upstream knows:
# https://github.com/jackaudio/jack-example-tools/pull/56
post-extract:
@${TOUCH} ${WRKSRC}/tools/alloca.h
.include <bsd.port.post.mk>