Ignore:
Timestamp:
Dec 31, 2009, 1:03:58 PM (8 years ago)
Author:
takeshi@…
Message:

magicspp: created gcc43 and g95 variants

File:
1 edited

Legend:

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

    r61992 r62200  
    3939use_parallel_build  no
    4040universal_variant   no
     41if {![variant_isset g95]} {
     42    default_variants    +gcc43
     43}
    4144
    4245patchfiles          patch-src-Makefile.in.diff \
     
    5457}
    5558
    56 pre-configure {
    57     set submatch ""
    58     set flib ""
    59     regexp {\+([[:alnum:]]+) \(active\)} [exec port installed emos] match submatch
    60     if {${submatch}=="gcc43"} {
    61         set flib "-L${prefix}/lib/gcc43 -lgfortran"
    62         configure.compiler      macports-gcc-4.3
    63     } elseif {${submatch}=="g95"} {
    64         set flib -lf95
    65         configure.f77           ${prefix}/bin/g95
    66     }
    67     configure.ldflags-append    -lgrib_api -lopenjpeg -lpng -lemosR64 $flib -lnetcdf_c++ -lnetcdf
    68 }
    6959configure.env-append        LIBS=\"-lgrib_api -lopenjpeg -lpng\"
    7060configure.cppflags-append   -I${prefix}/include/freetype2/
     
    7666                            --with-emos-libraries=${prefix}/lib \
    7767                            --with-gs-font-dir=${prefix}/share/ghostscript/fonts
     68
     69variant gcc43 conflicts g95 description {for emos +gcc43} {
     70    configure.ldflags-append    -lgrib_api -lopenjpeg -lpng -lemosR64 -L${prefix}/lib/gcc43 -lgfortran -lnetcdf_c++ -lnetcdf
     71    configure.compiler      macports-gcc-4.3
     72}
     73
     74variant g95 conflicts gcc43 description {for emos +g95} {
     75    configure.ldflags-append    -lgrib_api -lopenjpeg -lpng -lemosR64 -lf95 -lnetcdf_c++ -lnetcdf
     76    configure.f77           ${prefix}/bin/g95
     77}
Note: See TracChangeset for help on using the changeset viewer.