[53005] trunk/dports/science/hdf4

takeshi at macports.org takeshi at macports.org
Sat Jun 27 22:38:57 PDT 2009


Revision: 53005
          http://trac.macports.org/changeset/53005
Author:   takeshi at macports.org
Date:     2009-06-27 22:38:55 -0700 (Sat, 27 Jun 2009)
Log Message:
-----------
hdf4: updated to 4.2r4. Added a patch to enable build for x86_64

Modified Paths:
--------------
    trunk/dports/science/hdf4/Portfile

Added Paths:
-----------
    trunk/dports/science/hdf4/files/
    trunk/dports/science/hdf4/files/patch-hdfi.h.diff

Modified: trunk/dports/science/hdf4/Portfile
===================================================================
--- trunk/dports/science/hdf4/Portfile	2009-06-28 00:57:12 UTC (rev 53004)
+++ trunk/dports/science/hdf4/Portfile	2009-06-28 05:38:55 UTC (rev 53005)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                hdf4
-version             4.2r3
-revision            1
+version             4.2r4
 platforms           darwin
 categories          science
 maintainers         takeshi
@@ -14,13 +13,14 @@
 long_description    ${description}
 homepage            http://www.hdfgroup.org/products/hdf4/index.html
 master_sites        ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/
-checksums           md5    767382a31470e795f4c4217e33a689e8         \
-                    sha1   31fa41dc5cb06c8f3b34a064ca83cefae16ae1f6 \
-                    rmd160 cab74803c04dcc07ef7b0f6e69ce7462a2d6e7a3
+checksums           md5    cbcfcdb65f27b743c6001c17619704a8         \
+                    sha1   000fa1be9c355c490cceed786feeb269a0d355a7 \
+                    rmd160 13274858f1fa0c339fab83b1f9c37314bd10d624
 
 depends_lib         port:zlib port:jpeg
 distname            HDF$version
 
+patchfiles          patch-hdfi.h.diff
 configure.args       --with-szlib=no --disable-netcdf --disable-fortran
 configure.ldflags    "-L${worksrcpath}/src/.libs -L${prefix}/lib"
 

Added: trunk/dports/science/hdf4/files/patch-hdfi.h.diff
===================================================================
--- trunk/dports/science/hdf4/files/patch-hdfi.h.diff	                        (rev 0)
+++ trunk/dports/science/hdf4/files/patch-hdfi.h.diff	2009-06-28 05:38:55 UTC (rev 53005)
@@ -0,0 +1,23 @@
+--- hdf/src/hdfi.h.orig	2009-06-28 12:52:44.000000000 +0900
++++ hdf/src/hdfi.h	2009-06-28 12:58:53.000000000 +0900
+@@ -791,7 +791,11 @@
+ typedef float           float32;
+ typedef double          float64;
+ typedef int             intf;     /* size of INTEGERs in Fortran compiler */
++#ifdef __LP64__
++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 _fcdtocp(desc) (desc)
+ #ifdef  HAVE_FMPOOL
+ #define FILELIB PAGEBUFIO  /* enable page buffering */
+@@ -1346,7 +1350,7 @@
+ 
+ #endif /*power PC 5 64 */
+ /* Linux 64 */
+-#if defined __x86_64__  && !(defined  SUN) /* i.e. not SunOS on Intel */
++#if defined __x86_64__  && !(defined  __APPLE__)  /* i.e. not Mac OS X on Intel */
+ 
+ #ifdef GOT_MACHINE
+ If you get an error on this line more than one machine type has been defined.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090627/749be3aa/attachment.html>


More information about the macports-changes mailing list