1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 31507 2007-11-26 08:38:14Z takanori@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name hdf4 |
---|
7 | version 4.2r2 |
---|
8 | categories science |
---|
9 | maintainers nomaintainer |
---|
10 | |
---|
11 | description file format for storing scientific data and utilities |
---|
12 | long_description ${description} |
---|
13 | homepage http://www.hdfgroup.org/ |
---|
14 | master_sites ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/ |
---|
15 | checksums md5 088540ae11cff4dcddedafd546e0831d \ |
---|
16 | sha1 0b420da111af50c9672a64a4e660233e9b79d856 \ |
---|
17 | rmd160 6dfbf57df4c428d3ac4ce406245c19b8d08f72fd |
---|
18 | |
---|
19 | depends_lib port:g95 port:zlib port:jpeg |
---|
20 | distname HDF$version |
---|
21 | |
---|
22 | configure.args --with-szlib=no --disable-netcdf |
---|
23 | configure.env F77=${prefix}/bin/g95 |
---|
24 | configure.ldflags "-L${worksrcpath}/src/.libs -L${prefix}/lib" |
---|
25 | |
---|
26 | test.run yes |
---|
27 | test.target check |
---|
28 | |
---|
29 | post-destroot { |
---|
30 | cd ${destroot}${prefix} |
---|
31 | file mkdir share/doc/${name} |
---|
32 | file copy ${worksrcpath}/hdf/util/testfiles share/doc/${name}/samples |
---|
33 | foreach f {COPYING INSTALL README release_notes/HISTORY.txt} { |
---|
34 | file copy ${worksrcpath}/$f share/doc/${name}/ |
---|
35 | } |
---|
36 | file delete bin/ncdump bin/ncgen \ |
---|
37 | include/netcdf.h include/netcdf.inc include/netcdf.f90 \ |
---|
38 | lib/libudport.a share/man/man1/ncgen.1 share/man/man1/ncdump.1 |
---|
39 | } |
---|
40 | |
---|
41 | variant szip { |
---|
42 | configure.args-delete --with-szlib=no |
---|
43 | configure.args-append --with-szlib=yes |
---|
44 | depends_lib-append port:szip |
---|
45 | } |
---|