blob: 4fd6ac1d310521adcd0cc5e9be03082b9c7c7042 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Created by: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$
PORTNAME= jackit
PORTVERSION= 0.124.1
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://jackaudio.org/downloads/
DISTNAME= jack-audio-connection-kit-${PORTVERSION}
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Low latency audio server
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile \
libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
libcelt0.so:${PORTSDIR}/audio/celt \
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= gmake pathfix pkgconfig libtool:keepla
USE_BDB= 48+
CONFIGURE_ARGS= --disable-portaudio \
--with-default-tmpdir=/tmp
CFLAGS+= -I${BDB_INCLUDE_DIR}
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -L${BDB_LIB_DIR}
INSTALL_TARGET= install-strip
LATEST_LINK= jack
OPTIONS_DEFINE= ALSA DOXYGEN READLINE
OPTIONS_DEFAULT=READLINE
OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_ENABLE= alsa
READLINE_LIB_DEPENDS= libreadline.so:${PORTSDIR}/devel/readline
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
.else
CONFIGURE_ENV+= ac_cv_prog_HAVE_DOXYGEN="false"
.endif
.if ! ${PORT_OPTIONS:MREADLINE}
CONFIGURE_ENV+= ac_cv_lib_readline_readline=no \
ac_cv_header_readline_chardefs_h=no
.endif
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} -f ${WRKSRC}/doc/reference/html/*
post-build:
@${RM} -f ${WRKSRC}/doc/reference/html/dir__2F*
.include <bsd.port.mk>
|