From 9ad6b3281d7dff5f1d0541303f941b887bbef32f Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Mon, 14 Oct 2013 14:54:54 +0000 Subject: [PATCH] - Update MASTER_SITES and WWW - While I'm here: - Remove deprecated PTHREAD_* - Convert to new OPTIONS helper - Support STAGEDIR PR: ports/181887 Submitted by: KATO Tsuguru --- audio/ecasound/Makefile | 76 +++++++++++----------------------------- audio/ecasound/pkg-descr | 2 +- audio/ecasound/pkg-plist | 11 ++++++ 3 files changed, 33 insertions(+), 56 deletions(-) diff --git a/audio/ecasound/Makefile b/audio/ecasound/Makefile index 59e19f0241b9..efc21a3fad67 100644 --- a/audio/ecasound/Makefile +++ b/audio/ecasound/Makefile @@ -5,7 +5,7 @@ PORTNAME= ecasound PORTVERSION= 2.9.0 CATEGORIES= audio MASTER_SITES= http://ecasound.seul.org/download/ \ - http://eca.cx/download/ \ + http://nosignal.fi/download/ \ http://ecawave.sourceforge.net/download/ MAINTAINER= ports@FreeBSD.org @@ -16,14 +16,11 @@ LICENSE_COMB= dual BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa -OPTIONS_DEFINE= ALSA AUDIOFILE JACK LO OIL PYTHON SAMPLERATE +OPTIONS_DEFINE= ALSA AUDIOFILE JACK LIBLO LIBOIL PYTHON SAMPLERATE SNDFILE OPTIONS_DEFAULT=PYTHON -AUDIOFILE_DESC= Enable libaudiofile support -LO_DESC= Enable liblo support -OIL_DESC= Enable liboil support +OPTIONS_SUB= PYTHON USES= gmake readline -NO_STAGE= yes USE_AUTOTOOLS= libtool CONFIGURE_ARGS= --disable-liblilv \ --disable-rubyecasound \ @@ -31,66 +28,35 @@ CONFIGURE_ARGS= --disable-liblilv \ --disable-arts USE_LDCONFIG= yes -CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -pthread -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 +ALSA_CONFIGURE_ENABLE= alsa +ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib +AUDIOFILE_CONFIGURE_ENABLE= audiofile +AUDIOFILE_LIB_DEPENDS= libaudiofilei.so:${PORTSDIR}/audio/libaudiofile +JACK_CONFIGURE_ENABLE= jack +JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack +LO_CONFIGURE_ENABLE= liblo +LO_LIB_DEPENDS= liblo.so:${PORTSDIR}/audio/liblo +OIL_CONFIGURE_ENABLE= liboil +OIL_LIB_DEPENDS= liboil-0.3.so:${PORTSDIR}/devel/liboil +PYTHON_CONFIGURE_ENABLE=pyecasound +SAMPLERATE_CONFIGURE_ENABLE= libsamplerate +SAMPLERATE_LIB_DEPENDS= libsamplerate.so:${PORTSDIR}/audio/libsamplerate +SNDFILE_CONFIGURE_ENABLE= sndfile +SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile .include -.if ${PORT_OPTIONS:MALSA} -LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib -.else -CONFIGURE_ARGS+= --disable-alsa -.endif - -.if ${PORT_OPTIONS:MAUDIOFILE} -LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile -.else -CONFIGURE_ARGS+= --disable-audiofile -.endif - -.if ${PORT_OPTIONS:MJACK} -LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack -.else -CONFIGURE_ARGS+= --disable-jack -.endif - -.if ${PORT_OPTIONS:MLO} -LIB_DEPENDS+= lo:${PORTSDIR}/audio/liblo -.else -CONFIGURE_ARGS+= --disable-liblo -.endif - -.if ${PORT_OPTIONS:MOIL} -LIB_DEPENDS+= oil-0.3:${PORTSDIR}/devel/liboil -.else -CONFIGURE_ARGS+= --disable-liboil -.endif - .if ${PORT_OPTIONS:MPYTHON} USE_PYTHON= yes -CONFIGURE_ARGS+= --enable-pyecasound -PLIST_SUB+= PYTHON="" -.else -PLIST_SUB+= PYTHON="@comment " -.endif - -.if ${PORT_OPTIONS:MSAMPLERATE} -LIB_DEPENDS+= samplerate:${PORTSDIR}/audio/libsamplerate -.else -CONFIGURE_ARGS+= --disable-libsamplerate --disable-sndfile .endif post-patch: - @${REINPLACE_CMD} -e '/test/s|==|=|g ; \ + @${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 diff --git a/audio/ecasound/pkg-descr b/audio/ecasound/pkg-descr index 1b94bfadf167..df4279253537 100644 --- a/audio/ecasound/pkg-descr +++ b/audio/ecasound/pkg-descr @@ -9,4 +9,4 @@ and MIDI-CCs. As most functionality is located in shared libraries, creating alternative user-interfaces is easy. A versatile console mode interface is included in the package. -WWW: http://www.eca.cx/ecasound/ +WWW: http://nosignal.fi/ecasound/ diff --git a/audio/ecasound/pkg-plist b/audio/ecasound/pkg-plist index e24d6643e0f6..78f429a21049 100644 --- a/audio/ecasound/pkg-plist +++ b/audio/ecasound/pkg-plist @@ -164,6 +164,17 @@ lib/libkvutils.la %%DATADIR%%/ecasoundrc %%DATADIR%%/effect_presets %%DATADIR%%/generic_oscillators +man/man1/ecaconvert.1.gz +man/man1/ecafixdc.1.gz +man/man1/ecalength.1.gz +man/man1/ecamonitor.1.gz +man/man1/ecanormalize.1.gz +man/man1/ecaplay.1.gz +man/man1/ecasignalview.1.gz +man/man1/ecasound-iam.1.gz +man/man1/ecasound.1.gz +man/man1/ecatools.1.gz +man/man5/ecasoundrc.5.gz @dirrm %%DATADIR%% @dirrm include/libecasoundc @dirrm include/libecasound