pkgsrc/devel/hdf/patches/patch-ao
adam 0f2c6aa292 Changes 4.2r1:
Configuration
     * By default HDF4 libraries and utilities are installed under
       <source_dir>/NewHDF
     * Windows configuration, build and testing procedures have been changed.
       Please see INSTALL_WINDOWS.txt file for more information
    Library
    * New API SDidtype was added to the library (bug #766)
    * HCgetcompress renamed to HCPgetcompress
    * New API HCget_config_info added
    * The default chunk cache size was changed for 2D and higher
      chunks
    * Pablo instumentation was removed

    Utilities
     * hdiff and hrepack are supported on Windows.
     * Substantial performance improvements in hdiff and hrepack

Support for new platforms and compilers
     * Fortran IBM xlf v 8.1 and Absoft f95 version 8.2 compilers
       are supported on Mac OSX.
     * Absoft Fortran compiler f95 version 9.0 is supported on Linux 2.4
     * PGI C and Fortran compilers are supported on Linux 2.4
     * Intel C and Fortran compilers are supported on Linux 2.4
     * Cray TS IEEE is supported.

Bugs fixed since HDF4.2r0
 * VERY IMPORTANT:
   Data compressed with SZIP may be corrupted; fixed. For more
   information see "HDF4.2r1 SZIP Release Notes" available at
   http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/SZIP_HDF4_2r1.pdf
 * Fortran couldn't read names with spaces when NetCDF interfaces
   were used; fixed
 * Library failed to compile in presence of the NetCDF library; fixed
 * h4fc couldn't create object files; fixed
 * When rank of SDS is 0, some SD APIs give segmentation fault (bug 1045);
   fixed
 * Some GR images with special elements are read in as duplicate
   (bug 814); fixed
 * Many bugs fixed in hdiff and hrepack utilities
2005-02-24 16:25:38 +00:00

85 lines
2.5 KiB
Text

$NetBSD: patch-ao,v 1.7 2005/02/24 16:25:38 adam Exp $
--- hdf/src/hdfi.h.orig 2005-01-25 03:36:44.000000000 +0000
+++ hdf/src/hdfi.h
@@ -147,6 +147,8 @@
* Define options for each platform
*-------------------------------------------------------------------------*/
+#ifndef __NetBSD__
+
/*
* Meaning of each defined macros (not completed yet)
*
@@ -1386,6 +1388,71 @@ typedef long hdf_pint_t;
#endif /* IA64 */
+#endif /* ! NetBSD */
+
+#ifdef __NetBSD__
+
+#ifdef GOT_MACHINE
+If you get an error on this line more than one machine type has been defined.
+Please check your Makefile.
+#endif
+#define GOT_MACHINE
+
+#include <sys/file.h> /* for unbuffered i/o stuff */
+#include <sys/stat.h>
+#ifdef __vax__
+#define DF_MT 0x2221
+#elif defined(__m68k__) || defined(__sparc__) || defined(__sparc64__) || defined(__powerpc__)
+#define DF_MT 0x1111
+#else
+#define DF_MT 0x4441
+#endif
+typedef void VOID;
+typedef void *VOIDP;
+typedef char *_fcd;
+typedef char char8;
+typedef unsigned char uchar8;
+typedef char int8;
+typedef unsigned char uint8;
+typedef short int int16;
+typedef unsigned short int uint16;
+#ifndef __rpc_types_h
+typedef int int32;
+typedef unsigned int uint32;
+#endif /* __rpc_types_h */
+typedef int intn;
+typedef unsigned int uintn;
+typedef int intf; /* size of INTEGERs in Fortran compiler */
+typedef float float32;
+typedef double float64;
+#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__)
+typedef long hdf_pint_t; /* an integer the same size as a pointer */
+#else
+typedef int hdf_pint_t; /* an integer the same size as a pointer */
+#endif
+#define FNAME_POST_UNDERSCORE
+#define _fcdtocp(desc) (desc)
+#ifdef HAVE_FMPOOL
+#define FILELIB PAGEBUFIO /* enable page buffering */
+#else
+#define FILELIB UNIXBUFIO
+#endif
+
+/* JPEG #define's - Look in the JPEG docs before changing - (Q) */
+
+/* Determine the memory manager we are going to use. Valid values are: */
+/* MEM_DOS, MEM_ANSI, MEM_NAME, MEM_NOBS. See the JPEG docs for details on */
+/* what each does */
+#define JMEMSYS MEM_ANSI
+
+#ifdef __GNUC__
+#define HAVE_STDC
+#define INCLUDES_ARE_ANSI
+#endif
+
+#endif /* NetBSD */
+
+
#ifndef GOT_MACHINE
No machine type has been defined. Your Makefile needs to have someing like
-DSUN or -DUNICOS in order for the HDF internal structures to be defined