1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/audio/ecasound/Makefile
2012-06-01 06:57:16 +00:00

92 lines
2.1 KiB
Makefile

# New ports collection makefile for: ecasound
# Date created: 22 dec 2000
# Whom: The Anarcat <anarcat@anarcat.dyndns.org>
#
# $FreeBSD$
#
PORTNAME= ecasound
PORTVERSION= 2.8.1
CATEGORIES= audio
MASTER_SITES= http://ecasound.seul.org/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Multitrack audio processing software
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
OPTIONS_DEFINE= ARTS AUDIOFILE JACK LO OIL SAMPLERATE
AUDIOFILE_DESC= Enable libaudiofile support
LO_DESC= Enable liblo support
OIL_DESC= Enable liboil support
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --disable-pyecasound \
--disable-rubyecasound \
--enable-sys-readline
USE_LDCONFIG= yes
MAN1= ecaconvert.1 ecafixdc.1 ecalength.1 ecamonitor.1 \
ecanormalize.1 ecaplay.1 ecasignalview.1 ecasound.1 \
ecasound-iam.1 ecatools.1
MAN5= ecasoundrc.5
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
.include <bsd.port.options.mk>
.if exists(${LOCALBASE}/lib/libreadline.so.6)
LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline
.endif
.if ${PORT_OPTIONS:MARTS}
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
.else
CONFIGURE_ARGS+= --disable-arts
.endif
.if ${PORT_OPTIONS:MAUDIOFILE}
LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+= --disable-audiofile
.endif
.if ${PORT_OPTIONS:MJACK}
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
.else
CONFIGURE_ARGS+= --disable-jack
.endif
.if ${PORT_OPTIONS:MLO}
LIB_DEPENDS+= lo.7:${PORTSDIR}/audio/liblo
.else
CONFIGURE_ARGS+= --disable-liblo
.endif
.if ${PORT_OPTIONS:MOIL}
LIB_DEPENDS+= oil-0.3.0:${PORTSDIR}/devel/liboil
.else
CONFIGURE_ARGS+= --disable-liboil
.endif
.if ${PORT_OPTIONS:MSAMPLERATE}
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
.else
CONFIGURE_ARGS+= --disable-libsamplerate --disable-sndfile
.endif
post-patch:
@${REINPLACE_CMD} -e '/test/s|==|=|g ; \
s| $$EXTRAGCCFLAGS||g ; \
s| $$EXTRACPPFLAGS||g ; \
s| -pthread||g ; \
s| -D_THREAD_SAFE||g ; \
s| -D_P1003_1B_VISIBLE||' ${WRKSRC}/configure
.include <bsd.port.mk>