[71172] trunk/dports/multimedia/ffmpeg

devans at macports.org devans at macports.org
Fri Sep 3 12:14:17 PDT 2010


Revision: 71172
          http://trac.macports.org/changeset/71172
Author:   devans at macports.org
Date:     2010-09-03 12:14:16 -0700 (Fri, 03 Sep 2010)
Log Message:
-----------
ffmpeg: add temporary counter-intuitive hack to allow building on single
processor machines while further testing proceeds.  The problem is still 
not well understood but this fix does work and doesn't effect machines with more
than one core/processor. See #25926.  In addition, add +verbose_build
variant to allow full listing of build commands when debugging.

Modified Paths:
--------------
    trunk/dports/multimedia/ffmpeg/Portfile

Added Paths:
-----------
    trunk/dports/multimedia/ffmpeg/files/patch-common.mak.diff

Modified: trunk/dports/multimedia/ffmpeg/Portfile
===================================================================
--- trunk/dports/multimedia/ffmpeg/Portfile	2010-09-03 18:50:32 UTC (rev 71171)
+++ trunk/dports/multimedia/ffmpeg/Portfile	2010-09-03 19:14:16 UTC (rev 71172)
@@ -78,6 +78,16 @@
                 port:bzip2 \
                 port:zlib
 
+#
+# temporary empirical counter-intuitive hack to enable building on
+# single processor/core machines see #25926
+# TODO: understand the root cause, why this works and/or apply a better fix
+#
+
+if {${build.jobs} < 2} {
+    build.jobs 2
+}
+
 build.cmd       gmake
 
 #
@@ -121,6 +131,10 @@
 
 universal_variant no
 
+variant verbose_build description {Emit full build commands during build} {
+    patchfiles-append patch-common.mak.diff
+}
+
 post-destroot {
     file mkdir ${destroot}${prefix}/share/doc/${name}
     file copy ${worksrcpath}/doc/TODO ${destroot}${prefix}/share/doc/${name}

Added: trunk/dports/multimedia/ffmpeg/files/patch-common.mak.diff
===================================================================
--- trunk/dports/multimedia/ffmpeg/files/patch-common.mak.diff	                        (rev 0)
+++ trunk/dports/multimedia/ffmpeg/files/patch-common.mak.diff	2010-09-03 19:14:16 UTC (rev 71172)
@@ -0,0 +1,13 @@
+--- common.mak.orig	2010-09-03 07:32:46.000000000 -0700
++++ common.mak	2010-09-03 07:33:53.000000000 -0700
+@@ -18,6 +18,10 @@
+ BUILD_ROOT_REL = ..
+ endif
+ 
++# enable verbose build
++
++V=1
++
+ ifndef V
+ Q      = @
+ ECHO   = printf "$(1)\t%s\n" $(2)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100903/e53c91d9/attachment-0001.html>


More information about the macports-changes mailing list