Changeset 957 for trunk/base
- Timestamp:
- Oct 5, 2002, 3:44:19 PM (22 years ago)
- Location:
- trunk/base/src/port1.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/port1.0/portbuild.tcl
r950 r957 50 50 51 51 proc build_getmaketype {args} { 52 global build.type build.cmd os. name52 global build.type build.cmd os.platform 53 53 54 54 if ![info exists build.type] { … … 57 57 switch -exact -- ${build.type} { 58 58 bsd { 59 if {${os. name} == "darwin"} {59 if {${os.platform} == "darwin"} { 60 60 return bsdmake 61 61 } else { … … 64 64 } 65 65 gnu { 66 if {${os. name} == "darwin"} {66 if {${os.platform} == "darwin"} { 67 67 return gnumake 68 68 } else { -
trunk/base/src/port1.0/portfetch.tcl
r953 r957 210 210 # the listed url varable and associated distfile 211 211 proc fetchfiles {args} { 212 global distpath all_dist_files UI_PREFIX ports_verbose fetch_urls fetch.cmd os. namefetch.pre_args212 global distpath all_dist_files UI_PREFIX ports_verbose fetch_urls fetch.cmd os.platform fetch.pre_args 213 213 global distfile site 214 214 215 215 # Override curl in the case of FreeBSD 216 if {${os. name} == "freebsd"} {216 if {${os.platform} == "freebsd"} { 217 217 set fetch.cmd "fetch" 218 218 } 219 219 if [tbool ports_verbose] { 220 220 set fetch.pre_args -v 221 } elseif {${os. name} == "darwin" } {221 } elseif {${os.platform} == "darwin" } { 222 222 set fetch.pre_args "-s -S" 223 223 } -
trunk/base/src/port1.0/portmain.tcl
r954 r957 40 40 41 41 # define options 42 options prefix portname portversion portrevision categories maintainers workdir worksrcdir filedir distname portdbpath libpath distpath sources_conf os. nameos.version os.arch os.endian platforms42 options prefix portname portversion portrevision categories maintainers workdir worksrcdir filedir distname portdbpath libpath distpath sources_conf os.platform os.version os.arch os.endian platforms 43 43 # Export options via PortInfo 44 44 options_export portname portversion portrevision categories maintainers platforms 45 45 46 global os_name os_arch os_endian47 48 set os_name [string tolower $tcl_platform(os)]49 50 set os_arch $tcl_platform(machine)51 if {$os_arch == "Power Macintosh"} { set os_arch "powerpc" }52 53 set os_endian $tcl_platform(byteOrder)54 46 # Remove trailing "Endian" 55 set os_endian [string range $os_endian 0 [expr [string length $os_endian] - 7]]56 47 57 48 default distpath {[file join $portdbpath distfiles]} … … 61 52 default filedir files 62 53 default portrevision 0 63 default os.name {$os_name}64 default os.version {$tcl_platform(osVersion)}65 default os.arch {$os_arch}66 default os.endian {$os_endian}67 54 default distname {${portname}-${portversion}} 68 55 default worksrcdir {$distname} … … 71 58 default worksrcpath {[file join $workpath $worksrcdir]} 72 59 60 61 # Platform Settings 62 set os_arch $tcl_platform(machine) 63 if {$os_arch == "Power Macintosh"} { set os_arch "powerpc" } 64 65 set os_endian $tcl_platform(byteOrder) 66 default os.platform {[string tolower $tcl_platform(os)]} 67 default os.version {$tcl_platform(osVersion)} 68 default os.arch {$os_arch} 69 default os.endian {[string range $os_endian 0 [expr [string length $os_endian] - 7]]} 70 71 73 72 # Select implicit variants 74 global variations 75 if {![info exists variations($os_name)]} { variant_set $os_name } 76 if {![info exists variations($os_arch)]} { variant_set $os_arch } 73 if {[info exists os.platform] && ![info exists variations(${os.platform})]} { variant_set ${os.platform}} 74 if {[info exists os.arch] && ![info exists variations(${os.arch})]} { variant_set ${os.arch} } 77 75 78 76 proc main {args} {
Note: See TracChangeset
for help on using the changeset viewer.