1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name h4h5tools |
---|
6 | version 2.0 |
---|
7 | categories-append science |
---|
8 | platforms darwin |
---|
9 | maintainers dal.ca:tom.duck openmaintainer |
---|
10 | |
---|
11 | description HDF4 to HDF5 conversion tools. |
---|
12 | long_description Provides the h4toh5 conversion utility and \ |
---|
13 | library. |
---|
14 | |
---|
15 | homepage http://hdf.ncsa.uiuc.edu/h4toh5/ |
---|
16 | master_sites ftp://ftp.hdfgroup.org/HDF5/h4toh5/src/ |
---|
17 | distname h4h5tools_20 |
---|
18 | |
---|
19 | checksums md5 fda518fb9441fb04ca9f9b3ae0688260 \ |
---|
20 | sha1 eb26d1c094d5d2ab9bef2b488cdbba709ebe6ca3 \ |
---|
21 | rmd160 19a452244b3d4b6afa3f26ff0bd3b713b469e566 |
---|
22 | |
---|
23 | depends_lib-append port:hdf5 \ |
---|
24 | port:hdf4 |
---|
25 | |
---|
26 | configure.cc ${prefix}/bin/h4cc |
---|
27 | |
---|
28 | # Setting H4_HAVE_NETCDF overcomes a bug in the distribution. This has been |
---|
29 | # communicated upstream, and hopefully will be fixed. |
---|
30 | configure.cflags -DH4_HAVE_NETCDF |
---|
31 | |
---|
32 | post-destroot { |
---|
33 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
34 | xinstall -m 644 -W ${worksrcpath} README.txt COPYING copyright.html \ |
---|
35 | ${destroot}${prefix}/share/doc/${name} |
---|
36 | |
---|
37 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc/pdf |
---|
38 | xinstall -m 644 -W ${worksrcpath}/doc \ |
---|
39 | H4H5ProgrammersNotes.pdf h4toh5lib_RM.pdf h4toh5lib_UG.pdf \ |
---|
40 | ${destroot}${prefix}/share/doc/${name}/doc/pdf |
---|
41 | |
---|
42 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc/html |
---|
43 | xinstall -m 644 -W ${worksrcpath}/doc \ |
---|
44 | h4toh5lib_RM.html h4toh5lib_UG.html \ |
---|
45 | ${destroot}${prefix}/share/doc/${name}/doc/html |
---|
46 | } |
---|
47 | |
---|
48 | livecheck.check regexm |
---|
49 | livecheck.url ${homepage} |
---|
50 | livecheck.regex {Latest Official Release of H4 / H5 Conversion Library:.?<[^>]*>([0-9]+\.[0-9])} |
---|