2012-03-23 09:16:41 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.50 2012/03/23 13:16:41 sthen Exp $
|
1998-05-16 21:05:56 -04:00
|
|
|
|
2009-01-08 14:48:21 -05:00
|
|
|
COMMENT= Sound eXchange, the Swiss Army knife of audio manipulation
|
2001-10-27 10:02:22 -04:00
|
|
|
|
2012-03-23 09:16:41 -04:00
|
|
|
DISTNAME= sox-14.4.0
|
|
|
|
SHARED_LIBS += sox 3.0 # .2.0
|
2011-06-15 04:29:34 -04:00
|
|
|
|
1998-05-16 21:05:56 -04:00
|
|
|
CATEGORIES= audio
|
2001-10-27 10:02:22 -04:00
|
|
|
HOMEPAGE= http://sox.sourceforge.net/
|
2011-06-15 04:29:34 -04:00
|
|
|
MAINTAINER= Jan Stary <hans@stare.cz>
|
2000-09-10 12:05:01 -04:00
|
|
|
|
2011-06-15 04:29:34 -04:00
|
|
|
# GPLv2+
|
2009-04-06 14:56:55 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2005-02-22 17:04:41 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2009-04-06 14:56:55 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2005-02-22 17:04:41 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-03-07 00:00:49 -05:00
|
|
|
|
2011-01-03 14:22:59 -05:00
|
|
|
MODULES= converters/libiconv
|
|
|
|
|
|
|
|
WANTLIB += c m ogg sndio z
|
2010-10-18 18:43:10 -04:00
|
|
|
WANTLIB += vorbis vorbisenc vorbisfile FLAC magic
|
|
|
|
WANTLIB += mad id3tag mp3lame wavpack png gsm
|
2012-03-23 09:16:41 -04:00
|
|
|
WANTLIB += sndfile twolame
|
2010-10-18 18:43:10 -04:00
|
|
|
|
2006-07-13 03:43:40 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sox/}
|
2001-10-27 10:02:22 -04:00
|
|
|
|
2009-01-08 14:48:21 -05:00
|
|
|
# see CONFIGURE_ARGS below
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS= audio/libvorbis \
|
|
|
|
audio/flac \
|
|
|
|
devel/libmagic \
|
|
|
|
audio/libmad \
|
|
|
|
audio/libid3tag \
|
2012-03-23 09:16:41 -04:00
|
|
|
audio/libsndfile \
|
|
|
|
audio/twolame \
|
2010-11-14 19:22:45 -05:00
|
|
|
audio/lame \
|
|
|
|
audio/wavpack \
|
|
|
|
graphics/png \
|
|
|
|
audio/gsm
|
2009-01-08 14:48:21 -05:00
|
|
|
|
2011-06-15 04:29:34 -04:00
|
|
|
USE_GROFF= Yes
|
2009-01-08 14:48:21 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2009-11-05 19:04:37 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2009-01-08 14:48:21 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2012-03-23 09:16:41 -04:00
|
|
|
--datarootdir=${LOCALBASE} \
|
2009-01-08 14:48:21 -05:00
|
|
|
--disable-silent-libtool
|
|
|
|
|
|
|
|
# Don't use modules
|
|
|
|
CONFIGURE_ARGS+=--without-libltdl
|
|
|
|
|
|
|
|
# Sound drivers
|
2009-11-05 19:04:37 -05:00
|
|
|
CONFIGURE_ARGS+=--without-ao \
|
|
|
|
--without-oss \
|
2012-03-23 09:16:41 -04:00
|
|
|
--without-alsa \
|
|
|
|
--without-coreaudio \
|
|
|
|
--without-pulseaudio \
|
|
|
|
--without-waveaudio \
|
2009-11-05 19:04:37 -05:00
|
|
|
--with-sndio \
|
|
|
|
--without-sunaudio
|
2009-01-08 14:48:21 -05:00
|
|
|
|
|
|
|
# Additional file formats
|
2012-03-23 09:16:41 -04:00
|
|
|
CONFIGURE_ARGS+=--with-sndfile \
|
2009-11-05 19:04:37 -05:00
|
|
|
--with-oggvorbis \
|
2009-01-08 14:48:21 -05:00
|
|
|
--with-flac \
|
|
|
|
--without-ffmpeg \
|
|
|
|
--with-magic \
|
|
|
|
--with-mad \
|
|
|
|
--with-id3tag \
|
|
|
|
--with-lame \
|
2012-03-23 09:16:41 -04:00
|
|
|
--with-twolame \
|
2009-11-05 19:04:37 -05:00
|
|
|
--without-amrwb \
|
|
|
|
--without-amrnb \
|
2009-01-11 12:33:56 -05:00
|
|
|
--with-wavpack \
|
2009-01-08 14:48:21 -05:00
|
|
|
--with-png \
|
2012-03-23 09:16:41 -04:00
|
|
|
--with-gsm \
|
2009-01-08 14:48:21 -05:00
|
|
|
--without-ladspa
|
|
|
|
|
|
|
|
CONFIGURE_ENV= \
|
2011-06-15 04:29:34 -04:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
2010-09-26 09:40:11 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2009-01-16 11:42:56 -05:00
|
|
|
|
2004-10-15 14:45:50 -04:00
|
|
|
do-regress:
|
|
|
|
@cd ${WRKSRC}/src && ./tests.sh && ./testall.sh
|
2001-10-27 10:02:22 -04:00
|
|
|
|
1998-05-16 21:05:56 -04:00
|
|
|
.include <bsd.port.mk>
|