- 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 <tkato432@yahoo.com>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-10-14 14:54:54 +00:00
parent b2ea7bbbf9
commit 9ad6b3281d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330331
3 changed files with 33 additions and 56 deletions

View file

@ -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 <bsd.port.options.mk>
.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 <bsd.port.mk>

View file

@ -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/

View file

@ -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