Changeset 121007


Ignore:
Timestamp:
Jun 14, 2014, 9:11:12 AM (6 years ago)
Author:
takeshi@…
Message:

hdf4: updated for 4.2.10. use PortGroup compilers. added patch for examples directories

Location:
trunk/dports/science/hdf4
Files:
5 added
1 edited

Legend:

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

    r112813 r121007  
    33
    44PortSystem          1.0
     5PortGroup compilers 1.0
     6
     7compilers.choose    fc f77 f90
     8compilers.setup
    59
    610name                hdf4
    7 version             4.2.9
     11version             4.2.10
    812platforms           darwin
    913categories          science
     
    1822distname            hdf-${version}
    1923use_bzip2           yes
    20 checksums           md5     c268a703f334ee4987fa710a0de9b9fc \
    21                     sha1    c2251642e29c7acada37d5e599e68d270088e56d \
    22                     rmd160  2052a35912bfe0eaa7f21b14325ebf60786d1e02
     24checksums           md5     bf26b3caaf3c0090965c8995578375bd \
     25                    sha1    5163543895728dabb536a0659b3d965d55bccf74 \
     26                    rmd160  4345dc9621980a3fe972eaf9aaedaa1ebe127657
    2327
    2428depends_lib         port:zlib port:jpeg
     29
     30patchfiles          patch-hdf-examples-Makefile.in.diff \
     31                    patch-mfhdf-examples-Makefile.in.diff
    2532
    2633configure.args      --disable-netcdf --disable-fortran \
     
    5158}
    5259
    53 set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
    54 set g95_conflicts {}
    55 
    56 foreach ver ${gcc_versions} {
    57     set ver_no_dot [join [split ${ver} "."] ""]
    58 
    59     set variant_line {variant gcc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}" conflicts g95}
    60 
    61     foreach over ${gcc_versions} {
    62         if {${ver} == ${over}} {
    63             continue
    64         }
    65 
    66         set over_no_dot [join [split ${over} "."] ""]
    67         append variant_line " conflicts gcc${over_no_dot}"
    68     }
    69     append variant_line { {}}
    70 
    71     eval $variant_line
    72 
    73     append g95_conflicts " conflicts gcc${ver_no_dot}"
    74 }
    75 
    76 eval [concat {variant g95 description {build with g95}} $g95_conflicts {{}}]
    77 
    78 foreach ver ${gcc_versions} {
    79     set ver_no_dot [join [split ${ver} "."] ""]
    80 
    81     if {[variant_isset gcc${ver_no_dot}]} {
    82         depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    83         depends_build-append port:gcc${ver_no_dot}
    84 
    85         configure.fc  ${prefix}/bin/gfortran-mp-${ver}
    86         configure.f77 ${prefix}/bin/gfortran-mp-${ver}
    87         configure.f90 ${prefix}/bin/gfortran-mp-${ver}
    88         configure.args-delete   --disable-fortran --enable-shared
    89     }
     60if {[fortran_variant_isset]} {
     61    patchfiles-append   patch-hdf-fortran-examples-Makefile.in.diff \
     62                        patch-mfhdf-fortran-examples-Makefile.in.diff
     63    configure.args-delete   --disable-fortran --enable-shared
    9064}
    9165
    9266if {[variant_isset g95]} {
    93     depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
    94     depends_build-append port:g95
    95 
    96     configure.fc ${prefix}/bin/g95
    97     configure.f77 ${prefix}/bin/g95
    98     configure.f90 ${prefix}/bin/g95
    99     configure.args-delete   --disable-fortran --enable-shared
    10067    configure.fflags-append -fno-second-underscore
    10168}
Note: See TracChangeset for help on using the changeset viewer.