Ticket #12280: macports-makejobs.patch
File macports-makejobs.patch, 2.9 KB (added by afb@…, 17 years ago) |
---|
-
doc/macports.conf.in
40 46 # Supported types: tgz (default), tar, tbz, tbz2, xar, zip, cpgz, cpio 41 47 portarchivetype tgz 42 48 49 # Number of simultaneous make jobs (commands) to use when building ports 50 buildmakejobs 1 51 43 52 # Set whether to automatically execute "clean" after "install" of ports 44 53 portautoclean yes 45 54 -
src/macports1.0/macports.tcl
43 43 portinstalltype portarchivemode portarchivepath portarchivetype portautoclean \ 44 44 porttrace portverbose destroot_umask variants_conf rsync_server rsync_options \ 45 45 rsync_dir startupitem_type place_worksymlink xcodeversion xcodebuildcmd \ 46 mp_remote_url mp_remote_submit_url "46 mp_remote_url mp_remote_submit_url buildmakejobs" 47 47 variable user_options "submitter_name submitter_email submitter_key" 48 48 variable portinterp_options "\ 49 49 portdbpath portpath portbuildpath auto_path prefix prefix_frozen portsharepath \ 50 50 registry.path registry.format registry.installtype portarchivemode portarchivepath \ 51 51 portarchivetype portautoclean porttrace portverbose destroot_umask rsync_server \ 52 52 rsync_options rsync_dir startupitem_type place_worksymlink \ 53 mp_remote_url mp_remote_submit_url \53 mp_remote_url mp_remote_submit_url buildmakejobs \ 54 54 $user_options" 55 55 56 56 # deferred options are only computed when needed. … … 286 286 global macports::variants_conf 287 287 global macports::xcodebuildcmd 288 288 global macports::xcodeversion 289 global macports::buildmakejobs 289 290 290 291 # Set the system encoding to utf-8 291 292 encoding system utf-8 -
src/port1.0/portbuild.tcl
40 40 41 41 # define options 42 42 options build.target 43 options build.jobs 44 options build.max_jobs 43 45 commands build 44 46 # defaults 45 47 default build.dir {${workpath}/${worksrcdir}} 46 default build.cmd {[build_getmaketype]} 48 default build.cmd {[build_getmaketype][build_getmakejobs]} 49 default build.jobs {${buildmakejobs}} 47 50 default build.pre_args {${build.target}} 48 51 default build.target "all" 49 52 … … 91 93 } 92 94 } 93 95 96 proc build_getmakejobs {args} { 97 if {![exists build.jobs]} { 98 return "" 99 } 100 set jobs [option build.jobs] 101 if {$jobs == 1} { 102 return "" 103 } 104 if {[exists build.max_jobs]} { 105 if {$jobs > [option build.max_jobs]} { 106 set jobs [option build.max_jobs] 107 } 108 } 109 return " -j$jobs" 110 } 111 94 112 proc build_start {args} { 95 113 global UI_PREFIX 96 114