pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/hdf update to 4.2r4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc857760ac85
branches:  trunk
changeset: 568300:cc857760ac85
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Thu Dec 10 17:10:14 2009 +0000

description:
update to 4.2r4
changes:
-API additions
-hdp and hrepack utilities can now display more compression information
-build system updates
-bugfixes

pkgsrc notes:
-we build shared libraries now although it is officially unsupported
 if Fortran is enabled (works for me)
-The 24-bit-jpeg selftest fails. It also failed with the previous
 version. (perhaps jpeg-7 related?) The test contains too much magic
 to tell what happens.

diffstat:

 devel/hdf/Makefile         |  15 ++++--
 devel/hdf/PLIST            |  11 +++-
 devel/hdf/distinfo         |  15 +++---
 devel/hdf/patches/patch-aa |  13 ------
 devel/hdf/patches/patch-ai |  66 ++++++++++++++++----------------
 devel/hdf/patches/patch-aj |  94 ++++++++++++++++++++++++++++-----------------
 devel/hdf/patches/patch-ap |   8 +-
 7 files changed, 120 insertions(+), 102 deletions(-)

diffs (truncated from 340 to 300 lines):

diff -r fed3071ba3a7 -r cc857760ac85 devel/hdf/Makefile
--- a/devel/hdf/Makefile        Thu Dec 10 16:57:33 2009 +0000
+++ b/devel/hdf/Makefile        Thu Dec 10 17:10:14 2009 +0000
@@ -1,22 +1,25 @@
-# $NetBSD: Makefile,v 1.32 2009/12/03 13:06:52 asau Exp $
+# $NetBSD: Makefile,v 1.33 2009/12/10 17:10:14 drochner Exp $
 
-DISTNAME=      HDF4.2r1
-PKGNAME=       hdf-4.2r1
-PKGREVISION=   3
+DISTNAME=      HDF4.2r4
+PKGNAME=       hdf-4.2r4
 CATEGORIES=    devel
-MASTER_SITES=  ftp://ftp.hdfgroup.org/HDF/prev-releases/HDF4.2r1/src/
+MASTER_SITES=  ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/
+EXTRACT_USING= gtar
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://hdf.ncsa.uiuc.edu/hdf4.html
+HOMEPAGE=      http://www.hdfgroup.org/products/hdf4/
 COMMENT=       NCSA Hierarchical Data Format
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
+USE_LIBTOOL=           yes
 USE_TOOLS+=            lex gmake yacc
 USE_LANGUAGES=         c fortran
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/hdf
 CONFIGURE_ARGS+=       --with-szlib
+# pkgsrc libtool builds shared objects anyway
+#CONFIGURE_ARGS+=      --enable-shared
 
 post-patch:
        ${MV} -f ${WRKSRC}/mfhdf/ncdump/ncdump.1                \
diff -r fed3071ba3a7 -r cc857760ac85 devel/hdf/PLIST
--- a/devel/hdf/PLIST   Thu Dec 10 16:57:33 2009 +0000
+++ b/devel/hdf/PLIST   Thu Dec 10 17:10:14 2009 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2009/06/14 17:48:48 joerg Exp $
+@comment $NetBSD: PLIST,v 1.6 2009/12/10 17:10:14 drochner Exp $
 bin/gif2hdf
 bin/h4cc
 bin/h4fc
@@ -62,12 +62,16 @@
 include/hdf/hlimits.h
 include/hdf/hntdefs.h
 include/hdf/hproto.h
+include/hdf/hproto_fortran.h
 include/hdf/htags.h
 include/hdf/linklist.h
 include/hdf/local_nc.h
 include/hdf/mfan.h
+include/hdf/mffunc.f90
+include/hdf/mffunc.inc
 include/hdf/mfgr.h
 include/hdf/mfhdf.h
+include/hdf/mfhdfi.h
 include/hdf/mstdio.h
 include/hdf/netcdf.f90
 include/hdf/netcdf.h
@@ -75,8 +79,9 @@
 include/hdf/tbbt.h
 include/hdf/vattr.h
 include/hdf/vg.h
-lib/libdf.a
-lib/libmfhdf.a
+lib/libdf.la
+lib/libhdf4.settings
+lib/libmfhdf.la
 man/man1/hdf.1
 man/man1/hdfncdump.1
 man/man1/hdfncgen.1
diff -r fed3071ba3a7 -r cc857760ac85 devel/hdf/distinfo
--- a/devel/hdf/distinfo        Thu Dec 10 16:57:33 2009 +0000
+++ b/devel/hdf/distinfo        Thu Dec 10 17:10:14 2009 +0000
@@ -1,13 +1,12 @@
-$NetBSD: distinfo,v 1.9 2006/01/13 13:11:08 joerg Exp $
+$NetBSD: distinfo,v 1.10 2009/12/10 17:10:14 drochner Exp $
 
-SHA1 (HDF4.2r1.tar.gz) = 8a9259a22180204a27d8dca3581614066fc6dcd3
-RMD160 (HDF4.2r1.tar.gz) = 1a0b7b4bf2a60d32d1e3ed69d40bf23dce912331
-Size (HDF4.2r1.tar.gz) = 3911745 bytes
-SHA1 (patch-aa) = a75647eb554a9e9ef4411b3e9675dab3e9137001
-SHA1 (patch-ai) = ca2ea7f69d201fb5fd9b4b43201b96aec5c9c0d8
-SHA1 (patch-aj) = a3e96cdeebfaf54b25df94742d1fd9a13b85362f
+SHA1 (HDF4.2r4.tar.gz) = 000fa1be9c355c490cceed786feeb269a0d355a7
+RMD160 (HDF4.2r4.tar.gz) = 13274858f1fa0c339fab83b1f9c37314bd10d624
+Size (HDF4.2r4.tar.gz) = 3914118 bytes
+SHA1 (patch-ai) = 3b85a0d32ca8e7d4065bf09960de2769c12740cd
+SHA1 (patch-aj) = f1f64d19b4346da5b18c2d80c93f929a96b56b70
 SHA1 (patch-ao) = cf461ca847ddef05c4876fe3527beda3242ee2f2
-SHA1 (patch-ap) = b7d704321653cbf95d8784c6364b880bdc8d67df
+SHA1 (patch-ap) = 18a209229a60742a73c720d55f558949285351f2
 SHA1 (patch-ar) = 5fbb6e8c56ccf05db0217e9551a0c72ecd9f5c06
 SHA1 (patch-as) = b4fa7cd3bcafd75c9bfc045c2849bde21becd2de
 SHA1 (patch-ba) = 8c58817507b6635c566acc784c9ddec32a380d2b
diff -r fed3071ba3a7 -r cc857760ac85 devel/hdf/patches/patch-aa
--- a/devel/hdf/patches/patch-aa        Thu Dec 10 16:57:33 2009 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.3 2006/01/09 19:27:19 joerg Exp $
-
---- mfhdf/hdiff/Makefile.in.orig       2006-01-09 19:22:02.000000000 +0000
-+++ mfhdf/hdiff/Makefile.in
-@@ -189,7 +189,7 @@ am_hdiff_OBJECTS = hdiff.$(OBJEXT) hdiff
-       hdiff_misc.$(OBJEXT) hdiff_sds.$(OBJEXT) hdiff_table.$(OBJEXT) \
-       hdiff_vs.$(OBJEXT)
- hdiff_OBJECTS = $(am_hdiff_OBJECTS)
--hdiff_LDFLAGS =
-+hdiff_LDFLAGS = -lm
- am_hdifftst_OBJECTS = hdifftst.$(OBJEXT)
- hdifftst_OBJECTS = $(am_hdifftst_OBJECTS)
- hdifftst_LDFLAGS =
diff -r fed3071ba3a7 -r cc857760ac85 devel/hdf/patches/patch-ai
--- a/devel/hdf/patches/patch-ai        Thu Dec 10 16:57:33 2009 +0000
+++ b/devel/hdf/patches/patch-ai        Thu Dec 10 17:10:14 2009 +0000
@@ -1,48 +1,48 @@
-$NetBSD: patch-ai,v 1.7 2004/04/20 18:14:37 drochner Exp $
+$NetBSD: patch-ai,v 1.8 2009/12/10 17:10:14 drochner Exp $
 
---- mfhdf/ncdump/Makefile.in.orig      2003-11-07 19:39:00.000000000 +0100
-+++ mfhdf/ncdump/Makefile.in   2004-04-20 16:38:54.000000000 +0200
-@@ -156,7 +156,7 @@
- #############################################################################
- #############################################################################
- bin_PROGRAMS = ncdump
+--- mfhdf/ncdump/Makefile.in.orig      2008-10-13 21:39:11.000000000 +0200
++++ mfhdf/ncdump/Makefile.in
+@@ -37,7 +37,7 @@ build_triplet = @build@
+ host_triplet = @host@
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+       $(top_srcdir)/config/commence.am
+-bin_PROGRAMS = ncdump$(EXEEXT)
++bin_PROGRAMS = hdfncdump$(EXEEXT)
+ subdir = mfhdf/ncdump
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+@@ -216,7 +216,7 @@ INCLUDES = -I$(top_srcdir)/hdf/src      
+ 
+ DEFINES = -DNDEBUG -DHDF
+ AM_CPPFLAGS = $(INCLUDES) $(DEFINES)
 -man1_MANS = ncdump.1
 +man1_MANS = hdfncdump.1
- 
  ncdump_SOURCES = dumplib.c ncdump.c vardata.c
- ncdump_LDADD = ../libsrc/libmfhdf.a $(top_builddir)/hdf/src/libdf.a
-@@ -171,7 +171,7 @@
- mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
- CONFIG_HEADER = $(top_builddir)/hdf/src/h4config.h
- CONFIG_CLEAN_FILES =
--bin_PROGRAMS = ncdump$(EXEEXT)
-+bin_PROGRAMS = hdfncdump$(EXEEXT)
- PROGRAMS = $(bin_PROGRAMS)
- 
- am_ncdump_OBJECTS = dumplib.$(OBJEXT) ncdump.$(OBJEXT) vardata.$(OBJEXT)
-@@ -227,7 +227,7 @@
- 
- clean-binPROGRAMS:
-       -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
+ ncdump_LDADD = ../libsrc/libmfhdf.la $(top_builddir)/hdf/src/libdf.la
+ ncdump_DEPENDENCIES = $(top_builddir)/hdf/src/libdf.la ../libsrc/libmfhdf.la
+@@ -285,7 +285,7 @@ clean-binPROGRAMS:
+         echo " rm -f $$p $$f"; \
+         rm -f $$p $$f ; \
+       done
 -ncdump$(EXEEXT): $(ncdump_OBJECTS) $(ncdump_DEPENDENCIES) 
 +hdfncdump$(EXEEXT): $(ncdump_OBJECTS) $(ncdump_DEPENDENCIES) 
        @rm -f ncdump$(EXEEXT)
-       $(LINK) $(ncdump_LDFLAGS) $(ncdump_OBJECTS) $(ncdump_LDADD) $(LIBS)
+       $(LINK) $(ncdump_OBJECTS) $(ncdump_LDADD) $(LIBS)
  
-@@ -491,11 +491,11 @@
-       uninstall-man uninstall-man1
+@@ -554,11 +554,11 @@ uninstall-man: uninstall-man1
+       uninstall-man1
  
  
 -check: ncdump $(srcdir)/test0.cdl
--      ../ncgen/ncgen -o test0.nc -n $(srcdir)/test0.cdl
--      ./ncdump test0.nc > test1.cdl
--      ../ncgen/ncgen -o test1.nc -n test1.cdl
--      ./ncdump -n test0 test1.nc > test2.cdl
+-      $(TESTS_ENVIRONMENT) ../ncgen/ncgen -o test0.nc -n $(srcdir)/test0.cdl
+-      $(TESTS_ENVIRONMENT) ./ncdump test0.nc > test1.cdl
+-      $(TESTS_ENVIRONMENT) ../ncgen/ncgen -o test1.nc -n test1.cdl
+-      $(TESTS_ENVIRONMENT) ./ncdump -n test0 test1.nc > test2.cdl
 +check: hdfncdump $(srcdir)/test0.cdl
-+      ../ncgen/hdfncgen -o test0.nc -n $(srcdir)/test0.cdl
-+      ./hdfncdump test0.nc > test1.cdl
-+      ../ncgen/hdfncgen -o test1.nc -n test1.cdl
-+      ./hdfncdump -n test0 test1.nc > test2.cdl
++      $(TESTS_ENVIRONMENT) ../ncgen/hdfncgen -o test0.nc -n $(srcdir)/test0.cdl
++      $(TESTS_ENVIRONMENT) ./hdfncdump test0.nc > test1.cdl
++      $(TESTS_ENVIRONMENT) ../ncgen/hdfncgen -o test1.nc -n test1.cdl
++      $(TESTS_ENVIRONMENT) ./hdfncdump -n test0 test1.nc > test2.cdl
        @cmp test1.cdl test2.cdl && echo "*** ncdump test successful ***" ;     \
            rm -f test1.nc test1.cdl test2.cdl
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
diff -r fed3071ba3a7 -r cc857760ac85 devel/hdf/patches/patch-aj
--- a/devel/hdf/patches/patch-aj        Thu Dec 10 16:57:33 2009 +0000
+++ b/devel/hdf/patches/patch-aj        Thu Dec 10 17:10:14 2009 +0000
@@ -1,58 +1,82 @@
-$NetBSD: patch-aj,v 1.7 2005/02/24 16:25:38 adam Exp $
+$NetBSD: patch-aj,v 1.8 2009/12/10 17:10:14 drochner Exp $
 
---- mfhdf/ncgen/Makefile.in.orig       2004-12-06 23:20:34.000000000 +0000
+--- mfhdf/ncgen/Makefile.in.orig       2008-10-13 21:39:11.000000000 +0200
 +++ mfhdf/ncgen/Makefile.in
-@@ -169,7 +169,7 @@ ncgen_DEPENDENCIES = $(top_builddir)/hdf
+@@ -37,7 +37,7 @@ build_triplet = @build@
+ host_triplet = @host@
+ DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+       $(top_srcdir)/config/commence.am
+-bin_PROGRAMS = ncgen$(EXEEXT)
++bin_PROGRAMS = hdfncgen$(EXEEXT)
+ @HDF_BUILD_FORTRAN_FALSE@@HDF_BUILD_NETCDF_TRUE@noinst_PROGRAMS = ctest0$(EXEEXT)
+ @HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@noinst_PROGRAMS = ctest0$(EXEEXT) \
+ @HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@       ftest0$(EXEEXT)
+@@ -242,11 +242,11 @@ ftest0_SOURCES = 
  
  #############################################################################
  #############################################################################
 -man1_MANS = ncgen.1
 +man1_MANS = hdfncgen.1
  
+ #############################################################################
+ #############################################################################
+-NCDUMP = ../ncdump/ncdump
++NCDUMP = ../ncdump/hdfncdump
  
  #############################################################################
-@@ -188,7 +188,7 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
- mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
- CONFIG_HEADER = $(top_builddir)/hdf/src/h4config.h
- CONFIG_CLEAN_FILES =
--bin_PROGRAMS = ncgen$(EXEEXT)
-+bin_PROGRAMS = hdfncgen$(EXEEXT)
- @HDF_BUILD_FORTRAN_TRUE@noinst_PROGRAMS = ctest0$(EXEEXT) \
- @HDF_BUILD_FORTRAN_TRUE@      ftest0$(EXEEXT)
- @HDF_BUILD_FORTRAN_FALSE@noinst_PROGRAMS = ctest0$(EXEEXT)
-@@ -269,7 +269,7 @@ clean-noinstPROGRAMS:
- @HDF_BUILD_FORTRAN_FALSE@ftest0$(EXEEXT): $(ftest0_OBJECTS) $(ftest0_DEPENDENCIES) 
- @HDF_BUILD_FORTRAN_FALSE@     @rm -f ftest0$(EXEEXT)
- @HDF_BUILD_FORTRAN_FALSE@     $(LINK) $(ftest0_LDFLAGS) $(ftest0_OBJECTS) $(ftest0_LDADD) $(LIBS)
+ #############################################################################
+@@ -328,7 +328,7 @@ clean-noinstPROGRAMS:
+ @HDF_BUILD_NETCDF_FALSE@ftest0$(EXEEXT): $(ftest0_OBJECTS) $(ftest0_DEPENDENCIES) 
+ @HDF_BUILD_NETCDF_FALSE@      @rm -f ftest0$(EXEEXT)
+ @HDF_BUILD_NETCDF_FALSE@      $(LINK) $(ftest0_OBJECTS) $(ftest0_LDADD) $(LIBS)
 -ncgen$(EXEEXT): $(ncgen_OBJECTS) $(ncgen_DEPENDENCIES) 
 +hdfncgen$(EXEEXT): $(ncgen_OBJECTS) $(ncgen_DEPENDENCIES) 
        @rm -f ncgen$(EXEEXT)
-       $(LINK) $(ncgen_LDFLAGS) $(ncgen_OBJECTS) $(ncgen_LDADD) $(LIBS)
+       $(LINK) $(ncgen_OBJECTS) $(ncgen_LDADD) $(LIBS)
+ 
+@@ -613,13 +613,13 @@ ncgenyy.c: ncgen.l
+       $(LEX) $(srcdir)/ncgen.l
+       mv lex.yy.c ncgenyy.c
  
-@@ -581,8 +581,8 @@ c-check:   test2.cdl ctest0
- @HDF_BUILD_FORTRAN_TRUE@        echo "*** ncgen -f test failed (but roundoff differences are OK) ***"; \
- @HDF_BUILD_FORTRAN_TRUE@      fi
+-@HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@check: ncgen $(srcdir)/test0.cdl b-check c-check f-check
+-@HDF_BUILD_FORTRAN_FALSE@@HDF_BUILD_NETCDF_TRUE@check: ncgen $(srcdir)/test0.cdl b-check c-check
++@HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@check: hdfncgen $(srcdir)/test0.cdl b-check c-check f-check
++@HDF_BUILD_FORTRAN_FALSE@@HDF_BUILD_NETCDF_TRUE@check: hdfncgen $(srcdir)/test0.cdl b-check c-check
+ 
+-@HDF_BUILD_NETCDF_FALSE@check: ncgen $(srcdir)/test0.cdl b-check c-check
++@HDF_BUILD_NETCDF_FALSE@check: hdfncgen $(srcdir)/test0.cdl b-check c-check
  
--@HDF_BUILD_FORTRAN_TRUE@ftest0:               ncgen test0.cdl netcdf.inc
--@HDF_BUILD_FORTRAN_TRUE@      ./ncgen -f -o ftest0.nc $(srcdir)/test0.cdl > test0.f
-+@HDF_BUILD_FORTRAN_TRUE@ftest0:               hdfncgen test0.cdl netcdf.inc
-+@HDF_BUILD_FORTRAN_TRUE@      ./hdfncgen -f -o ftest0.nc $(srcdir)/test0.cdl > test0.f
- @HDF_BUILD_FORTRAN_TRUE@      $(F77) $(FFLAGS) -o $@ test0.f $(LDFLAGS) $(ncgen_LDADD) $(LIBS)
+-b-check:      ncgen $(srcdir)/test0.cdl test1.cdl
+-      $(TESTS_ENVIRONMENT) ./ncgen -b test1.cdl
++b-check:      hdfncgen $(srcdir)/test0.cdl test1.cdl
++      $(TESTS_ENVIRONMENT) ./hdfncgen -b test1.cdl
+       $(TESTS_ENVIRONMENT) $(NCDUMP) test1.nc > test2.cdl
+       @if $(DIFF) test1.cdl test2.cdl; then                               \
+         echo "*** ncgen -b test successful ***";                          \
+@@ -645,8 +645,8 @@ c-check:   test2.cdl ctest0
+ @HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@         echo "*** ncgen -f test failed (but roundoff differences are OK) ***"; \
+ @HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@       fi
+ 
+-@HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@ftest0$(EXEEXT):               ncgen test0.cdl netcdf.inc
+-@HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@       $(TESTS_ENVIRONMENT) ./ncgen -f -o ftest0.nc $(srcdir)/test0.cdl > test0.f
++@HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@ftest0$(EXEEXT):               hdfncgen test0.cdl netcdf.inc
++@HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@       $(TESTS_ENVIRONMENT) ./hdfncgen -f -o ftest0.nc $(srcdir)/test0.cdl > test0.f
+ @HDF_BUILD_FORTRAN_TRUE@@HDF_BUILD_NETCDF_TRUE@       $(F77) $(FFLAGS) -o $@ test0.f $(LDFLAGS) $(SHLIBLOC) $(LIBS)
  
  netcdf.inc:
-@@ -591,11 +591,11 @@ netcdf.inc:
+@@ -655,11 +655,11 @@ netcdf.inc:
  test1.cdl:    test0.nc
-       $(NCDUMP) -n test1 test0.nc > $@
+       $(TESTS_ENVIRONMENT) $(NCDUMP) -n test1 test0.nc > $@
  



Home | Main Index | Thread Index | Old Index