aboutsummaryrefslogtreecommitdiffstats
path: root/audio/jack/Makefile
blob: 6ab2ed6b247cab91b0693849b524096797b9bdda (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
# New ports collection Makefile for:    jackit
# Date created:         14 May 2002
# Whom:             arved
#
# $FreeBSD$

PORTNAME=       jackit
PORTVERSION=        0.94.0
CATEGORIES=     audio
MASTER_SITES=       ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= jackit
DISTNAME=       jack-audio-connection-kit-${PORTVERSION}

MAINTAINER=     ports@FreeBSD.org
COMMENT=        JACK is a low-latency audio server

LIB_DEPENDS=        portaudio.0:${PORTSDIR}/audio/portaudio \
            sndfile.1:${PORTSDIR}/audio/libsndfile

CONFIGURE_ENV=      LIBS="${PTHREAD_LIBS}" LDFLAGS="-L${LOCALBASE}/lib" \
            CPPFLAGS="-I${LOCALBASE}/include"
GNU_CONFIGURE=      yes
USE_GETOPT_LONG=    yes
USE_REINPLACE=      yes
USE_GNOME=      pkgconfig gnometarget gnomehack

MAN1=   jackd.1 jackstart.1

post-patch:
    ${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},"  \
        ${WRKSRC}/configure ${WRKSRC}/libjack/Makefile.in \
        ${WRKSRC}/jackd/Makefile.in \
        ${WRKSRC}/example-clients/Makefile.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

.include <bsd.port.mk>