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