ports/165006: [patch] add missing dependencies to audio/audacity-devel

4721 at hushmail.com 4721 at hushmail.com
Sat Feb 11 23:50:07 UTC 2012

>Number:         165006
>Category:       ports
>Synopsis:       [patch] add missing dependencies to audio/audacity-devel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 11 23:50:07 UTC 2012
>Originator:     4721 at hushmail.com
the ffmpeg, flac, ladspa, samplerate, and vorbis options were not hooked up to
*_DEPENDS, so they would only function if they happened to be already installed
on the system. (and add unrecorded dependencies). explicit *_DEPENDS have been
added to resolve this.

the libsamplerate option was actually controlling the libresample option, which
now correctly switches between audacity internal libresample and system
libsamplerate depending on the build option.

audacity also linked to libsamplerate and jack if installed, even if explicitly
disabled. they are now optionally patched out to stop this, which enables jack
to be a conditional dependency now.



Patch attached with submission follows:

--- audio/audacity-devel/Makefile	28 Dec 2011 20:50:28 -0000	1.57
+++ audio/audacity-devel/Makefile	10 Feb 2012 21:55:57 -0000
@@ -15,8 +15,10 @@
 MAINTAINER=	xxjack12xx at gmail.com
 COMMENT=	Audacity is a GUI editor for digital audio waveforms
-LIB_DEPENDS=	jack:${PORTSDIR}/audio/jack \
-		sndfile.1:${PORTSDIR}/audio/libsndfile
+LIB_DEPENDS=	sndfile.1:${PORTSDIR}/audio/libsndfile
 CONFLICTS=	audacity-[0-9]*
@@ -38,11 +39,12 @@
 OPTIONS=	FFMPEG		"Use ffmpeg for import and export support" on \
 		FLAC		"Use libFLAC for FLAC support" on \
 		ID3TAG		"Use libid3tag for mp3 id3 tag support" on \
+		JACK		"Use JACK audio server" on \
 		LADSPA		"LADSPA plug-in support" on \
 		MAD		"Use libmad for mp2/3 decoding support"	on \
 		NYQUIST		"Nyquist plug-in support" on \
 		PORTMIXER	"Compile with PortMixer" on \
-		SAMPLERATE	"Use libresample for sample rate conversion" on \
+		SAMPLERATE	"Use libsamplerate for sample rate conversion" on \
 		SBSMS		"Use libsbsms for pitch and tempo changing" on \
 		SOUNDTOUCH 	"Use libSoundTouch for pitch and tempo changing" on\
 		TAGLIB		"Use TagLib for metadata support" on \
@@ -76,25 +78,35 @@
 CONFIGURE_ARGS+=	--enable-unicode
 .if defined(WITH_FFMPEG)
+RUN_DEPENDS+=		ffmpeg:${PORTSDIR}/multimedia/ffmpeg
 CONFIGURE_ARGS+=	--with-ffmpeg
 CONFIGURE_ARGS+=	--without-ffmpeg
 .if defined(WITH_FLAC)
+LIB_DEPENDS+=		FLAC.10:${PORTSDIR}/audio/flac
 CONFIGURE_ARGS+=	--with-libflac
 CONFIGURE_ARGS+=	--without-libflac
 .if defined(WITH_ID3TAG)
-LIB_DEPENDS+=		id3tag:${PORTSDIR}/audio/libid3tag
+LIB_DEPENDS+=		id3tag.0:${PORTSDIR}/audio/libid3tag
 CONFIGURE_ARGS+=	--with-libid3tag
 CONFIGURE_ARGS+=	--without-libid3tag
+.if defined(WITH_JACK)
+LIB_DEPENDS+=		jack.0:${PORTSDIR}/audio/jack
+CONFIGURE_ARGS+=	--with-jack
+CONFIGURE_ARGS+=	--without-jack
 .if defined(WITH_LADSPA)
+RUN_DEPENDS+=		listplugins:${PORTSDIR}/audio/ladspa
 CONFIGURE_ARGS+=	--enable-ladspa
 CONFIGURE_ARGS+=	--disable-ladspa
@@ -120,9 +132,10 @@
 .if defined(WITH_SAMPLERATE)
-CONFIGURE_ARGS+=	--with-libresample
+LIB_DEPENDS+=		samplerate.1:${PORTSDIR}/audio/libsamplerate
+CONFIGURE_ARGS+=	--with-libsamplerate
-CONFIGURE_ARGS+=	--without-libresample
+CONFIGURE_ARGS+=	--without-libsamplerate
 .if defined(WITH_SBSMS)
@@ -132,21 +145,21 @@
 .if defined(WITH_SOUNDTOUCH)
-LIB_DEPENDS+=		SoundTouch:${PORTSDIR}/audio/soundtouch
+LIB_DEPENDS+=		SoundTouch.0:${PORTSDIR}/audio/soundtouch
 CONFIGURE_ARGS+=	--with-soundtouch
 CONFIGURE_ARGS+=	--without-soundtouch
 .if defined(WITH_TWOLAME)
-LIB_DEPENDS+=		twolame:${PORTSDIR}/audio/twolame
+LIB_DEPENDS+=		twolame.0:${PORTSDIR}/audio/twolame
 CONFIGURE_ARGS+=	--with-libtwolame
 CONFIGURE_ARGS+=	--without-libtwolame
 .if defined(WITH_TAGLIB)
-LIB_DEPENDS+=		tag:${PORTSDIR}/audio/taglib
+LIB_DEPENDS+=		tag.1:${PORTSDIR}/audio/taglib
 CONFIGURE_ARGS+=	--with-taglib
 CONFIGURE_ARGS+=	--without-taglib
@@ -159,9 +172,23 @@
 .if defined(WITH_VORBIS)
+LIB_DEPENDS+=		vorbis.4:${PORTSDIR}/audio/libvorbis
 CONFIGURE_ARGS+=	--with-libvorbis
 CONFIGURE_ARGS+=	--without-libvorbis
+#audacity links to some dependencies if present, even if explicitly disabled.
+#these must be patched out for the case when they are installed but
+#option-disabled to avoid unrecorded dependencies.
+.if defined(WITHOUT_JACK)
+	@${REINPLACE_CMD} -e 's|PKG_CHECK_MODULES(JACK, jack, have_jack=yes, have_jack=no)|have_jack=no|' ${WRKSRC}/configure.in
+	@${REINPLACE_CMD} -e 's|libresample.a -lsamplerate $(LIBS)|libresample.a $(LIBS)|' ${WRKSRC}/lib-src/libresample/Makefile.in
 .include <bsd.port.post.mk>


More information about the freebsd-ports-bugs mailing list