mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
community/hdf5: move from testing
new maintainer
This commit is contained in:
parent
24368f3e72
commit
b4c4e02612
@ -1,5 +1,5 @@
|
||||
# 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.
|
||||
# Optionally, it can be built with szip (which has limitations on
|
||||
@ -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="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${pkgver%.*}/hdf5-$pkgver/src/hdf5-$pkgver.tar.bz2"
|
||||
|
||||
prepare() {
|
||||
mkdir -p "$builddir"/build
|
||||
default_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
if [ "$CBUILD" != "$CHOST" ]; then
|
||||
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||
fi
|
||||
|
||||
cd build
|
||||
cmake \
|
||||
# Crazy workaround: run CMake to generate pkg-config file
|
||||
cmake -B build \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DBUILD_SHARED_LIBS=True \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
@ -46,8 +41,9 @@ build() {
|
||||
-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
|
||||
-DHDF5_ENABLE_SZIP_SUPPORT=OFF \
|
||||
-DHDF5_ENABLE_SZIP_ENCODING=OFF \
|
||||
${CMAKE_CROSSOPTS} ..
|
||||
cd ..
|
||||
${CMAKE_CROSSOPTS} .
|
||||
|
||||
# But don’t build with it, it’s quite broken
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--docdir=/usr/share/doc/hdf5/ \
|
||||
Loading…
x
Reference in New Issue
Block a user