Changeset 948 for trunk/base
- Timestamp:
- Oct 5, 2002, 1:17:09 AM (22 years ago)
- Location:
- trunk/base
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/doc/portfile.7
r738 r948 527 527 Execute necessary build commands 528 528 .Bl -tag -width lc 529 .It Ic make.cmd529 .It Ic build.cmd 530 530 Make command to run relative to ${worksrcdir} 531 531 .br … … 536 536 .br 537 537 .Sy Example: 538 .Dl make.cmd pbxbuild539 540 .It Ic make.type538 .Dl build.cmd pbxbuild 539 540 .It Ic build.type 541 541 Type of make required, either 'gnu' or 'bsd' 542 Sets make.cmd to either 'gnumake' or 'bsdmake' accordingly542 Sets build.cmd to either 'gnumake' or 'bsdmake' accordingly 543 543 .br 544 544 .Sy Type: … … 548 548 .br 549 549 .Sy Example: 550 .Dl make.type gnu551 552 .It Ic make.pre_args553 Arguments to pass to ${ make.cmd} before ${make.args}554 .br 555 .Sy Type: 556 .Em read-only 557 .Sy Default: 558 .Em ${ make.target.current}559 560 561 .It Ic make.args562 Arguments to pass to ${ make.cmd}563 .br 564 .Sy Type: 565 .Em optional 566 .br 567 .Sy Example: 568 .Dl make.args -DNOWARN569 570 571 .It Ic make.target.all550 .Dl build.type gnu 551 552 .It Ic build.pre_args 553 Arguments to pass to ${build.cmd} before ${build.args} 554 .br 555 .Sy Type: 556 .Em read-only 557 .Sy Default: 558 .Em ${build.target.current} 559 560 561 .It Ic build.args 562 Arguments to pass to ${build.cmd} 563 .br 564 .Sy Type: 565 .Em optional 566 .br 567 .Sy Example: 568 .Dl build.args -DNOWARN 569 570 571 .It Ic build.target.all 572 572 Target to pass to make for building everything 573 573 .br … … 578 578 .br 579 579 .Sy Example: 580 .Dl make.target.all all-src580 .Dl build.target.all all-src 581 581 582 582 .El … … 586 586 .Bl -tag -width lc 587 587 588 .It Ic make.target.install589 Install target to pass to ${ make.cmd}588 .It Ic build.target.install 589 Install target to pass to ${build.cmd} 590 590 .br 591 591 .Sy Type: … … 595 595 .br 596 596 .Sy Example: 597 .Dl make.target.install install-src597 .Dl build.target.install install-src 598 598 599 599 .El -
trunk/base/src/port1.0/portbuild.tcl
r933 r948 39 39 40 40 # define options 41 options make.target.all42 commands make41 options build.target.all 42 commands build 43 43 # defaults 44 default make.dir {${workpath}/${worksrcdir}}45 default make.cmd {[build_getmaketype]}46 default make.pre_args {${make.target.current}}47 default make.target.all all44 default build.dir {${workpath}/${worksrcdir}} 45 default build.cmd {[build_getmaketype]} 46 default build.pre_args {${build.target.current}} 47 default build.target.all all 48 48 49 49 set UI_PREFIX "---> " 50 50 51 51 proc build_getmaketype {args} { 52 global make.type make.cmd os.name52 global build.type build.cmd os.name 53 53 54 if ![info exists make.type] {54 if ![info exists build.type] { 55 55 return make 56 56 } 57 switch -exact -- ${ make.type} {57 switch -exact -- ${build.type} { 58 58 bsd { 59 59 if {${os.name} == "darwin"} { … … 74 74 } 75 75 default { 76 ui_warning "Unknown make.type ${make.type}, using 'gnumake'"76 ui_warning "Unknown build.type ${build.type}, using 'gnumake'" 77 77 return gnumake 78 78 } … … 81 81 82 82 proc build_main {args} { 83 global portname portpath workdir prefix make.type make.cmd make.env make.target.all make.target.current UI_PREFIX worksrcdir83 global portname portpath workdir prefix build.type build.cmd build.env build.target.all build.target.current UI_PREFIX worksrcdir 84 84 85 ui_msg "$UI_PREFIX Building $portname with target ${ make.target.all}"86 set make.target.current ${make.target.all}85 ui_msg "$UI_PREFIX Building $portname with target ${build.target.all}" 86 set build.target.current ${build.target.all} 87 87 system "[command make]" 88 88 return 0 -
trunk/base/src/port1.0/portinstall.tcl
r821 r948 39 39 40 40 # define options 41 options make.target.install41 options build.target.install 42 42 # Set defaults 43 default make.target.installinstall43 default build.target.current install 44 44 45 45 set UI_PREFIX "---> " 46 46 47 47 proc install_main {args} { 48 global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstall workdir worksrcdir prefix make.type make.cmd make.target.install UI_PREFIX make.target.current48 global portname portversion portpath categories description depends_run contents pkg_install pkg_deinstall workdir worksrcdir prefix build.type build.cmd build.target.install UI_PREFIX build.target.current 49 49 50 50 if ![file exists $prefix] { … … 55 55 } 56 56 } 57 ui_msg "$UI_PREFIX Installing $portname with target ${ make.target.install}"58 set make.target.current ${make.target.install}57 ui_msg "$UI_PREFIX Installing $portname with target ${build.target.install}" 58 set build.target.current ${build.target.install} 59 59 if [catch {system "[command make]"}] { 60 60 ui_error "Installation failed."
Note: See TracChangeset
for help on using the changeset viewer.