A ffmpeg variant of audio/sox

Jan Stary hans at stare.cz
Sat Jun 4 00:09:10 PDT 2011


I am using the audio/sox port. Currently, it has ffmpeg
as a dependency (to provide libavcodec.dylib); that pulls
in all the dependencies of ffmpeg, including the whole
xorg-* world.

I think this is unnecessary for a neat audio application that SoX is,
and the ffmpeg should only be a variant. The diff bellow does exactly
that.

	Jan




--- Portfile.orig	2011-06-03 23:17:23.000000000 +0200
+++ Portfile	2011-06-04 08:48:57.000000000 +0200
@@ -23,14 +23,12 @@
                  port:libid3tag \
                  port:libsamplerate \
                  port:libvorbis \
-                 path:lib/libavcodec.dylib:ffmpeg \
                  port:libmad \
                  port:flac \
                  port:wavpack \
                  port:file \
                  port:libpng
 
-# ffmpeg is not universal
 universal_variant no
 
 master_sites     sourceforge
@@ -38,9 +36,15 @@
 checksums        sha1    026636c90d7accba76225a2821aaa2ffa6fe41a3 \
                  rmd160  1b06f5349e24c459357c7da2428c36f0f576fdf6
 
 destroot.destdir prefix=${destroot}${prefix}
+
+variant ffmpeg description {Build with ffmpeg support} {
+	depends_lib-append      port:ffmpeg
+	configure.args-append   --with-ffmpeg
+}


More information about the macports-users mailing list