source: trunk/dports/science/hdfeos5/Portfile

Last change on this file was 150946, checked in by takeshi@…, 14 months ago

hdf5-18, octave-devel, h4h5tools, hdfeos5, ncarg.netcdf: change prefix of hdf5-18, closing #51925

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 150946 2016-08-03 13:43:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6PortGroup           mpi 1.0
7
8name                hdfeos5
9version             1.15
10revision            12
11categories          science
12platforms           darwin
13license             public-domain
14maintainers         takeshi
15description         HDF-EOS library built on HDF5
16long_description \
17    library designed built on HDF5 to support the same Grid/Point/Swath \
18    functionality in HDF-EOS 2 and to the extent possible it will be    \
19    built with the same calling sequences as the original HDF-EOS 2 library.
20homepage            http://hdfeos.org/
21master_sites        ftp://edhs1.gsfc.nasa.gov/edhs/${name}/latest_release/ \
22                    ftp://edhs1.gsfc.nasa.gov/edhs/${name}/previous_releases/ \
23                    http://www.enomosphere.net/hdfeos/
24
25distname            HDF-EOS5.${version}
26
27checksums           md5     5d607a13dd42e559bfc90e278a8ec919 \
28                    sha1    35a288cd1bfdde92a4ef9d68f8ee55b536b0f8c3 \
29                    rmd160  34df5cdb6bdc4d06a7658d38aae6fed0b5671557
30
31compilers.choose    cc cxx
32mpi.setup           -clang -dragonegg -llvm
33compilers.enforce_c hdf5-18
34
35depends_build       port:libtool
36depends_lib         port:hdf5-18
37worksrcdir          ${name}
38extract.suffix      .tar.Z
39fetch.use_epsv      no
40
41#patchfiles          patch-src-GDapi.c.diff \
42#                    patch-src-PTapi.c.diff \
43#                    patch-src-SWapi.c.diff \
44#                    patch-src-ZAapi.c.diff
45
46if {[mpi_variant_isset]} {
47    set h5cc h5pcc
48} else {
49    set h5cc h5cc
50}
51if {![catch {set result [active_variants port:hdf5-18 szip]}]} {
52    if {$result} {
53        default_variants-append +szip
54    }
55}
56configure.cflags-append -DH5_USE_16_API
57configure.cc_archflags ""
58configure.ld_archflags ""
59configure.args      --prefix=${prefix}/lib/${name} \
60                    --enable-shared \
61                    --with-zlib=${prefix} \
62                    --disable-dependency-tracking
63
64pre-configure {
65    configure.cc    ${prefix}/lib/hdf5-18/bin/${h5cc}
66}
67
68post-configure {
69    file copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
70    reinplace "s|\\\\\$CC|${prefix}/lib/hdf5-18/bin/${h5cc}|" ${worksrcpath}/libtool
71}
72
73variant szip description {enables szip support} {
74    require_active_variants     hdf5-18 szip
75    depends_lib-append          port:szip
76    configure.args-append       --with-szlib=${prefix} \
77}
78
79post-destroot {
80    set incdir ${destroot}${prefix}/lib/${name}/include
81    xinstall -d -m 755 ${incdir}
82    xinstall -m 644 ${worksrcpath}/include/HE5_GctpFunc.h ${incdir}
83    xinstall -m 644 ${worksrcpath}/include/HE5_HdfEosDef.h ${incdir}
84}
85
86livecheck.type      regex
87livecheck.url       ${homepage}/software/hdfeos.php
88livecheck.regex     {HDF-EOS 5.([0-9]+.[0-9]+) is the latest version}
Note: See TracBrowser for help on using the repository browser.