2009-11-08 09:56:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2009/11/08 14:56:33 naddy 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
|
|
|
|
2009-11-05 19:04:37 -05:00
|
|
|
DISTNAME= sox-14.3.0
|
|
|
|
SHARED_LIBS += sox 1.0 # .1.0
|
1998-05-16 21:05:56 -04:00
|
|
|
CATEGORIES= audio
|
2001-10-27 10:02:22 -04:00
|
|
|
HOMEPAGE= http://sox.sourceforge.net/
|
2000-09-10 12:05:01 -04:00
|
|
|
|
2009-11-05 19:04:37 -05: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
|
|
|
|
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
|
|
|
|
LIB_DEPENDS= vorbis.>=6,vorbisenc.>=2,vorbisfile.>=5::audio/libvorbis \
|
|
|
|
FLAC.>=9::audio/flac \
|
|
|
|
magic.>=1::devel/libmagic \
|
|
|
|
mad.>=2::audio/libmad \
|
|
|
|
id3tag.>=3::audio/libid3tag \
|
|
|
|
mp3lame.>=2::audio/lame \
|
2009-01-11 12:33:56 -05:00
|
|
|
wavpack.>=0::audio/wavpack \
|
2009-01-08 14:48:21 -05:00
|
|
|
png.>=8::graphics/png \
|
2009-04-06 14:56:55 -04:00
|
|
|
gsm.>=1::audio/gsm
|
2009-01-16 11:42:56 -05:00
|
|
|
WANTLIB= c iconv m ogg sndio z
|
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} \
|
|
|
|
--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 \
|
|
|
|
--with-sndio \
|
|
|
|
--without-sunaudio
|
2009-01-08 14:48:21 -05:00
|
|
|
|
|
|
|
# Additional file formats
|
|
|
|
CONFIGURE_ARGS+=--without-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 \
|
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 \
|
|
|
|
--without-ladspa
|
|
|
|
|
|
|
|
CONFIGURE_ENV= \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
|
2009-01-16 11:42:56 -05:00
|
|
|
LDFLAGS="-L${WRKBUILD}/src/.libs -L${LOCALBASE}/lib"
|
|
|
|
|
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>
|