mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-01 18:42:09 +02:00
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
|
|
# Maintainer:
|
|
#
|
|
# HDF5 depends on zlib and provides a C interface by default.
|
|
# Optionally, it can be built with szip (which has limitations on
|
|
# commercial use and thus is non-free), MPI, and C++ and Fortran bindings.
|
|
# C++ and Fortran bindings may not be thread-safe:
|
|
# building either and passing --enable-threadsafe is unsupported.
|
|
# Additionally, the 'high-level' bindings are incompatible with threadsafe
|
|
# builds, due to inadequate locking.
|
|
|
|
pkgname=hdf5
|
|
pkgver=1.8.18
|
|
_pkgver=$pkgver
|
|
pkgrel=0
|
|
pkgdesc="HDF5 is a data model, library, and file format for storing and managing data"
|
|
url="http://www.hdfgroup.org/HDF5/"
|
|
arch="all"
|
|
license="custom"
|
|
depends=""
|
|
depends_dev="zlib-dev"
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="http://www.hdfgroup.org/ftp/HDF5/current18/src/hdf5-$_pkgver.tar.bz2"
|
|
|
|
builddir="$srcdir"/hdf5-$_pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
update_config_sub || return 1
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
--disable-threadsafe \
|
|
--enable-cxx \
|
|
--enable-direct-vfd \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
install -d "$pkgdir"/usr/share/licenses/"$pkgname"
|
|
install -c -m 0644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
|
|
}
|
|
|
|
dev() {
|
|
mkdir -p "$subpkgdir"/usr/share
|
|
mv "$pkgdir"/usr/share/hdf5_examples/ "$subpkgdir"/usr/share
|
|
default_dev
|
|
}
|
|
|
|
md5sums="29117bf488887f89888f9304c8ebea0b hdf5-1.8.18.tar.bz2"
|
|
sha256sums="01c6deadf4211f86922400da82c7a8b5b50dc8fc1ce0b5912de3066af316a48c hdf5-1.8.18.tar.bz2"
|
|
sha512sums="01f6d14bdd3be2ced9c63cc9e1820cd7ea11db649ff9f3a3055c18c4b0fffe777fd23baad536e3bce31c4d76fe17db64a3972762e1bb4d232927c1ca140e72b2 hdf5-1.8.18.tar.bz2"
|