Ticket #46517: octave_module_gcc_deps.diff

File octave_module_gcc_deps.diff, 993 bytes (added by michaelld (Michael Dickens), 9 years ago)
  • _resources/port1.0/group/octave-1.0.tcl

     
    5252    master_sites                sourceforge:octave
    5353    distname                    ${octave.module}-${version}
    5454
    55     depends_lib                 path:bin/octave:octave
     55    depends_lib-append          path:bin/octave:octave
    5656
    5757    worksrcdir                  ${octave.module}
    5858
     
    7474
    7575}
    7676
     77# octave modules depend on the same version of GCC used to compile
     78# Octave; defaults to GCC49 if octave is not installed.
     79
     80set octave_gcc gcc49
     81
     82if {[file exists ${prefix}/bin/mkoctfile]} {
     83    set octave_gcc [exec ${prefix}/bin/mkoctfile -p FLIBS | \
     84                        tr "/" "\n" | grep gcc4 | sort -u]
     85}
     86
     87depends_lib-append port:${octave_gcc}
     88
    7789post-extract {
    7890
    7991    # rename the effective worksrcdir to always be ${octave.module}