Changeset 24642


Ignore:
Timestamp:
Apr 29, 2007, 2:31:39 PM (14 years ago)
Author:
jberry@…
Message:

Autoconf for the open command, which we use in port gohome, and add OPEN as a precious variable, potentially allowing this command to be overridden during configure.

Location:
trunk/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure.ac

    r24398 r24642  
    2222AC_PATH_PROG(BZIP2, [bzip2], [])
    2323AC_PATH_PROG(XAR, [xar], [])
     24AC_PATH_PROG(OPEN, [open], [])
    2425
    2526# Define some precious variables allowing user to override PATH for some programs
     
    3132AC_ARG_VAR(BZIP2, [path to bzip2 command])
    3233AC_ARG_VAR(XAR, [path to xar command])
     34AC_ARG_VAR(OPEN, [path to open command])
    3335
    3436OD_TAR_NO_SAME_OWNER
  • trunk/base/src/darwinports1.0/darwinports_autoconf.tcl.in

    r19376 r24642  
    3434        variable dports_conf_path "@PORTCONFIGDIR_EXPANDED@"
    3535        variable rsync_path "@RSYNC@"
     36        variable open_path "@OPEN@"
    3637}
  • trunk/base/src/port/port.tcl

    r24631 r24642  
    19731973                                        set homepage $portinfo(homepage)
    19741974                                        if { $homepage != "" } {
    1975                                                 # TODO we should autoconfigure this, and perhaps leave an option for
    1976                                                 # a different command to visit the homepage
    1977                                                 system "/usr/bin/open $homepage"
     1975                                                system "${darwinports::autoconf::open_path} $homepage"
    19781976                                        } else {
    19791977                                                puts "(no homepage)"
Note: See TracChangeset for help on using the changeset viewer.