2018-12-05 20:19:00 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.71 2018/12/05 20:19:01 naddy Exp $
|
2015-12-12 08:17:34 +00:00
|
|
|
|
|
|
|
BROKEN-hppa = bend.c:155:12: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7697
|
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
|
|
|
|
2015-03-18 13:13:08 +00:00
|
|
|
DISTNAME= sox-14.4.2
|
2018-12-05 20:19:00 +00:00
|
|
|
REVISION= 5
|
2015-03-18 13:13:08 +00:00
|
|
|
SHARED_LIBS += sox 4.0 # 3.0
|
2011-06-15 08:29:34 +00:00
|
|
|
|
1998-05-17 01:05:56 +00:00
|
|
|
CATEGORIES= audio
|
2001-10-27 14:02:22 +00:00
|
|
|
HOMEPAGE= http://sox.sourceforge.net/
|
2011-06-15 08:29:34 +00:00
|
|
|
MAINTAINER= Jan Stary <hans@stare.cz>
|
2000-09-10 16:05:01 +00:00
|
|
|
|
2018-03-17 16:14:34 +00:00
|
|
|
# GPLv2+
|
2009-04-06 18:56:55 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-03-07 05:00:49 +00:00
|
|
|
|
2012-03-26 20:37:07 +00:00
|
|
|
WANTLIB += c m z sndio
|
2015-03-18 13:13:08 +00:00
|
|
|
WANTLIB += FLAC gsm mad id3tag mp3lame ogg
|
|
|
|
WANTLIB += sndfile vorbis vorbisenc vorbisfile
|
|
|
|
WANTLIB += opus opusfile twolame wavpack
|
2016-09-20 10:16:27 +00:00
|
|
|
WANTLIB += iconv png
|
2010-10-18 22:43:10 +00:00
|
|
|
|
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
|
2012-03-26 20:37:07 +00:00
|
|
|
LIB_DEPENDS= \
|
2015-03-18 13:13:08 +00:00
|
|
|
audio/flac \
|
|
|
|
audio/gsm \
|
2012-03-26 20:37:07 +00:00
|
|
|
audio/libmad \
|
|
|
|
audio/libid3tag \
|
|
|
|
audio/lame \
|
2015-03-18 13:13:08 +00:00
|
|
|
audio/libogg \
|
2012-03-26 20:37:07 +00:00
|
|
|
audio/libsndfile \
|
2015-03-18 13:13:08 +00:00
|
|
|
audio/libvorbis \
|
|
|
|
audio/opus \
|
|
|
|
audio/opusfile \
|
|
|
|
audio/twolame \
|
|
|
|
audio/wavpack \
|
2016-09-12 22:20:36 +00:00
|
|
|
converters/libiconv \
|
2015-03-18 13:13:08 +00:00
|
|
|
graphics/png
|
2009-01-08 19:48:21 +00:00
|
|
|
|
2009-11-06 00:04:37 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2016-03-11 20:28:21 +00:00
|
|
|
CONFIGURE_ARGS= --datarootdir=${LOCALBASE} \
|
2015-03-18 13:13:08 +00:00
|
|
|
--enable-largefile \
|
|
|
|
--disable-silent-libtool \
|
|
|
|
--disable-openmp \
|
|
|
|
--enable-symlinks \
|
|
|
|
--without-libltdl \
|
|
|
|
--with-distro=OpenBSD
|
2009-01-08 19:48:21 +00:00
|
|
|
|
|
|
|
# Sound drivers
|
2012-03-26 20:37:07 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-ao \
|
|
|
|
--without-oss \
|
|
|
|
--without-alsa \
|
|
|
|
--without-coreaudio \
|
|
|
|
--without-pulseaudio \
|
|
|
|
--without-waveaudio \
|
|
|
|
--without-sunaudio \
|
|
|
|
--with-sndio
|
2009-01-08 19:48:21 +00:00
|
|
|
|
|
|
|
# Additional file formats
|
2012-03-26 20:37:07 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2016-09-20 10:16:27 +00:00
|
|
|
--without-magic \
|
2012-03-26 20:37:07 +00:00
|
|
|
--with-png \
|
|
|
|
--without-ladspa \
|
|
|
|
--with-mad \
|
|
|
|
--with-id3tag \
|
|
|
|
--with-lame \
|
|
|
|
--with-twolame \
|
|
|
|
--with-oggvorbis \
|
2015-03-18 13:13:08 +00:00
|
|
|
--with-opus \
|
2012-03-26 20:37:07 +00:00
|
|
|
--with-flac \
|
2018-03-17 16:14:34 +00:00
|
|
|
--without-amrwb \
|
|
|
|
--without-amrnb \
|
2012-03-26 20:37:07 +00:00
|
|
|
--with-wavpack \
|
|
|
|
--with-sndfile \
|
|
|
|
--with-mp3 \
|
2015-03-18 13:13:08 +00:00
|
|
|
--with-gsm \
|
|
|
|
--with-lpc10
|
2009-01-08 19:48:21 +00:00
|
|
|
|
|
|
|
CONFIGURE_ENV= \
|
2011-06-15 08:29:34 +00:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
2010-09-26 13:40:11 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2009-01-16 16:42:56 +00:00
|
|
|
|
2013-03-10 22:55:01 +00:00
|
|
|
do-test:
|
2004-10-15 18:45:50 +00:00
|
|
|
@cd ${WRKSRC}/src && ./tests.sh && ./testall.sh
|
2001-10-27 14:02:22 +00:00
|
|
|
|
2015-12-03 09:25:22 +00:00
|
|
|
# Attempt to avoid SIGILL in gcc.
|
2015-12-03 14:44:49 +00:00
|
|
|
MODULES+= gcc4
|
2015-12-03 09:25:22 +00:00
|
|
|
MODGCC4_ARCHS= hppa
|
|
|
|
|
1998-05-17 01:05:56 +00:00
|
|
|
.include <bsd.port.mk>
|