Date: Fri, 29 Jun 2007 16:44:56 -0500 (CDT) From: Dan Nelson <dnelson@allantgroup.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/114141: [PATCH] audio/sox; update to 13.0.0 Message-ID: <200706292144.l5TLiu4o004892@dan.emsphone.com> Resent-Message-ID: <200706292210.l5TMA1ZY052307@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 114141 >Category: ports >Synopsis: [PATCH] audio/sox; update to 13.0.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Jun 29 22:10:00 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Dan Nelson >Release: FreeBSD 7.0-CURRENT i386 >Organization: The Allant Group >Environment: System: FreeBSD dan.emsphone.com 7.0-CURRENT FreeBSD 7.0-CURRENT #447: Thu Jun 28 10:30:51 CDT 2007 zsh@dan.emsphone.com:/usr/src-7/sys/i386/compile/DANSMP i386 >Description: Sox 13.0.0 was released back in February and I didn't notice. The following patch updates the port. I have also switched the default dependencies in OPTIONS from no to yes, to make the package more useful. >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/audio/sox/Makefile,v retrieving revision 1.34 diff -u -r1.34 Makefile --- Makefile 4 Sep 2006 22:00:44 -0000 1.34 +++ Makefile 28 Jun 2007 19:06:39 -0000 @@ -6,7 +6,7 @@ # PORTNAME= sox -PORTVERSION= 12.18.2 +PORTVERSION= 13.0.0 CATEGORIES= audio MASTER_SITES= SF @@ -15,57 +15,80 @@ CONFLICTS= play-[0-9]* -MAN1= sox.1 play.1 soxexam.1 -MLINKS= play.1 rec.1 sox.1 soxmix.1 +MAN1= sox.1 +MAN3= libst.3 +MAN7= soxexam.7 +MLINKS= sox.1 play.1 sox.1 rec.1 GNU_CONFIGURE= yes -MAKE_ENV= PLAY_SUPPORT=1 - -OPTIONS= LAME "Enable mp3 encoding with LAME" off \ - MAD "Enable mp3 decoding with MAD" off \ - VORBIS "Enable Ogg Vorbis support" off \ - GSM "Enable GSM audio codec support" off - -PLIST_FILES= bin/sox bin/soxmix bin/rec bin/play -CONFIGURE_ARGS= --disable-alsa-dsp --disable-sun-audio +USE_LDCONFIG= yes +# src/Makefile uses ${RM} but never sets it +MAKE_ENV+= RM="rm -f" + +OPTIONS= FLAC "Enable libflac" on \ + GSM "Use libgsm from ports (else use bundled lib)" on \ + LAME "Enable mp3 encoding with LAME" on \ + MAD "Enable mp3 decoding with MAD" on \ + SNDFILE "Enable libsndfile" on \ + VORBIS "Enable Ogg Vorbis support" on .include <bsd.port.pre.mk> -.if defined(WITH_VORBIS) || defined(WITH_LAME) || defined(WITH_MAD) || defined(WITH_GSM) +.if defined(WITH_FLAC) || defined(WITH_GSM) || defined(WITH_LAME) || \ + defined(WITH_MAD) || defined(WITH_SNDFILE) || defined(WITH_VORBIS) CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" .endif .if defined(WITH_VORBIS) -CONFIGURE_ARGS+= --enable-ogg-vorbis +CONFIGURE_ARGS+= --with-ogg-vorbis LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis .else -CONFIGURE_ARGS+= --disable-ogg-vorbis +CONFIGURE_ARGS+= --without-ogg-vorbis +# Above configure flag does not exist, so workaround with the below line +CONFIGURE_ENV+= ac_cv_header_vorbis_codec_h=no +.endif + +.if defined(WITH_SNDFILE) +CONFIGURE_ARGS+= --with-sndfile +LIB_DEPENDS+= sndfile.1:${PORTSDIR}/audio/libsndfile +.else +CONFIGURE_ARGS+= --without-sndfile .endif .if defined(WITH_LAME) -CONFIGURE_ARGS+= --enable-lame +CONFIGURE_ARGS+= --with-lame LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame .else -CONFIGURE_ARGS+= --disable-lame +CONFIGURE_ARGS+= --without-lame +.endif + +.if defined(WITH_FLAC) +CONFIGURE_ARGS+= --with-flac +LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac +.else +CONFIGURE_ARGS+= --without-flac .endif .if defined(WITH_MAD) -CONFIGURE_ARGS+= --enable-mad +CONFIGURE_ARGS+= --with-mad LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad .else -CONFIGURE_ARGS+= --disable-mad +CONFIGURE_ARGS+= --without-mad .endif .if defined(WITH_GSM) -CONFIGURE_ARGS+= --enable-external-gsm +CONFIGURE_ARGS+= --with-external-gsm LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm .else -CONFIGURE_ARGS+= --disable-external-gsm --disable-gsm +CONFIGURE_ARGS+= --without-external-gsm +# Above configure flag does not exist, so workaround with the below line +CONFIGURE_ENV+= ac_cv_header_gsm_h=no .endif +# Tell configure that libgsm's headers are in $LOCALDIR/include post-patch: - @${REINPLACE_CMD} -Ee 's![[:<:]]gsm/!!' ${WRKSRC}/configure ${WRKSRC}/src/Makefile.gcc \ + @${REINPLACE_CMD} -Ee 's![[:<:]]gsm/gsm.h!gsm.h!' ${WRKSRC}/configure \ ${WRKSRC}/src/gsm.c ${WRKSRC}/src/wav.c .include <bsd.port.post.mk> Index: distinfo =================================================================== RCS file: /home/ncvs/ports/audio/sox/distinfo,v retrieving revision 1.15 diff -u -r1.15 distinfo --- distinfo 4 Sep 2006 22:00:44 -0000 1.15 +++ distinfo 25 Jun 2007 17:09:48 -0000 @@ -1,3 +1,3 @@ -MD5 (sox-12.18.2.tar.gz) = ba25e512a6c824d6e56d76767a18af99 -SHA256 (sox-12.18.2.tar.gz) = 832bf98c95580af879fe51311c861ba7c57f07a5791628108ef29a027f0271ff -SIZE (sox-12.18.2.tar.gz) = 486814 +MD5 (sox-13.0.0.tar.gz) = 0243d62895caee558b5294d5b78cfbcb +SHA256 (sox-13.0.0.tar.gz) = c66c52cfa42fe126592563c3d8974007a9858bd35d2c1136389a721eeebb9f8e +SIZE (sox-13.0.0.tar.gz) = 725259 Index: pkg-plist =================================================================== RCS file: pkg-plist diff -N pkg-plist --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg-plist 28 Jun 2007 18:50:12 -0000 @@ -0,0 +1,11 @@ +@comment $FreeBSD$ +bin/libst-config +bin/play +bin/rec +bin/sox +include/st.h +include/ststdint.h +lib/libst.a +lib/libst.la +lib/libst.so +lib/libst.so.0 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706292144.l5TLiu4o004892>