hdf stable port information

Package: hdf
Version: 4.2r1
Revision: 1012
Distribution: 10.4, 10.5
#Maintainer: None
Maintainer: Kurt Schwehr
BuildDepends: fink (>= 0.24.12), g95 (>= 0.50-20060414), libjpeg, netcdf (>= 3.6.0-1002)
Depends: libjpeg-shlibs, netcdf-shlibs (>= 3.6.0-1002)
Source: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF%v/src/HDF%v.tar.gz
Source-MD5: 9082c6fa913b9188452fa6c5217e1573
SourceDirectory: HDF%v
SetCPPFLAGS: -DHAVE_NETCDF
PatchFile: %n.patch
PatchFile-MD5: 34f8bcc1203b78c910b0843de4f6c4c8
PatchScript: <<
#!/bin/sh -ev
if [ %m = "i386" ]; then
sed 's|@FMT@|PC|g' < %{PatchFile} | patch -p1
else
sed 's|@FMT@|APPLE|g' < %{PatchFile} | patch -p1
fi
<<
ConfigureParams: --without-szlib --build=i686-redhat-linux-gnu --with-jpeg=%p
CompileScript: <<
#!/bin/sh -ev
if [ %m = "i386" ]; then
CPPFLAGS=-DINTEL86 ./configure %c
else
./configure %c
fi
make
<<
InstallScript: <<
make install prefix=%i mandir=%i/share/man docdir=%i/share/doc/%n
(cd %i/bin; mv ncdump hdfdump; mv ncgen hdfgen)
(cd %i/share/man/man1; mv ncgen.1 hdfgen.1; mv ncdump.1 hdfdump.1)
(cd %i/include; rm -f netcdf.h netcdf.inc netcdf.f90)
(cd %i/lib; rm -f libudport.a)
mkdir -p %i/share/doc/%n
mv hdf/util/testfiles samples
cp -R samples %i/share/doc/%n
/bin/rm -rf %i/man
<<
DocFiles: COPYING INSTALL README release_notes/HISTORY.txt release_notes/RELEASE.txt release_notes/bugs_fixed.txt release_notes/misc_docs.txt
Description: Scientific data format
DescDetail: <<
At its lowest level, HDF is a physical file format for storing
scientific data. At its highest level, HDF is a collection of
utilities and applications for manipulating, viewing, and analyzing
data in HDF files. Between these levels, HDF is a software library
that provides high-level APIs and a low-level data interface.
<<
DescPort: <<
Some files in common with netcdf - these are not installed.

Formerly maintained by Jeff Whitaker
<<
License: OSI-Approved
Homepage: http://hdf.ncsa.uiuc.edu/

hdf stable port .patch

--- hdf/config/linux-gnu.orig 2006-04-19 09:47:24.000000000 -0600
+++ hdf/config/linux-gnu 2006-04-19 09:48:03.000000000 -0600
@@ -26,8 +26,8 @@
fi

if test "X-$F77" = "X-"; then
- F77=g77
- F77_BASENAME=g77
+ F77=g95
+ F77_BASENAME=g95

else
case $F77 in
@@ -99,7 +99,7 @@
#
# WARNING: flags do not have to be added to the CFLAGS
# or FFLAGS variable if the compiler is the GNU gcc
-# and g77 compiler.
+# and g95 compiler.
#
# FFLAGS and CFLAGS should contain *something* or else
# configure will probably add `-g'. For most systems
@@ -138,10 +138,10 @@
esac

case $F77_BASENAME in
- g77)
- FFLAGS="$FFLAGS -Wsign-compare"
+ g95)
+ FFLAGS="$FFLAGS"
DEBUG_FFLAGS="-g"
- PROD_FFLAGS="-O3 -fomit-frame-pointer"
+ PROD_FFLAGS="-O2"
PROFILE_FFLAGS="-pg"
;;

--- hdf/hdf/src/hdfi.h.orig 2006-01-02 20:07:53.000000000 -0700
+++ hdf/hdf/src/hdfi.h 2006-01-02 20:08:51.000000000 -0700
@@ -736,7 +736,7 @@
#include
#include /* for unbuffered i/o stuff */
#include
-#define DF_MT DFMT_APPLE
+#define DF_MT DFMT_@FMT@
typedef void VOID;
typedef void *VOIDP;
typedef char *_fcd;
@@ -754,8 +754,8 @@
typedef double float64;
typedef int intf; /* size of INTEGERs in Fortran compiler */
typedef int hdf_pint_t; /* an integer the same size as a pointer */
+#define FNAME_POST_UNDERSCORE
#define _fcdtocp(desc) (desc)
-#define FNAME(x) x
#ifdef H4_ABSOFT
#define DF_CAPFNAMES
#endif /*ABSOFT*/
@@ -886,7 +886,7 @@
#endif /*MAC*/

/* Metrowerks Mac compiler defines some PC stuff so need to exclude this on the Mac */
-#if !(defined(macintosh) || defined(MAC))
+#if !(defined(__APPLE__) || defined(macintosh) || defined(MAC))

#if defined _M_ALPHA || defined _M_IX86 || defined INTEL86 || defined M_I86 || defined M_I386 || defined DOS386 || defined __i386 || defined UNIX386 || defined i386
#ifndef INTEL86

hdf _unstable_ port .patch