[34982] trunk/dports/science
takeshi at macports.org
takeshi at macports.org
Thu Mar 13 08:44:17 PDT 2008
Revision: 34982
http://trac.macosforge.org/projects/macports/changeset/34982
Author: takeshi at macports.org
Date: 2008-03-13 08:44:14 -0700 (Thu, 13 Mar 2008)
Log Message:
-----------
Adding hdf4
Added Paths:
-----------
trunk/dports/science/hdf4/
trunk/dports/science/hdf4/Portfile
Added: trunk/dports/science/hdf4/Portfile
===================================================================
--- trunk/dports/science/hdf4/Portfile (rev 0)
+++ trunk/dports/science/hdf4/Portfile 2008-03-13 15:44:14 UTC (rev 34982)
@@ -0,0 +1,46 @@
+# -*- 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
+# $Id: Portfile 31507 2007-11-26 08:38:14Z takanori at macports.org $
+
+PortSystem 1.0
+
+name hdf4
+version 4.2r2
+platforms darwin
+categories science
+maintainers nomaintainer
+
+description file format for storing scientific data and utilities
+long_description ${description}
+homepage http://www.hdfgroup.org/
+master_sites ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/
+checksums md5 088540ae11cff4dcddedafd546e0831d \
+ sha1 0b420da111af50c9672a64a4e660233e9b79d856 \
+ rmd160 6dfbf57df4c428d3ac4ce406245c19b8d08f72fd
+
+depends_lib port:g95 port:zlib port:jpeg
+distname HDF$version
+
+configure.args --with-szlib=no --disable-netcdf
+configure.env F77=${prefix}/bin/g95
+configure.ldflags "-L${worksrcpath}/src/.libs -L${prefix}/lib"
+
+test.run yes
+test.target check
+
+post-destroot {
+ cd ${destroot}${prefix}
+ file mkdir share/doc/${name}
+ file copy ${worksrcpath}/hdf/util/testfiles share/doc/${name}/samples
+ foreach f {COPYING INSTALL README release_notes/HISTORY.txt} {
+ file copy ${worksrcpath}/$f share/doc/${name}/
+ }
+ file delete bin/ncdump bin/ncgen \
+ include/netcdf.h include/netcdf.inc include/netcdf.f90 \
+ lib/libudport.a share/man/man1/ncgen.1 share/man/man1/ncdump.1
+}
+
+variant szip {
+ configure.args-delete --with-szlib=no
+ configure.args-append --with-szlib=yes
+ depends_lib-append port:szip
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080313/7c93c470/attachment.html
More information about the macports-changes
mailing list