1994-10-23 02:16:15 +01:00
|
|
|
# New ports collection makefile for: sox - Sound Exchange
|
|
|
|
# Date created: 17 Oct 1994
|
|
|
|
# Whom: torstenb
|
|
|
|
#
|
1999-08-25 06:36:31 +02:00
|
|
|
# $FreeBSD$
|
1994-10-23 02:16:15 +01:00
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= sox
|
2011-06-11 04:47:50 +02:00
|
|
|
PORTVERSION= 14.3.2
|
2012-07-19 22:15:37 +02:00
|
|
|
PORTREVISION= 5
|
1996-11-16 00:14:56 +01:00
|
|
|
CATEGORIES= audio
|
2006-09-05 00:00:44 +02:00
|
|
|
MASTER_SITES= SF
|
1994-10-23 02:16:15 +01:00
|
|
|
|
2003-07-17 06:52:08 +02:00
|
|
|
MAINTAINER= dnelson@allantgroup.com
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= SOund eXchange - universal sound sample translator
|
1994-10-23 02:16:15 +01:00
|
|
|
|
2012-09-23 23:19:18 +02:00
|
|
|
LICENSE= LGPL21 GPLv2
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2004-12-21 11:42:02 +01:00
|
|
|
CONFLICTS= play-[0-9]*
|
2004-08-19 14:47:48 +02:00
|
|
|
|
2008-09-24 14:12:26 +02:00
|
|
|
MAN1= sox.1 soxi.1
|
2008-02-16 00:29:27 +01:00
|
|
|
MAN3= libsox.3
|
2008-11-15 19:57:47 +01:00
|
|
|
MAN7= soxformat.7
|
|
|
|
MLINKS= sox.1 play.1 sox.1 rec.1 sox.1 soxeffect.7
|
2006-09-05 00:00:44 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-07 15:38:15 +02:00
|
|
|
USE_LDCONFIG= yes
|
2008-02-16 00:29:27 +01:00
|
|
|
USE_AUTOTOOLS= libltdl
|
2012-09-23 23:19:18 +02:00
|
|
|
USE_PKGCONFIG= build
|
2001-10-22 20:44:30 +02:00
|
|
|
|
2009-09-18 21:32:50 +02:00
|
|
|
# Default LAME to off for packages so we don't end up RESTRICTED
|
2008-09-24 14:12:26 +02:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
_LAME= off
|
|
|
|
.else
|
|
|
|
_LAME= on
|
|
|
|
.endif
|
|
|
|
|
2010-12-16 18:34:41 +01:00
|
|
|
OPTIONS= ALSA "ALSA output driver" off \
|
|
|
|
AO "Enable libao output" on \
|
2008-02-16 00:29:27 +01:00
|
|
|
AMRNB "AMR Speech Codec (Narrowband)" off \
|
|
|
|
AMRWB "AMR Speech Codec (Wideband)" off \
|
|
|
|
FFMPEG "Enable ffmpeg en/decoding" on \
|
|
|
|
FLAC "Enable flac en/decoding with libflac" on \
|
2007-07-07 15:38:15 +02:00
|
|
|
GSM "Use libgsm from ports (else use bundled lib)" on \
|
2009-09-18 21:32:50 +02:00
|
|
|
ID3TAG "Enable mp3 tagging with libid3tag" on \
|
2008-02-16 00:29:27 +01:00
|
|
|
LADSPA "Audio plugin support" off \
|
2008-09-24 14:12:26 +02:00
|
|
|
LAME "Enable mp3 encoding with LAME" ${_LAME} \
|
2007-07-07 15:38:15 +02:00
|
|
|
MAD "Enable mp3 decoding with MAD" on \
|
2008-12-15 15:56:34 +01:00
|
|
|
PNG "Enable PNG spectrogram creation" on \
|
2007-07-07 15:38:15 +02:00
|
|
|
SNDFILE "Enable libsndfile" on \
|
2008-09-24 14:12:26 +02:00
|
|
|
VORBIS "Enable Ogg Vorbis support" on \
|
|
|
|
WAVPACK "Enable Wavpack support" off
|
2006-06-02 17:24:22 +02:00
|
|
|
|
2005-11-23 00:55:38 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-07-17 06:52:08 +02:00
|
|
|
|
2006-09-05 00:00:44 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2008-02-16 00:29:27 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2008-09-24 14:12:26 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig"
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-distro="${CONFIGURE_TARGET} ${PKGNAME}"
|
2008-02-16 00:29:27 +01:00
|
|
|
|
2010-12-16 18:34:41 +01:00
|
|
|
.if defined(WITH_ALSA)
|
|
|
|
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
|
|
|
|
CONFIGURE_ARGS+= --with-alsa
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-alsa
|
|
|
|
.endif
|
|
|
|
|
2008-02-16 00:29:27 +01:00
|
|
|
.if defined(WITH_AO)
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ao
|
2010-06-06 22:39:21 +02:00
|
|
|
LIB_DEPENDS+= ao.4:${PORTSDIR}/audio/libao
|
2008-02-16 00:29:27 +01:00
|
|
|
.else
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-ao
|
2008-02-16 00:29:27 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_AMRNB)
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-amrnb
|
2008-02-16 00:29:27 +01:00
|
|
|
LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb
|
|
|
|
.else
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-amrnb
|
2008-02-16 00:29:27 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_AMRWB)
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-amrwb
|
2008-02-16 00:29:27 +01:00
|
|
|
LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb
|
|
|
|
.else
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-amrwb
|
2008-02-16 00:29:27 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FFMPEG)
|
|
|
|
CONFIGURE_ARGS+= --with-ffmpeg
|
2012-09-23 23:19:18 +02:00
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
2008-02-16 00:29:27 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ffmpeg
|
2003-07-17 06:52:08 +02:00
|
|
|
.endif
|
|
|
|
|
2001-10-22 20:44:30 +02:00
|
|
|
.if defined(WITH_VORBIS)
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-oggvorbis
|
2007-07-28 14:27:31 +02:00
|
|
|
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
|
2001-10-22 20:44:30 +02:00
|
|
|
.else
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-oggvorbis
|
2007-07-07 15:38:15 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SNDFILE)
|
|
|
|
CONFIGURE_ARGS+= --with-sndfile
|
|
|
|
LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sndfile
|
2008-02-16 00:29:27 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LADSPA)
|
|
|
|
CONFIGURE_ARGS+= --with-ladspa
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/ladspa/filter.so:${PORTSDIR}/audio/ladspa
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ladspa
|
2003-07-17 06:52:08 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LAME)
|
2007-07-07 15:38:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-lame
|
2003-07-17 06:52:08 +02:00
|
|
|
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame
|
|
|
|
.else
|
2007-07-07 15:38:15 +02:00
|
|
|
CONFIGURE_ARGS+= --without-lame
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FLAC)
|
|
|
|
CONFIGURE_ARGS+= --with-flac
|
2008-04-07 22:37:23 +02:00
|
|
|
LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac
|
2007-07-07 15:38:15 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-flac
|
2003-07-17 06:52:08 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MAD)
|
2007-07-07 15:38:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mad
|
2003-12-08 08:56:05 +01:00
|
|
|
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad
|
2003-07-17 06:52:08 +02:00
|
|
|
.else
|
2007-07-07 15:38:15 +02:00
|
|
|
CONFIGURE_ARGS+= --without-mad
|
2003-07-17 06:52:08 +02:00
|
|
|
.endif
|
|
|
|
|
2008-12-15 15:56:34 +01:00
|
|
|
.if defined(WITH_PNG)
|
|
|
|
CONFIGURE_ARGS+= --with-png
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
|
2008-12-15 15:56:34 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-png
|
|
|
|
.endif
|
|
|
|
|
2006-09-05 00:00:44 +02:00
|
|
|
.if defined(WITH_GSM)
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gsm
|
2006-09-05 00:00:44 +02:00
|
|
|
LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm
|
|
|
|
.else
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gsm
|
|
|
|
# We cannot ask for gsm to be enabled without it trying to use external gsm,
|
2011-06-11 04:47:50 +02:00
|
|
|
# so force the autoconf checks to fail
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \
|
|
|
|
ac_cv_lib_gsm_gsm_create=no
|
2008-02-16 00:29:27 +01:00
|
|
|
.endif
|
|
|
|
|
2009-09-18 21:32:50 +02:00
|
|
|
.if defined(WITH_ID3TAG)
|
|
|
|
CONFIGURE_ARGS+= --with-id3tag
|
|
|
|
LIB_DEPENDS+= id3tag.0:${PORTSDIR}/audio/libid3tag
|
2008-02-16 00:29:27 +01:00
|
|
|
.else
|
2009-09-18 21:32:50 +02:00
|
|
|
CONFIGURE_ARGS+= --without-id3tag
|
2006-09-05 00:00:44 +02:00
|
|
|
.endif
|
|
|
|
|
2008-09-24 14:12:26 +02:00
|
|
|
.if defined(WITH_WAVPACK)
|
|
|
|
CONFIGURE_ARGS+= --with-wavpack
|
2010-04-10 16:38:28 +02:00
|
|
|
LIB_DEPENDS+= wavpack.2:${PORTSDIR}/audio/wavpack
|
2008-09-24 14:12:26 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-wavpack
|
|
|
|
.endif
|
|
|
|
|
2003-07-17 06:52:08 +02:00
|
|
|
.include <bsd.port.post.mk>
|