Changeset 39799


Ignore:
Timestamp:
Sep 5, 2008, 2:01:40 AM (11 years ago)
Author:
takeshi@…
Message:

plplot: checks if *.mod exits before copy for cmake 2.4.x and 2.6.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/plplot/Portfile

    r37738 r39799  
    9494
    9595pre-destroot {
    96         file copy ${workpath}/build/bindings/f95/plplot.mod ${workpath}/build/
    97         file copy ${workpath}/build/bindings/f95/plplotp.mod ${workpath}/build/
    98         file copy ${workpath}/build/bindings/f95/plplot_flt.mod ${workpath}/build/
     96    set mods "${workpath}/build/bindings/f95/plplot.mod
     97                    ${workpath}/build/bindings/f95/plplotp.mod
     98              ${workpath}/build/bindings/f95/plplot_flt.mod"
     99    foreach m $mods {
     100        if {[file exists $m]} {
     101            file copy $m ${workpath}/build/
     102        }
     103    }
    99104}
    100105
Note: See TracChangeset for help on using the changeset viewer.