2004-03-09 20:27:51 +00:00
|
|
|
# New ports collection Makefile for: jackit
|
|
|
|
# Date created: 14 May 2002
|
|
|
|
# Whom: arved
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-12-07 19:42:00 +00:00
|
|
|
#
|
2004-03-09 20:27:51 +00:00
|
|
|
|
2006-03-15 13:32:42 +00:00
|
|
|
PORTNAME= jackit
|
2010-04-16 13:18:50 +00:00
|
|
|
PORTVERSION= 0.118.0
|
2010-12-16 17:34:13 +00:00
|
|
|
PORTREVISION= 3
|
2006-03-15 13:32:42 +00:00
|
|
|
CATEGORIES= audio
|
2009-03-30 18:21:21 +00:00
|
|
|
MASTER_SITES= http://jackaudio.org/downloads/
|
2007-04-16 17:39:04 +00:00
|
|
|
DISTNAME= jack-audio-connection-kit-${PORTVERSION}
|
2004-03-09 20:27:51 +00:00
|
|
|
|
2006-06-09 18:59:20 +00:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2006-03-15 13:32:42 +00:00
|
|
|
COMMENT= A low-latency audio server
|
2004-03-09 20:27:51 +00:00
|
|
|
|
2006-03-15 13:32:42 +00:00
|
|
|
LIB_DEPENDS= portaudio.0:${PORTSDIR}/audio/portaudio \
|
2009-03-30 18:21:21 +00:00
|
|
|
sndfile.1:${PORTSDIR}/audio/libsndfile \
|
|
|
|
samplerate.1:${PORTSDIR}/audio/libsamplerate \
|
|
|
|
celt.0:${PORTSDIR}/audio/celt
|
2004-03-09 20:27:51 +00:00
|
|
|
|
2006-03-15 13:32:42 +00:00
|
|
|
LATEST_LINK= jack
|
|
|
|
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
2008-10-07 23:46:21 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-portaudio \
|
|
|
|
--with-default-tmpdir=/tmp
|
2006-03-15 13:32:42 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-03-30 18:21:21 +00:00
|
|
|
USE_GMAKE= yes
|
2006-12-06 19:10:16 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-03-15 13:32:42 +00:00
|
|
|
USE_GNOME= pkgconfig gnometarget gnomehack
|
2004-03-09 20:27:51 +00:00
|
|
|
|
2006-03-15 13:32:42 +00:00
|
|
|
MAN1= jackd.1 jackstart.1
|
2004-03-09 20:27:51 +00:00
|
|
|
|
2010-12-16 17:34:13 +00:00
|
|
|
OPTIONS= ALSA "Build with ALSA compatibility library" off
|
|
|
|
|
2004-04-16 09:58:27 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-05-11 19:08:02 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-03-15 13:32:42 +00:00
|
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_prog_HAVE_DOXYGEN="false"
|
2005-03-16 08:58:02 +00:00
|
|
|
.endif
|
|
|
|
|
2009-05-12 11:28:17 +00:00
|
|
|
.if exists(${LOCALBASE}/lib/libreadline.so.6)
|
|
|
|
LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline
|
2006-12-06 19:10:16 +00:00
|
|
|
.endif
|
|
|
|
|
2010-12-16 17:34:13 +00:00
|
|
|
.if defined(WITH_ALSA)
|
|
|
|
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
|
|
|
|
PLIST_SUB+= ALSA=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-alsa
|
|
|
|
PLIST_SUB+= ALSA="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-03-09 20:27:51 +00:00
|
|
|
post-patch:
|
2007-04-16 19:29:59 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|define USE_MLOCK|undef USE_MLOCK|' \
|
|
|
|
${WRKSRC}/configure
|
2006-03-15 13:32:42 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS}," \
|
2004-03-09 20:27:51 +00:00
|
|
|
${WRKSRC}/configure ${WRKSRC}/libjack/Makefile.in \
|
|
|
|
${WRKSRC}/jackd/Makefile.in \
|
2004-03-15 21:22:31 +00:00
|
|
|
${WRKSRC}/example-clients/Makefile.in ${WRKSRC}/jack.pc.in
|
2006-03-15 13:32:42 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,-lrt,," ${WRKSRC}/libjack/Makefile.in \
|
2004-03-09 20:27:51 +00:00
|
|
|
${WRKSRC}/jackd/Makefile.in \
|
|
|
|
${WRKSRC}/example-clients/Makefile.in
|
2006-03-15 13:32:42 +00:00
|
|
|
@${REINPLACE_CMD} -e "s,-ldl,," ${WRKSRC}/jackd/Makefile.in \
|
2004-03-09 20:27:51 +00:00
|
|
|
${WRKSRC}/example-clients/Makefile.in
|
2006-12-07 19:42:00 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|md5sum|md5 -q|g' \
|
|
|
|
${WRKSRC}/jackd/Makefile.in
|
2009-05-11 19:08:02 +00:00
|
|
|
@${RM} -f ${WRKSRC}/doc/reference/html/*
|
2006-03-15 13:32:42 +00:00
|
|
|
|
2005-12-21 18:00:59 +00:00
|
|
|
post-build:
|
2006-03-15 13:32:42 +00:00
|
|
|
@${RM} -f ${WRKSRC}/doc/reference/html/dir__2F*
|
2004-03-09 20:27:51 +00:00
|
|
|
|
2004-04-16 09:58:27 +00:00
|
|
|
.include <bsd.port.post.mk>
|