Ticket #13603: Portfile

File Portfile, 1.6 KB (added by takeshi@…, 17 years ago)
Line 
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
4PortSystem          1.0
5
6name                hdf4
7version             4.2r2
8categories          science
9maintainers         nomaintainer
10
11description         file format for storing scientific data and utilities
12long_description    ${description}
13homepage            http://www.hdfgroup.org/
14master_sites        ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/
15checksums           md5 088540ae11cff4dcddedafd546e0831d \
16                    sha1 0b420da111af50c9672a64a4e660233e9b79d856 \
17                    rmd160 6dfbf57df4c428d3ac4ce406245c19b8d08f72fd
18
19depends_lib         port:g95 port:zlib port:jpeg
20distname            HDF$version
21
22configure.args      --with-szlib=no --disable-netcdf
23configure.env       F77=${prefix}/bin/g95
24configure.ldflags   "-L${worksrcpath}/src/.libs -L${prefix}/lib"
25
26test.run            yes
27test.target         check
28
29post-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
41variant szip {
42  configure.args-delete --with-szlib=no
43        configure.args-append   --with-szlib=yes
44        depends_lib-append          port:szip
45}