[98934] trunk/dports/multimedia/mediainfo
ryandesign at macports.org
ryandesign at macports.org
Sun Oct 21 02:54:37 PDT 2012
Revision: 98934
http://trac.macports.org//changeset/98934
Author: ryandesign at macports.org
Date: 2012-10-21 02:54:37 -0700 (Sun, 21 Oct 2012)
Log Message:
-----------
mediainfo: enable parallel building
Modified Paths:
--------------
trunk/dports/multimedia/mediainfo/Portfile
trunk/dports/multimedia/mediainfo/files/patch-CLI_Compile.sh.diff
Modified: trunk/dports/multimedia/mediainfo/Portfile
===================================================================
--- trunk/dports/multimedia/mediainfo/Portfile 2012-10-21 09:37:07 UTC (rev 98933)
+++ trunk/dports/multimedia/mediainfo/Portfile 2012-10-21 09:54:37 UTC (rev 98934)
@@ -36,6 +36,7 @@
build.args --prefix=${prefix} \
CC="${configure.cc} [get_canonical_archflags cc]" \
CXX="${configure.cxx} [get_canonical_archflags cxx]"
+build.env numprocs=${build.jobs}
destroot.dir ${worksrcpath}/MediaInfo/Project/GNU/CLI
destroot.cmd make
Modified: trunk/dports/multimedia/mediainfo/files/patch-CLI_Compile.sh.diff
===================================================================
--- trunk/dports/multimedia/mediainfo/files/patch-CLI_Compile.sh.diff 2012-10-21 09:37:07 UTC (rev 98933)
+++ trunk/dports/multimedia/mediainfo/files/patch-CLI_Compile.sh.diff 2012-10-21 09:54:37 UTC (rev 98934)
@@ -1,6 +1,21 @@
--- CLI_Compile.sh.orig 2012-09-02 02:05:09.000000000 -0500
-+++ CLI_Compile.sh 2012-10-21 04:25:32.000000000 -0500
-@@ -26,7 +26,7 @@
++++ CLI_Compile.sh 2012-10-21 04:51:20.000000000 -0500
+@@ -9,12 +9,11 @@
+ # Setup for parallel builds
+ Zen_Make()
+ {
+- if test -e /proc/stat; then
+- numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
++ if test -n "$numprocs"; then
+ if [ "$numprocs" = "0" ]; then
+ numprocs=1
+ fi
+- make -s -j$numprocs
++ make -j$numprocs
+ else
+ make
+ fi
+@@ -26,7 +25,7 @@
cd ZenLib/Project/GNU/Library/
test -e Makefile && rm Makefile
chmod u+x configure
@@ -9,7 +24,7 @@
if test -e Makefile; then
make clean
Zen_Make
-@@ -52,7 +52,7 @@
+@@ -52,7 +51,7 @@
cd MediaInfoLib/Project/GNU/Library/
test -e Makefile && rm Makefile
chmod u+x configure
@@ -18,7 +33,7 @@
if test -e Makefile; then
make clean
Zen_Make
-@@ -78,7 +78,7 @@
+@@ -78,7 +77,7 @@
cd MediaInfo/Project/GNU/CLI/
test -e Makefile && rm Makefile
chmod u+x configure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121021/8b95f233/attachment.html>
More information about the macports-changes
mailing list