This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [ITA] hdf5-1.6.7-1
- From: "Dr. Volker Zell" <dr dot volker dot zell at oracle dot com>
- To: cygwin-apps at cygwin dot com
- Date: Sun, 27 Apr 2008 15:04:49 +0200
- Subject: Re: [ITA] hdf5-1.6.7-1
- References: <509629.92658.qm@web25008.mail.ukl.yahoo.com>
>>>>> Marco Atzeri writes:
> Dear all,
> I would like to adopt HDF5
With the attached patch hdf5 is build with shared libs. Also attached
the modified .cygport file to support splitting in main, lib and devel
packages and cygwin specific patch which corrects some setup.hint errors.
Ciao
Volker
diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x autom4te.cache -x config.cache -x config.log -x config.status -x config.h -x config.h.in -x ABOUT-NLS -x Makefile.in.in -x Makevars.template -x '*SlackBuild*' -x '*.egg-info' -x '*.class' -x '*.pyc' -x '*.mo' -x '*.gmo' -x at-3.1.8-31.install.orig -x hdf5-1.6.7-1.src.patch.orig -x libmad-0.15.1b-1.sh.orig -x libmcrypt-2.5.8-1.src.patch.orig -x postgresql-8.1.4-1.cygport.orig -x rcs-5.7-4.src.patch.orig -x template-package.sh.orig -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x COPYING -x INSTALL -x compile -x config-ml.in -x config.guess -x config.sub -x depcomp -x elisp-comp -x install-sh -x ltmain.sh -x mdate-sh -x missing -x mkinstalldirs -x py-compile -x symlink-tree -x texinfo.tex -x ylwrap -x config.rpath -x configure -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x intltool-extract -x intltool-extract.in -x intltool-merge -x intltool-merge.in -x intltool-update -x intltool-update.in -x Makefile origsrc/hdf5-1.6.7/config/commence.in src/hdf5-1.6.7/config/commence.in
--- origsrc/hdf5-1.6.7/config/commence.in 2008-02-01 04:04:06.000000000 +0100
+++ src/hdf5-1.6.7/config/commence.in 2008-04-27 13:03:42.718750000 +0200
@@ -67,7 +67,7 @@
DYNAMIC_DIRS=@DYNAMIC_DIRS@
LT=$(top_builddir)/libtool
LT_COMPILE=$(LT) --mode=compile $(CC)
-LT_LINK_LIB=$(LT) --mode=link $(CC) -rpath $(libdir) $(DYNAMIC_DIRS)
+LT_LINK_LIB=$(LT) --mode=link $(CC) -shared -no-undefined -rpath $(libdir) $(DYNAMIC_DIRS)
LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(libdir) $(DYNAMIC_DIRS)
LT_RUN=$(LT) --mode=execute
LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM)
diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x autom4te.cache -x config.cache -x config.log -x config.status -x config.h -x config.h.in -x ABOUT-NLS -x Makefile.in.in -x Makevars.template -x '*SlackBuild*' -x '*.egg-info' -x '*.class' -x '*.pyc' -x '*.mo' -x '*.gmo' -x at-3.1.8-31.install.orig -x hdf5-1.6.7-1.src.patch.orig -x libmad-0.15.1b-1.sh.orig -x libmcrypt-2.5.8-1.src.patch.orig -x postgresql-8.1.4-1.cygport.orig -x rcs-5.7-4.src.patch.orig -x template-package.sh.orig -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x COPYING -x INSTALL -x compile -x config-ml.in -x config.guess -x config.sub -x depcomp -x elisp-comp -x install-sh -x ltmain.sh -x mdate-sh -x missing -x mkinstalldirs -x py-compile -x symlink-tree -x texinfo.tex -x ylwrap -x config.rpath -x configure -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x intltool-extract -x intltool-extract.in -x intltool-merge -x intltool-merge.in -x intltool-update -x intltool-update.in -x Makefile origsrc/hdf5-1.6.7/config/conclude.in src/hdf5-1.6.7/config/conclude.in
--- origsrc/hdf5-1.6.7/config/conclude.in 2008-02-01 04:04:06.000000000 +0100
+++ src/hdf5-1.6.7/config/conclude.in 2008-04-27 13:03:42.734375000 +0200
@@ -23,7 +23,7 @@
##
lib: $(LIB)
$(LIB) __no_library__: $(LIB_OBJ)
- @$(LT_LINK_LIB) -o $@ $(CFLAGS) $(LIB_OBJ) $(LDFLAGS) $(LIBS)
+ @$(LT_LINK_LIB) -o $@ $(CFLAGS) $(LIB_OBJ) $(LIBHDF5) $(LDFLAGS) $(LIBS)
@for d in X $(SUBDIRS); do \
if test $$d != X; then \
(set -x; cd $$d && $(MAKE) lib) || exit 1; \
diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x autom4te.cache -x config.cache -x config.log -x config.status -x config.h -x config.h.in -x ABOUT-NLS -x Makefile.in.in -x Makevars.template -x '*SlackBuild*' -x '*.egg-info' -x '*.class' -x '*.pyc' -x '*.mo' -x '*.gmo' -x at-3.1.8-31.install.orig -x hdf5-1.6.7-1.src.patch.orig -x libmad-0.15.1b-1.sh.orig -x libmcrypt-2.5.8-1.src.patch.orig -x postgresql-8.1.4-1.cygport.orig -x rcs-5.7-4.src.patch.orig -x template-package.sh.orig -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x COPYING -x INSTALL -x compile -x config-ml.in -x config.guess -x config.sub -x depcomp -x elisp-comp -x install-sh -x ltmain.sh -x mdate-sh -x missing -x mkinstalldirs -x py-compile -x symlink-tree -x texinfo.tex -x ylwrap -x config.rpath -x configure -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x intltool-extract -x intltool-extract.in -x intltool-merge -x intltool-merge.in -x intltool-update -x intltool-update.in -x Makefile origsrc/hdf5-1.6.7/test/Makefile.in src/hdf5-1.6.7/test/Makefile.in
--- origsrc/hdf5-1.6.7/test/Makefile.in 2008-02-01 04:03:46.000000000 +0100
+++ src/hdf5-1.6.7/test/Makefile.in 2008-04-27 13:03:42.734375000 +0200
@@ -41,6 +41,7 @@
LIB_SRC=h5test.c testframe.c
LIB_OBJ=$(LIB_SRC:.c=.lo)
PUB_LIB=
+LIBS=$(LIBHDF5)
## Temporary files. These files are the ones created by setting the
## HDF5_NOCLEANUP environment variable and running `make test' without
diff -urN origsrc/hdf5-1.6.7/CYGWIN-PATCHES/README src/hdf5-1.6.7/CYGWIN-PATCHES/README
--- origsrc/hdf5-1.6.7/CYGWIN-PATCHES/README 1970-01-01 01:00:00.000000000 +0100
+++ src/hdf5-1.6.7/CYGWIN-PATCHES/README 2008-04-27 13:40:12.203125000 +0200
@@ -0,0 +1,54 @@
+HDF5
+-----------------------------------------------
+HDF5 is a unique technology suite that makes possible the
+management of extremely large and complex data collections.
+
+The HDF5 technology suite includes:
+
+ * A versatile data model that can represent very complex
+ data objects and a wide variety of metadata.
+
+ * A completely portable file format with no limit on the
+ number or size of data objects in the collection.
+
+ * A software library that runs on a range of computational
+ platforms, from laptops to massively parallel systems,
+ and implements a high-level API with C, C++, Fortran 90,
+ and Java interfaces.
+
+ * A rich set of integrated performance features that allow for
+ access time and storage space optimizations.
+
+ * Tools and applications for managing, manipulating, viewing,
+ and analyzing the data in the collection.
+---------------------------------------------------
+
+License:
+ The HDF5 data model, file format, API, library, and tools
+ are open and distributed without charge.
+
+Runtime requirements:
+ cygwin-1.5.25 or newer
+ zlib-1.2.3-2 or newer
+
+Build requirements:
+ cygwin
+ zlib
+ gcc-3.3.3 or newer
+ binutils-20030901-1 or newer
+ autoconf, binutils, gcc,
+ g++, make, less, readline, diff, patch
+
+Canonical homepage:
+ http://www.hdfgroup.org/HDF5/
+
+Canonical download:
+ ftp://ftp.hdfgroup.org/HDF5/current16/
+
+--------- hdf5-1.6.7-1 -------------------
+Initial Cygwin Package
+------------------------------------
+Cygwin port maintained by: Marco Atzeri
+
+Please address all questions to the Cygwin mailing list at cygwin@cygwin.com
+
diff -urN origsrc/hdf5-1.6.7/CYGWIN-PATCHES/devel.hint src/hdf5-1.6.7/CYGWIN-PATCHES/devel.hint
--- origsrc/hdf5-1.6.7/CYGWIN-PATCHES/devel.hint 1970-01-01 01:00:00.000000000 +0100
+++ src/hdf5-1.6.7/CYGWIN-PATCHES/devel.hint 2008-04-27 13:46:34.125000000 +0200
@@ -0,0 +1,5 @@
+category: Devel Archive Utils
+requires: cygwin libhdf5_0 zlib
+external-source: hdf5
+sdesc: "HDF5 Hierarchical Data Format - (development)"
+ldesc: "HDF5 is a completely new Hierarchical Data Format product consisting of a data format specification and a supporting library implementation"
diff -urN origsrc/hdf5-1.6.7/CYGWIN-PATCHES/lib.hint src/hdf5-1.6.7/CYGWIN-PATCHES/lib.hint
--- origsrc/hdf5-1.6.7/CYGWIN-PATCHES/lib.hint 1970-01-01 01:00:00.000000000 +0100
+++ src/hdf5-1.6.7/CYGWIN-PATCHES/lib.hint 2008-04-27 13:45:16.375000000 +0200
@@ -0,0 +1,5 @@
+category: Devel Libs Archive Utils
+requires: cygwin zlib
+external-source: hdf5
+sdesc: "HDF5 Hierarchical Data Format - (runtime)"
+ldesc: "HDF5 is a completely new Hierarchical Data Format product consisting of a data format specification and a supporting library implementation"
diff -urN origsrc/hdf5-1.6.7/CYGWIN-PATCHES/setup.hint src/hdf5-1.6.7/CYGWIN-PATCHES/setup.hint
--- origsrc/hdf5-1.6.7/CYGWIN-PATCHES/setup.hint 1970-01-01 01:00:00.000000000 +0100
+++ src/hdf5-1.6.7/CYGWIN-PATCHES/setup.hint 2008-04-27 14:11:33.000000000 +0200
@@ -0,0 +1,4 @@
+category: Archive Utils
+requires: cygwin libhdf5_0 coreutils ed gcc sed
+sdesc: "HDF5 Hierarchical Data Format"
+ldesc: "HDF5 is a completely new Hierarchical Data Format product consisting of a data format specification and a supporting library implementation"
# $Id: sample.cygport,v 1.5 2006/11/20 05:48:58 yselkowitz Exp $
ORIG_PN="hdf5"
DESCRIPTION="HDF5 API interface"
HOMEPAGE="http://www.hdfgroup.org/HDF5/"
SRC_URI="ftp://ftp.hdfgroup.org/HDF5/current16/src/${PN}-${PV}.tar.gz"
abi=0
PKG_NAMES="${PN} lib${PN}_${abi} lib${PN}-devel"
PKG_HINTS="setup lib devel"
PKG_CONTENTS[0]='--exclude=usr/bin/*.dll usr/bin usr/share/'
PKG_CONTENTS[1]="usr/bin/*-${abi}.dll"
PKG_CONTENTS[2]='usr/include/ usr/lib/'
DIFF_EXCLUDES="Makefile"
CYGCONF_ARGS="
--with-ssl
--with-zlib
--enable-cxx
"
src_install() {
cd ${S}
dodoc COPYING README.txt
insinto /usr/share/doc/${P}/release_docs
doins release_docs/*
cd ${B}
USE_DESTDIR=0
cyginstall install-all \
prefix=${D} exec-prefix=${D} \
bindir=${D}/usr/bin \
includedir=${D}/usr/include/${PN} \
docdir=${D}/usr/share/doc/${P} \
datarootdir=${D}/usr/share
}