- Update to 14.1.0

- Toggle LAME option off while package building

PR:		ports/127593
Submitted by:	Dan Nelson <dnelson@allantgroup.com> (maintainer)
This commit is contained in:
Pav Lucistnik 2008-09-24 12:12:26 +00:00
parent b6fbc3d224
commit cb88912bd9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220665
4 changed files with 105 additions and 17 deletions

View file

@ -6,8 +6,7 @@
# #
PORTNAME= sox PORTNAME= sox
PORTVERSION= 14.0.1 PORTVERSION= 14.1.0
PORTREVISION= 1
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF MASTER_SITES= SF
@ -16,16 +15,23 @@ COMMENT= SOund eXchange - universal sound sample translator
CONFLICTS= play-[0-9]* CONFLICTS= play-[0-9]*
MAN1= sox.1 MAN1= sox.1 soxi.1
MAN3= libsox.3 MAN3= libsox.3
MAN7= soxexam.7 soxformat.7 soxeffect.7 MAN7= soxformat.7 soxeffect.7
MLINKS= sox.1 play.1 sox.1 rec.1 MLINKS= sox.1 play.1 sox.1 rec.1
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_LDCONFIG= yes USE_LDCONFIG= yes
USE_AUTOTOOLS= libltdl USE_AUTOTOOLS= libltdl
USE_GNOME= pkgconfig
# src/Makefile uses ${RM} but never sets it # src/Makefile uses ${RM} but never sets it
MAKE_ENV+= RM="rm -f" MAKE_ENV+= RM="rm -f"
.if defined(PACKAGE_BUILDING)
_LAME= off
.else
_LAME= on
.endif
OPTIONS= AO "Enable libao output" on \ OPTIONS= AO "Enable libao output" on \
AMRNB "AMR Speech Codec (Narrowband)" off \ AMRNB "AMR Speech Codec (Narrowband)" off \
AMRWB "AMR Speech Codec (Wideband)" off \ AMRWB "AMR Speech Codec (Wideband)" off \
@ -33,17 +39,20 @@ OPTIONS= AO "Enable libao output" on \
FLAC "Enable flac en/decoding with libflac" on \ FLAC "Enable flac en/decoding with libflac" on \
GSM "Use libgsm from ports (else use bundled lib)" on \ GSM "Use libgsm from ports (else use bundled lib)" on \
LADSPA "Audio plugin support" off \ LADSPA "Audio plugin support" off \
LAME "Enable mp3 encoding with LAME" on \ LAME "Enable mp3 encoding with LAME" ${_LAME} \
MAD "Enable mp3 decoding with MAD" on \ MAD "Enable mp3 decoding with MAD" on \
SAMPLERATE "Enable libsamplerate" on \ SAMPLERATE "Enable libsamplerate" on \
SNDFILE "Enable libsndfile" on \ SNDFILE "Enable libsndfile" on \
VORBIS "Enable Ogg Vorbis support" on VORBIS "Enable Ogg Vorbis support" on \
WAVPACK "Enable Wavpack support" off
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig"
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
.if !defined(WITH_LAME) && !defined(WITH_MAD) .if !defined(WITH_LAME) && !defined(WITH_MAD)
PLIST_SUB+= PLIST_MP3="@comment " PLIST_SUB+= PLIST_MP3="@comment "
@ -154,9 +163,20 @@ LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
CONFIGURE_ARGS+= --without-samplerate CONFIGURE_ARGS+= --without-samplerate
.endif .endif
.if defined(WITH_WAVPACK)
CONFIGURE_ARGS+= --with-wavpack
LIB_DEPENDS+= wavpack.1:${PORTSDIR}/audio/wavpack
PLIST_SUB+= PLIST_WAVPACK=""
.else
CONFIGURE_ARGS+= --without-wavpack
PLIST_SUB+= PLIST_WAVPACK="@comment "
.endif
# Tell configure that libgsm's headers are in $LOCALDIR/include # Tell configure that libgsm's headers are in $LOCALDIR/include
post-patch: post-patch:
@${REINPLACE_CMD} -Ee 's![[:<:]]gsm/gsm.h!gsm.h!' ${WRKSRC}/configure \ @${REINPLACE_CMD} -Ee 's![[:<:]]gsm/gsm.h!gsm.h!' ${WRKSRC}/configure \
${WRKSRC}/src/gsm.c ${WRKSRC}/src/wav.c ${WRKSRC}/src/gsm.c ${WRKSRC}/src/wav.c
@${REINPLACE_CMD} -Ee 's!ffmpeg/avformat.h!libavformat/avformat.h!' \
${WRKSRC}/configure ${WRKSRC}/src/ffmpeg.c
.include <bsd.port.post.mk> .include <bsd.port.post.mk>

View file

@ -1,3 +1,3 @@
MD5 (sox-14.0.1.tar.gz) = 6c95af60b20b9655531bf3162c0be937 MD5 (sox-14.1.0.tar.gz) = b8e2cb3d615d3830347a0948dd8b74a8
SHA256 (sox-14.0.1.tar.gz) = 52398a49bef64aa6e06b158cb59b3e1790fa1bf94262b896688bcfdcf539ca73 SHA256 (sox-14.1.0.tar.gz) = 319cf07ee06fcbfbcaced7307e23ca567739c278f76bc143a9258a9a23e42101
SIZE (sox-14.0.1.tar.gz) = 859538 SIZE (sox-14.1.0.tar.gz) = 912057

View file

@ -0,0 +1,14 @@
Fix badly-imbalanced parens.
diff -burp sox-14.1.0/src/sox.c sox-14.1.0-dan/src/sox.c
--- src/sox.c 2008-07-28 15:04:36.000000000 -0500
+++ src/sox.c 2008-07-30 11:36:41.046073378 -0500
@@ -1716,7 +1716,7 @@ int main(int argc, char **argv)
combine_method = sox_concatenate;
/* Make sure we got at least the required # of input filenames */
- if (input_count < is_serial(combine_method ? 1 : 2))
+ if (input_count < (is_serial(combine_method) ? 1 : 2))
usage("Not enough input filenames specified");
/* Check for misplaced input/output-specific options */

View file

@ -2,6 +2,7 @@
bin/play bin/play
bin/rec bin/rec
bin/sox bin/sox
bin/soxi
include/sox.h include/sox.h
include/soxstdint.h include/soxstdint.h
lib/libsfx.a lib/libsfx.a
@ -40,14 +41,14 @@ lib/sox/libsox_fmt_au.a
lib/sox/libsox_fmt_au.la lib/sox/libsox_fmt_au.la
lib/sox/libsox_fmt_au.so lib/sox/libsox_fmt_au.so
lib/sox/libsox_fmt_au.so.0 lib/sox/libsox_fmt_au.so.0
lib/sox/libsox_fmt_auto.a
lib/sox/libsox_fmt_auto.la
lib/sox/libsox_fmt_auto.so
lib/sox/libsox_fmt_auto.so.0
lib/sox/libsox_fmt_avr.a lib/sox/libsox_fmt_avr.a
lib/sox/libsox_fmt_avr.la lib/sox/libsox_fmt_avr.la
lib/sox/libsox_fmt_avr.so lib/sox/libsox_fmt_avr.so
lib/sox/libsox_fmt_avr.so.0 lib/sox/libsox_fmt_avr.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_caf.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_caf.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_caf.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_caf.so.0
lib/sox/libsox_fmt_cdr.a lib/sox/libsox_fmt_cdr.a
lib/sox/libsox_fmt_cdr.la lib/sox/libsox_fmt_cdr.la
lib/sox/libsox_fmt_cdr.so lib/sox/libsox_fmt_cdr.so
@ -64,6 +65,18 @@ lib/sox/libsox_fmt_dvms.a
lib/sox/libsox_fmt_dvms.la lib/sox/libsox_fmt_dvms.la
lib/sox/libsox_fmt_dvms.so lib/sox/libsox_fmt_dvms.so
lib/sox/libsox_fmt_dvms.so.0 lib/sox/libsox_fmt_dvms.so.0
lib/sox/libsox_fmt_f4.a
lib/sox/libsox_fmt_f4.la
lib/sox/libsox_fmt_f4.so
lib/sox/libsox_fmt_f4.so.0
lib/sox/libsox_fmt_f8.a
lib/sox/libsox_fmt_f8.la
lib/sox/libsox_fmt_f8.so
lib/sox/libsox_fmt_f8.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_fap.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_fap.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_fap.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_fap.so.0
%%PLIST_FFMPEG%%lib/sox/libsox_fmt_ffmpeg.a %%PLIST_FFMPEG%%lib/sox/libsox_fmt_ffmpeg.a
%%PLIST_FFMPEG%%lib/sox/libsox_fmt_ffmpeg.la %%PLIST_FFMPEG%%lib/sox/libsox_fmt_ffmpeg.la
%%PLIST_FFMPEG%%lib/sox/libsox_fmt_ffmpeg.so %%PLIST_FFMPEG%%lib/sox/libsox_fmt_ffmpeg.so
@ -80,6 +93,10 @@ lib/sox/libsox_fmt_hcom.a
lib/sox/libsox_fmt_hcom.la lib/sox/libsox_fmt_hcom.la
lib/sox/libsox_fmt_hcom.so lib/sox/libsox_fmt_hcom.so
lib/sox/libsox_fmt_hcom.so.0 lib/sox/libsox_fmt_hcom.so.0
lib/sox/libsox_fmt_htk.a
lib/sox/libsox_fmt_htk.la
lib/sox/libsox_fmt_htk.so
lib/sox/libsox_fmt_htk.so.0
lib/sox/libsox_fmt_ima.a lib/sox/libsox_fmt_ima.a
lib/sox/libsox_fmt_ima.la lib/sox/libsox_fmt_ima.la
lib/sox/libsox_fmt_ima.so lib/sox/libsox_fmt_ima.so
@ -96,6 +113,14 @@ lib/sox/libsox_fmt_lu.a
lib/sox/libsox_fmt_lu.la lib/sox/libsox_fmt_lu.la
lib/sox/libsox_fmt_lu.so lib/sox/libsox_fmt_lu.so
lib/sox/libsox_fmt_lu.so.0 lib/sox/libsox_fmt_lu.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat4.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat4.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat4.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat4.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat5.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat5.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat5.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_mat5.so.0
lib/sox/libsox_fmt_maud.a lib/sox/libsox_fmt_maud.a
lib/sox/libsox_fmt_maud.la lib/sox/libsox_fmt_maud.la
lib/sox/libsox_fmt_maud.so lib/sox/libsox_fmt_maud.so
@ -112,10 +137,18 @@ lib/sox/libsox_fmt_oss.a
lib/sox/libsox_fmt_oss.la lib/sox/libsox_fmt_oss.la
lib/sox/libsox_fmt_oss.so lib/sox/libsox_fmt_oss.so
lib/sox/libsox_fmt_oss.so.0 lib/sox/libsox_fmt_oss.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_paf.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_paf.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_paf.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_paf.so.0
lib/sox/libsox_fmt_prc.a lib/sox/libsox_fmt_prc.a
lib/sox/libsox_fmt_prc.la lib/sox/libsox_fmt_prc.la
lib/sox/libsox_fmt_prc.so lib/sox/libsox_fmt_prc.so
lib/sox/libsox_fmt_prc.so.0 lib/sox/libsox_fmt_prc.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_pvf.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_pvf.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_pvf.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_pvf.so.0
lib/sox/libsox_fmt_raw.a lib/sox/libsox_fmt_raw.a
lib/sox/libsox_fmt_raw.la lib/sox/libsox_fmt_raw.la
lib/sox/libsox_fmt_raw.so lib/sox/libsox_fmt_raw.so
@ -136,6 +169,10 @@ lib/sox/libsox_fmt_s4.a
lib/sox/libsox_fmt_s4.la lib/sox/libsox_fmt_s4.la
lib/sox/libsox_fmt_s4.so lib/sox/libsox_fmt_s4.so
lib/sox/libsox_fmt_s4.so.0 lib/sox/libsox_fmt_s4.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_sd2.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_sd2.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_sd2.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_sd2.so.0
lib/sox/libsox_fmt_sf.a lib/sox/libsox_fmt_sf.a
lib/sox/libsox_fmt_sf.la lib/sox/libsox_fmt_sf.la
lib/sox/libsox_fmt_sf.so lib/sox/libsox_fmt_sf.so
@ -148,10 +185,14 @@ lib/sox/libsox_fmt_smp.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_sndfile.la %%PLIST_SNDFILE%%lib/sox/libsox_fmt_sndfile.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_sndfile.so %%PLIST_SNDFILE%%lib/sox/libsox_fmt_sndfile.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_sndfile.so.0 %%PLIST_SNDFILE%%lib/sox/libsox_fmt_sndfile.so.0
lib/sox/libsox_fmt_sndrtool.a lib/sox/libsox_fmt_sounder.a
lib/sox/libsox_fmt_sndrtool.la lib/sox/libsox_fmt_sounder.la
lib/sox/libsox_fmt_sndrtool.so lib/sox/libsox_fmt_sounder.so
lib/sox/libsox_fmt_sndrtool.so.0 lib/sox/libsox_fmt_sounder.so.0
lib/sox/libsox_fmt_soundtool.a
lib/sox/libsox_fmt_soundtool.la
lib/sox/libsox_fmt_soundtool.so
lib/sox/libsox_fmt_soundtool.so.0
lib/sox/libsox_fmt_sphere.a lib/sox/libsox_fmt_sphere.a
lib/sox/libsox_fmt_sphere.la lib/sox/libsox_fmt_sphere.la
lib/sox/libsox_fmt_sphere.so lib/sox/libsox_fmt_sphere.so
@ -196,10 +237,18 @@ lib/sox/libsox_fmt_vox.a
lib/sox/libsox_fmt_vox.la lib/sox/libsox_fmt_vox.la
lib/sox/libsox_fmt_vox.so lib/sox/libsox_fmt_vox.so
lib/sox/libsox_fmt_vox.so.0 lib/sox/libsox_fmt_vox.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_w64.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_w64.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_w64.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_w64.so.0
lib/sox/libsox_fmt_wav.a lib/sox/libsox_fmt_wav.a
lib/sox/libsox_fmt_wav.la lib/sox/libsox_fmt_wav.la
lib/sox/libsox_fmt_wav.so lib/sox/libsox_fmt_wav.so
lib/sox/libsox_fmt_wav.so.0 lib/sox/libsox_fmt_wav.so.0
%%PLIST_WAVPACK%%lib/sox/libsox_fmt_wavpack.a
%%PLIST_WAVPACK%%lib/sox/libsox_fmt_wavpack.la
%%PLIST_WAVPACK%%lib/sox/libsox_fmt_wavpack.so
%%PLIST_WAVPACK%%lib/sox/libsox_fmt_wavpack.so.0
lib/sox/libsox_fmt_wve.a lib/sox/libsox_fmt_wve.a
lib/sox/libsox_fmt_wve.la lib/sox/libsox_fmt_wve.la
lib/sox/libsox_fmt_wve.so lib/sox/libsox_fmt_wve.so
@ -208,4 +257,9 @@ lib/sox/libsox_fmt_xa.a
lib/sox/libsox_fmt_xa.la lib/sox/libsox_fmt_xa.la
lib/sox/libsox_fmt_xa.so lib/sox/libsox_fmt_xa.so
lib/sox/libsox_fmt_xa.so.0 lib/sox/libsox_fmt_xa.so.0
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_xi.a
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_xi.la
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_xi.so
%%PLIST_SNDFILE%%lib/sox/libsox_fmt_xi.so.0
@dirrm lib/sox @dirrm lib/sox
libdata/pkgconfig/sox.pc