Skip to content
Snippets Groups Projects
Commit b4c4e026 authored by Holger Jaekel's avatar Holger Jaekel :map: Committed by Rasmus Thomsen
Browse files

community/hdf5: move from testing

new maintainer
parent 24368f3e
No related branches found
No related tags found
No related merge requests found
# Contributor: Isaac Dunham <ibid.ag@gmail.com> # Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: # Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
# #
# HDF5 depends on zlib and provides a C interface by default. # HDF5 depends on zlib and provides a C interface by default.
# Optionally, it can be built with szip (which has limitations on # Optionally, it can be built with szip (which has limitations on
...@@ -23,18 +23,13 @@ subpackages="$pkgname-static $pkgname-dev $pkgname-doc" ...@@ -23,18 +23,13 @@ subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="http://www.hdfgroup.org/ftp/HDF5/current18/src/hdf5-$pkgver.tar.bz2" source="http://www.hdfgroup.org/ftp/HDF5/current18/src/hdf5-$pkgver.tar.bz2"
source="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${pkgver%.*}/hdf5-$pkgver/src/hdf5-$pkgver.tar.bz2" source="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${pkgver%.*}/hdf5-$pkgver/src/hdf5-$pkgver.tar.bz2"
prepare() {
mkdir -p "$builddir"/build
default_prepare
}
build() { build() {
if [ "$CBUILD" != "$CHOST" ]; then if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi fi
cd build # Crazy workaround: run CMake to generate pkg-config file
cmake \ cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \ -DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None \ -DCMAKE_BUILD_TYPE=None \
...@@ -46,8 +41,9 @@ build() { ...@@ -46,8 +41,9 @@ build() {
-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \ -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
-DHDF5_ENABLE_SZIP_SUPPORT=OFF \ -DHDF5_ENABLE_SZIP_SUPPORT=OFF \
-DHDF5_ENABLE_SZIP_ENCODING=OFF \ -DHDF5_ENABLE_SZIP_ENCODING=OFF \
${CMAKE_CROSSOPTS} .. ${CMAKE_CROSSOPTS} .
cd ..
# But don’t build with it, it’s quite broken
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--docdir=/usr/share/doc/hdf5/ \ --docdir=/usr/share/doc/hdf5/ \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment