Ignore:
Timestamp:
Dec 26, 2015, 6:54:07 PM (3 years ago)
Author:
mcalhoun@…
Message:

muniversal: allow autoconf to work correctly (#20534)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl

    r142913 r143914  
    324324            }
    325325
     326            set autoconf_dir_save  ${autoconf.dir}
     327            if { [string match "${worksrcpath}/*" ${autoconf.dir}] } {
     328                # The autoconf directory is inside the source directory, so put in the new source directory name.
     329                option autoconf.dir [string map "${worksrcpath} ${worksrcpath}-${arch}" ${autoconf.dir}]
     330            } else {
     331                # The autoconf directory is outside the source directory, so give it a new name by appending ${arch}.
     332                option autoconf.dir ${autoconf.dir}-${arch}
     333                if { ![file exists ${autoconf.dir}] } {
     334                    file mkdir ${autoconf.dir}
     335                }
     336            }
     337
    326338            portconfigure::configure_main
    327339
    328340            # Undo changes to the configure related variables
     341            option autoconf.dir         ${autoconf_dir_save}
    329342            option autoreconf.dir       ${autoreconf_dir_save}
    330343            option configure.dir        ${configure_dir_save}
Note: See TracChangeset for help on using the changeset viewer.