2012-12-13 05:30:19 +01:00
|
|
|
# Created by: The Anarcat <anarcat@anarcat.dyndns.org>
|
2000-12-26 06:52:15 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ecasound
|
2012-06-17 22:07:46 +02:00
|
|
|
PORTVERSION= 2.9.0
|
2000-12-26 06:52:15 +01:00
|
|
|
CATEGORIES= audio
|
2012-06-17 22:07:46 +02:00
|
|
|
MASTER_SITES= http://ecasound.seul.org/download/ \
|
|
|
|
http://eca.cx/download/ \
|
|
|
|
http://ecawave.sourceforge.net/download/
|
2000-12-26 06:52:15 +01:00
|
|
|
|
2005-11-26 06:13:18 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= Multitrack audio processing software
|
2000-12-26 06:52:15 +01:00
|
|
|
|
2012-06-17 22:07:46 +02:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2007-10-08 16:08:18 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
|
|
|
|
2013-07-27 01:46:21 +02:00
|
|
|
OPTIONS_DEFINE= ALSA AUDIOFILE JACK LO OIL PYTHON SAMPLERATE
|
2012-06-17 22:07:46 +02:00
|
|
|
OPTIONS_DEFAULT=PYTHON
|
2012-06-01 08:57:16 +02:00
|
|
|
AUDIOFILE_DESC= Enable libaudiofile support
|
|
|
|
LO_DESC= Enable liblo support
|
|
|
|
OIL_DESC= Enable liboil support
|
2008-08-19 00:08:13 +02:00
|
|
|
|
2013-05-06 17:34:17 +02:00
|
|
|
USES= readline
|
2005-12-18 11:37:06 +01:00
|
|
|
USE_GMAKE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2012-06-17 22:07:46 +02:00
|
|
|
CONFIGURE_ARGS= --disable-liblilv \
|
2007-01-10 19:21:44 +01:00
|
|
|
--disable-rubyecasound \
|
2013-07-27 01:46:21 +02:00
|
|
|
--enable-sys-readline \
|
|
|
|
--disable-arts
|
2006-08-14 12:08:25 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-06-17 22:07:46 +02:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2001-04-25 00:22:44 +02:00
|
|
|
|
2009-11-02 11:54:24 +01:00
|
|
|
MAN1= ecaconvert.1 ecafixdc.1 ecalength.1 ecamonitor.1 \
|
|
|
|
ecanormalize.1 ecaplay.1 ecasignalview.1 ecasound.1 \
|
|
|
|
ecasound-iam.1 ecatools.1
|
2005-12-18 11:37:06 +01:00
|
|
|
MAN5= ecasoundrc.5
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2001-03-17 14:40:04 +01:00
|
|
|
|
2012-06-17 22:07:46 +02:00
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
|
|
|
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-alsa
|
2006-08-06 07:38:13 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MAUDIOFILE}
|
2012-06-17 22:07:46 +02:00
|
|
|
LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile
|
2001-03-17 14:40:04 +01:00
|
|
|
.else
|
2001-04-25 00:22:44 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-audiofile
|
2001-03-17 14:40:04 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MJACK}
|
2012-06-17 22:07:46 +02:00
|
|
|
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack
|
2005-12-18 11:37:06 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-jack
|
2001-12-06 20:18:09 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MLO}
|
2012-06-17 22:07:46 +02:00
|
|
|
LIB_DEPENDS+= lo:${PORTSDIR}/audio/liblo
|
2010-09-18 17:57:28 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-liblo
|
2009-11-02 11:54:24 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MOIL}
|
2012-06-17 22:07:46 +02:00
|
|
|
LIB_DEPENDS+= oil-0.3:${PORTSDIR}/devel/liboil
|
2010-09-18 17:57:28 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-liboil
|
2009-11-02 11:54:24 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-17 22:07:46 +02:00
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
|
|
USE_PYTHON= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-pyecasound
|
|
|
|
PLIST_SUB+= PYTHON=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PYTHON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MSAMPLERATE}
|
2012-06-17 22:07:46 +02:00
|
|
|
LIB_DEPENDS+= samplerate:${PORTSDIR}/audio/libsamplerate
|
2005-12-18 11:37:06 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libsamplerate --disable-sndfile
|
2001-12-06 20:18:09 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2007-10-08 16:08:18 +02:00
|
|
|
@${REINPLACE_CMD} -e '/test/s|==|=|g ; \
|
|
|
|
s| $$EXTRAGCCFLAGS||g ; \
|
2009-11-02 11:54:24 +01:00
|
|
|
s| $$EXTRACPPFLAGS||g ; \
|
2005-12-18 11:37:06 +01:00
|
|
|
s| -pthread||g ; \
|
|
|
|
s| -D_THREAD_SAFE||g ; \
|
|
|
|
s| -D_P1003_1B_VISIBLE||' ${WRKSRC}/configure
|
2000-12-26 06:52:15 +01:00
|
|
|
|
2012-06-01 08:57:16 +02:00
|
|
|
.include <bsd.port.mk>
|