Changeset 80345
- Timestamp:
- 07/10/11 01:04:15 (4 years ago)
- File:
-
- 1 edited
-
trunk/dports/science/emos/Portfile (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/emos/Portfile
r68906 r80345 5 5 6 6 name emos 7 version 000371 8 revision 1 7 version 000382 9 8 platforms darwin 10 9 maintainers takeshi … … 15 14 master_sites http://www.ecmwf.int/products/data/software/download/software_files/ 16 15 distname ${name}_${version} 17 checksums md5 b09e27923b256e73ac90467a333a508c\18 sha1 75debc150de3f010aec7eace6a65aad9986321da \19 rmd160 4853e460ca6d0257a6e0e9c1b0f845bf95b0b84616 checksums md5 cfca587da4dda8b615dfdc3d0fdac080 \ 17 sha1 450bd27956a7496740a6ef4349f44e015d6525fa \ 18 rmd160 892cf38b1d207caea53e495c9f84c94bae989613 20 19 long_description \ 21 20 The Interpolation library (EMOSLIB) includes Interpolation software \ 22 21 and GRIB, BUFR, CREX encoding/decoding routines. 22 23 depends_build port:grib_api 23 24 24 25 post-patch { … … 26 27 reinplace "s: | O_LARGEFILE::" ${worksrcpath}/interpolation/sharedlib.c 27 28 reinplace "s:`cat .list/bufrtables`:bufrtables/*.TXT:" ${worksrcpath}/install 29 reinplace "s:xf:xpf:" ${worksrcpath}/install 28 30 } 29 #pre-configure {30 # if [variant_isset g95] {31 # reinplace "s:GBITMAP, ::" ${worksrcpath}/gribex/gribex.F32 # }33 #}34 31 35 32 if {${os.endian}=="little"} { … … 53 50 file copy -force ${worksrcpath}/Makefile.in ${worksrcpath}/Makefile 54 51 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} { 56 54 file copy -force ${worksrcpath}/${d}/Makefile.in ${worksrcpath}/${d}/Makefile 57 55 reinplace "s:reals:R64:" ${worksrcpath}/${d}/Makefile 58 56 reinplace "s:arch:linux:" ${worksrcpath}/${d}/Makefile 59 reinplace "s:depl: emos:" ${worksrcpath}/${d}/Makefile57 reinplace "s:depl:${name}:" ${worksrcpath}/${d}/Makefile 60 58 reinplace "s:\$(ARCH)\$(CNAME)\$(R64)\$(A64):site:" ${worksrcpath}/${d}/Makefile 61 59 } 60 reinplace "s:I\$(GRIB_API_PATH):I${prefix}:" ${worksrcpath}/grib_api_merging/Makefile 62 61 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 65 63 } 66 64 … … 70 68 reinplace "s:R64 = R64:R64 =:" ${worksrcpath}/${d}/Makefile 71 69 } 72 if {[variant_isset gcc43] } {70 if {[variant_isset gcc43] || [variant_isset gcc44] || [variant_isset gcc45]} { 73 71 reinplace "s:-fdefault-real-8 -fdefault-double-8 ::" ${worksrcpath}/config/config.site 74 72 } else { … … 78 76 } 79 77 80 destroot.cmd ${worksrcpath}/install 81 destroot.target "" 82 destroot.destdir "" 83 84 post-destroot { 85 reinplace "s:R64=R64:R64=:" ${worksrcpath}/install 78 destroot { 79 xinstall -m 755 -d ${destroot}${prefix}/lib/${name} 80 xinstall -m 755 -d ${destroot}${prefix}/lib/${name}/bin 86 81 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" 89 94 } 90 95 91 96 use_parallel_build no 92 if {![variant_isset gcc43] } {97 if {![variant_isset gcc43] && ![variant_isset gcc45] && ![variant_isset g95]} { 93 98 default_variants +gcc44 94 99 } 95 100 universal_variant no 96 101 97 variant gcc43 conflicts gcc44 description {builds fortran interface with gfortran 4.3} {102 variant gcc43 conflicts gcc44 gcc45 description {builds fortran interface with gfortran 4.3} { 98 103 depends_build-append port:gcc43 99 configure.args-delete --disable-fortran100 104 configure.compiler macports-gcc-4.3 101 105 configure.fflags-append -fdefault-real-8 -fdefault-double-8 -fcray-pointer -fno-second-underscore -DPOINTER_64 -DINTEGER_IS_INT -Dlinux -Dgfortran … … 103 107 } 104 108 105 variant gcc44 conflicts gcc43 description {builds fortran interface with gfortran 4.4} {109 variant gcc44 conflicts gcc43 gcc45 description {builds fortran interface with gfortran 4.4} { 106 110 depends_build-append port:gcc44 107 configure.args-delete --disable-fortran108 111 configure.compiler macports-gcc-4.4 109 112 configure.fflags-append -fdefault-real-8 -fdefault-double-8 -fcray-pointer -fno-second-underscore -DPOINTER_64 -DINTEGER_IS_INT -Dlinux -Dgfortran … … 111 114 } 112 115 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 #} 116 variant 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 123 variant 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 } 120 129 121 130 livecheck.type regex 122 131 livecheck.url ${homepage} 123 livecheck.regex { Latest Emos library ([0-9][0-9][0-9][0-9][0-9][0-9])}132 livecheck.regex {([0-9][0-9][0-9][0-9][0-9][0-9]),}
Note: See TracChangeset
for help on using the changeset viewer.

