Changeset 98934


Ignore:
Timestamp:
Oct 21, 2012, 9:54:37 AM (12 years ago)
Author:
ryandesign@…
Message:

mediainfo: enable parallel building

Location:
trunk/dports/multimedia/mediainfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/mediainfo/Portfile

    r98933 r98934  
    3737                    CC="${configure.cc} [get_canonical_archflags cc]" \
    3838                    CXX="${configure.cxx} [get_canonical_archflags cxx]"
     39build.env           numprocs=${build.jobs}
    3940
    4041destroot.dir        ${worksrcpath}/MediaInfo/Project/GNU/CLI
  • trunk/dports/multimedia/mediainfo/files/patch-CLI_Compile.sh.diff

    r98933 r98934  
    11--- CLI_Compile.sh.orig 2012-09-02 02:05:09.000000000 -0500
    2 +++ CLI_Compile.sh      2012-10-21 04:25:32.000000000 -0500
    3 @@ -26,7 +26,7 @@
     2+++ CLI_Compile.sh      2012-10-21 04:51:20.000000000 -0500
     3@@ -9,12 +9,11 @@
     4 # Setup for parallel builds
     5 Zen_Make()
     6 {
     7- if test -e /proc/stat; then
     8-  numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
     9+ if test -n "$numprocs"; then
     10   if [ "$numprocs" = "0" ]; then
     11    numprocs=1
     12   fi
     13-  make -s -j$numprocs
     14+  make -j$numprocs
     15  else
     16   make
     17  fi
     18@@ -26,7 +25,7 @@
    419  cd ZenLib/Project/GNU/Library/
    520  test -e Makefile && rm Makefile
     
    1025   make clean
    1126   Zen_Make
    12 @@ -52,7 +52,7 @@
     27@@ -52,7 +51,7 @@
    1328  cd MediaInfoLib/Project/GNU/Library/
    1429  test -e Makefile && rm Makefile
     
    1934   make clean
    2035   Zen_Make
    21 @@ -78,7 +78,7 @@
     36@@ -78,7 +77,7 @@
    2237  cd MediaInfo/Project/GNU/CLI/
    2338  test -e Makefile && rm Makefile
Note: See TracChangeset for help on using the changeset viewer.