source: trunk/dports/science/h4h5tools/Portfile

Last change on this file was 150946, checked in by takeshi@…, 12 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.0 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
5
6name            h4h5tools
7version         2.2.2
8revision        1
9categories      science
10# Equivalent to BSD + explicitly requiring modifications to be documented
11license         Permissive
12platforms       darwin
13maintainers     nomaintainer
14
15description     HDF4 to HDF5 conversion tools.
16long_description    Provides the h4toh5 conversion utility and library.
17
18homepage        http://www.hdfgroup.org/h4toh5/
19master_sites    http://www.hdfgroup.org/ftp/HDF5/tools/h4toh5/src/
20
21checksums       rmd160 b90bbc544bb670194119366035652ba8b28d3121 \
22                sha256 2409e7578c5c078b01b8fedb0f362b998aa245d164f2d5c137d002407aef5735
23
24depends_lib-append \
25                port:hdf4 \
26                port:hdf5-18 \
27                port:hdfeos \
28                port:netcdf
29
30configure.args-append \
31                --with-hdfeos2=${prefix}
32configure.cppflags \
33                -I${prefix}/lib/hdf5-18/include \
34                -I${prefix}/include
35configure.ldflags \
36                -L${prefix}/lib/hdf5-18/lib \
37                -L${prefix}/lib
38configure.env-append \
39                LIBS="-ldf -lmfhdf"
40
41post-destroot {
42    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
43    xinstall -m 644 -W ${worksrcpath} README.txt COPYING Copyright.html \
44        ${destroot}${prefix}/share/doc/${name}
45
46    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/pdf
47    xinstall -m 644 -W ${worksrcpath}/doc \
48        H4H5ProgrammersNotes.pdf h4toh5lib_RM.pdf h4toh5lib_UG.pdf \
49        ${destroot}${prefix}/share/doc/${name}/pdf
50
51    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/html
52    xinstall -m 644 -W ${worksrcpath}/doc \
53        h4toh5lib_RM.html h4toh5lib_UG.html \
54        ${destroot}${prefix}/share/doc/${name}/html
55}
56
57livecheck.type  regex
58livecheck.url   ${homepage}
59livecheck.regex {Current Release:</note> &nbsp; ([0-9]+\.[0-9.]+)<br />}
Note: See TracBrowser for help on using the repository browser.