New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80345


Ignore:
Timestamp:
07/10/11 01:04:15 (4 years ago)
Author:
takeshi@…
Message:

emos: updated for 000382

File:
1 edited

Legend:

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

    r68906 r80345  
    55 
    66name                emos 
    7 version             000371 
    8 revision            1 
     7version             000382 
    98platforms           darwin 
    109maintainers         takeshi 
     
    1514master_sites        http://www.ecmwf.int/products/data/software/download/software_files/ 
    1615distname            ${name}_${version} 
    17 checksums           md5     b09e27923b256e73ac90467a333a508c \ 
    18                     sha1    75debc150de3f010aec7eace6a65aad9986321da \ 
    19                     rmd160  4853e460ca6d0257a6e0e9c1b0f845bf95b0b846 
     16checksums           md5     cfca587da4dda8b615dfdc3d0fdac080 \ 
     17                    sha1    450bd27956a7496740a6ef4349f44e015d6525fa \ 
     18                    rmd160  892cf38b1d207caea53e495c9f84c94bae989613 
    2019long_description \ 
    2120    The Interpolation library (EMOSLIB) includes Interpolation software \ 
    2221    and GRIB, BUFR, CREX encoding/decoding routines. 
     22 
     23depends_build       port:grib_api 
    2324 
    2425post-patch { 
     
    2627    reinplace "s: | O_LARGEFILE::" ${worksrcpath}/interpolation/sharedlib.c 
    2728    reinplace "s:`cat .list/bufrtables`:bufrtables/*.TXT:" ${worksrcpath}/install 
     29    reinplace "s:xf:xpf:" ${worksrcpath}/install 
    2830} 
    29 #pre-configure { 
    30 #    if [variant_isset g95] { 
    31 #      reinplace "s:GBITMAP, ::" ${worksrcpath}/gribex/gribex.F 
    32 #    } 
    33 #} 
    3431 
    3532if {${os.endian}=="little"} { 
     
    5350    file copy -force ${worksrcpath}/Makefile.in ${worksrcpath}/Makefile 
    5451    reinplace "s:reals:R64:" ${worksrcpath}/Makefile 
    55     foreach d {gribex pbio bufrdc bufrtables crexdc interpolation fft} { 
     52    reinplace "s:glue:grib_api_merging:" ${worksrcpath}/Makefile 
     53    foreach d {gribex pbio bufrdc bufrtables crexdc interpolation fft grib_api_merging} { 
    5654        file copy -force ${worksrcpath}/${d}/Makefile.in ${worksrcpath}/${d}/Makefile 
    5755        reinplace "s:reals:R64:" ${worksrcpath}/${d}/Makefile 
    5856        reinplace "s:arch:linux:" ${worksrcpath}/${d}/Makefile 
    59         reinplace "s:depl:emos:" ${worksrcpath}/${d}/Makefile 
     57        reinplace "s:depl:${name}:" ${worksrcpath}/${d}/Makefile 
    6058        reinplace "s:\$(ARCH)\$(CNAME)\$(R64)\$(A64):site:" ${worksrcpath}/${d}/Makefile 
    6159    } 
     60    reinplace "s:I\$(GRIB_API_PATH):I${prefix}:" ${worksrcpath}/grib_api_merging/Makefile 
    6261    reinplace "s:`cat -s .r64`:R64:" ${worksrcpath}/install 
    63     reinplace "s:`cat -s .emos`:${destroot}${prefix}/lib/${name}; \ 
    64 mkdir -p ${destroot}${prefix}/lib/${name}:" ${worksrcpath}/install 
     62    reinplace "s:`cat -s .emos`:${destroot}${prefix}/lib/${name}:" ${worksrcpath}/install 
    6563} 
    6664 
     
    7068        reinplace "s:R64 = R64:R64 =:" ${worksrcpath}/${d}/Makefile 
    7169    } 
    72     if {[variant_isset gcc43]} { 
     70    if {[variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45]} { 
    7371        reinplace "s:-fdefault-real-8 -fdefault-double-8 ::" ${worksrcpath}/config/config.site 
    7472    } else { 
     
    7876} 
    7977 
    80 destroot.cmd        ${worksrcpath}/install 
    81 destroot.target     "" 
    82 destroot.destdir    "" 
    83  
    84 post-destroot { 
    85     reinplace "s:R64=R64:R64=:" ${worksrcpath}/install 
     78destroot { 
     79    xinstall -m 755 -d ${destroot}${prefix}/lib/${name} 
     80    xinstall -m 755 -d ${destroot}${prefix}/lib/${name}/bin 
    8681    system "cd ${worksrcpath}; ./install" 
    87     system "ln -s emos/libemosR64.a ${destroot}${prefix}/lib/libemosR64.a" 
    88     system "ln -s emos/libemos.a ${destroot}${prefix}/lib/libemos.a" 
     82    xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib/${name} 
     83    foreach f {bufr2txt_tables bufr_split_tables txt2bufr_tables} { 
     84      xinstall -m 755 ${worksrcpath}/bufrtables/${f} ${destroot}${prefix}/lib/${name}/bin 
     85    } 
     86    system "ln -s ${name}/lib${name}R64.a ${destroot}${prefix}/lib/lib${name}R64.a" 
     87    system "ln -s ${name}/lib${name}.a ${destroot}${prefix}/lib/lib${name}.a" 
     88    system "cd ${destroot}${prefix}/lib/${name}; \ 
     89        for d in bufrtables crextables gribtables gribtemplates land_sea_mask; do \ 
     90            chmod 755 \$d; \ 
     91            find \$d -type f -print | xargs chmod 644; \ 
     92        done; \ 
     93        find gribtables -type d -print | xargs chmod 755" 
    8994} 
    9095 
    9196use_parallel_build  no 
    92 if {![variant_isset gcc43]} { 
     97if {![variant_isset gcc43] && ![variant_isset gcc45] && ![variant_isset g95]} { 
    9398    default_variants    +gcc44 
    9499} 
    95100universal_variant   no 
    96101 
    97 variant gcc43 conflicts gcc44 description {builds fortran interface with gfortran 4.3} { 
     102variant gcc43 conflicts gcc44 gcc45 description {builds fortran interface with gfortran 4.3} { 
    98103    depends_build-append    port:gcc43 
    99     configure.args-delete   --disable-fortran 
    100104    configure.compiler      macports-gcc-4.3 
    101105    configure.fflags-append -fdefault-real-8 -fdefault-double-8 -fcray-pointer -fno-second-underscore -DPOINTER_64 -DINTEGER_IS_INT -Dlinux -Dgfortran 
     
    103107} 
    104108 
    105 variant gcc44 conflicts gcc43 description {builds fortran interface with gfortran 4.4} { 
     109variant gcc44 conflicts gcc43 gcc45 description {builds fortran interface with gfortran 4.4} { 
    106110    depends_build-append    port:gcc44 
    107     configure.args-delete   --disable-fortran 
    108111    configure.compiler      macports-gcc-4.4 
    109112    configure.fflags-append -fdefault-real-8 -fdefault-double-8 -fcray-pointer -fno-second-underscore -DPOINTER_64 -DINTEGER_IS_INT -Dlinux -Dgfortran 
     
    111114} 
    112115 
    113 #variant g95 conflicts gcc43 gcc44 universal description {builds fortran interface with g95} { 
    114 #    depends_build-append    port:g95 
    115 #    configure.args-delete   --disable-fortran 
    116 #    configure.fc            ${prefix}/bin/g95 
    117 #    configure.fflags-append -r8 -fsloppy-char -fno-second-underscore -DUSE_NO_POINTERS -DINTEGER_IS_INT -Dlinux 
    118 #    configure.cflags-append -DPOINTER_64 -DINTEGER_IS_INT 
    119 #} 
     116variant gcc45 conflicts gcc43 gcc44 description {builds fortran interface with gfortran 4.5} { 
     117    depends_build-append    port:gcc45 
     118    configure.compiler      macports-gcc-4.5 
     119    configure.fflags-append -fdefault-real-8 -fdefault-double-8 -fcray-pointer -fno-second-underscore -DPOINTER_64 -DINTEGER_IS_INT -Dlinux -Dgfortran 
     120    configure.cflags-append -DPOINTER_64 -DINTEGER_IS_INT 
     121} 
     122 
     123variant g95 conflicts gcc43 gcc44 universal description {builds fortran interface with g95} { 
     124    depends_build-append    port:g95 
     125    configure.fc            ${prefix}/bin/g95 
     126    configure.fflags-append -r8 -fsloppy-char -fno-second-underscore -DUSE_NO_POINTERS -DINTEGER_IS_INT -Dlinux 
     127    configure.cflags-append -DPOINTER_64 -DINTEGER_IS_INT 
     128} 
    120129 
    121130livecheck.type      regex 
    122131livecheck.url       ${homepage} 
    123 livecheck.regex     {Latest Emos library ([0-9][0-9][0-9][0-9][0-9][0-9])} 
     132livecheck.regex     {([0-9][0-9][0-9][0-9][0-9][0-9]),} 
Note: See TracChangeset for help on using the changeset viewer.