RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/port1.0/portconfigure.tcl,v
retrieving revision 1.21
diff -u -d -b -w -r1.21 portconfigure.tcl
|
|
|
32 | 32 | package provide portconfigure 1.0 |
33 | 33 | package require portutil 1.0 |
34 | 34 | |
| 35 | #define options |
| 36 | options configure_update |
| 37 | # Export options via PortInfo |
| 38 | options_export configure_update |
| 39 | |
35 | 40 | set com.apple.configure [target_new com.apple.configure configure_main] |
36 | 41 | ${com.apple.configure} provides configure |
37 | 42 | ${com.apple.configure} requires main fetch extract checksum patch |
… |
… |
|
49 | 54 | default xmkmf.cmd xmkmf |
50 | 55 | default xmkmf.dir {${worksrcpath}} |
51 | 56 | default use_configure yes |
| 57 | default configure_update no |
52 | 58 | |
53 | 59 | set UI_PREFIX "---> " |
54 | 60 | |
… |
… |
|
61 | 67 | proc configure_main {args} { |
62 | 68 | global [info globals] |
63 | 69 | global global configure configure.args configure.dir automake automake.env automake.args automake.dir autoconf autoconf.env autoconf.args autoconf.dir xmkmf libtool portname worksrcpath prefix workpath UI_PREFIX use_configure use_autoconf use_automake use_xmkmf |
| 70 | global configure_update os.platform |
| 71 | |
| 72 | if [tbool configure_update] { |
| 73 | if {${os.platform} == "darwin"} { |
| 74 | file copy -force /usr/share/libtool/config.guess \ |
| 75 | ${worksrcpath}/config.guess |
| 76 | file copy -force /usr/share/libtool/config.sub \ |
| 77 | ${worksrcpath}/config.sub |
| 78 | } else { |
| 79 | # XXX configure_update is only available for darwin, add more support here |
| 80 | ui_warning "WARNING: configure_update is not implemented on ${os.platform}." |
| 81 | ui_warning "Configure scripts were not updated." |
| 82 | } |
| 83 | } |
64 | 84 | |
65 | 85 | if [tbool use_automake] { |
66 | 86 | # XXX depend on automake |