2018-04-06 21:47:23 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://portal.hdfgroup.org/display/support
|
|
|
|
TERMUX_PKG_DESCRIPTION="Hierarchical Data Format 5 (HDF5)"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2018-04-06 21:47:23 +02:00
|
|
|
_HDF5_MAJOR=1
|
|
|
|
_HDF5_MINOR=10
|
|
|
|
_HDF5_PATCH=1
|
2018-06-26 13:29:06 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2018-04-06 21:47:23 +02:00
|
|
|
TERMUX_PKG_VERSION=${_HDF5_MAJOR}.${_HDF5_MINOR}.${_HDF5_PATCH}
|
|
|
|
TERMUX_PKG_SHA256=9c5ce1e33d2463fb1a42dd04daacbc22104e57676e2204e3d66b1ef54b88ebf2
|
|
|
|
TERMUX_PKG_SRCURL=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${_HDF5_MAJOR}.${_HDF5_MINOR}/hdf5-$TERMUX_PKG_VERSION/src/hdf5-$TERMUX_PKG_VERSION.tar.bz2
|
|
|
|
TERMUX_PKG_DEPENDS="libzopfli"
|
|
|
|
TERMUX_PKG_FORCE_CMAKE=true
|
2018-04-13 07:13:45 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-C$TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/TryRunResults_out.cmake "
|
2018-04-06 21:47:23 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure () {
|
2018-04-08 07:10:28 +02:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/
|
2018-04-06 21:47:23 +02:00
|
|
|
mkdir -p $TERMUX_PKG_BUILDDIR/shared/
|
2018-04-08 07:10:28 +02:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/shared/
|
2018-04-06 21:47:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_configure () {
|
2018-04-08 07:10:28 +02:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/$TERMUX_ARCH/{H5Tinit.c,H5lib_settings.c} $TERMUX_PKG_BUILDDIR/shared/
|
2018-04-06 21:47:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
# Add a pkg-config file
|
|
|
|
cat > "$PKG_CONFIG_LIBDIR/hdf5.pc" <<-HERE
|
|
|
|
prefix=$TERMUX_PREFIX
|
|
|
|
exec_prefix=\${prefix}
|
|
|
|
libdir=\${exec_prefix}/lib
|
|
|
|
includedir=\${exec_prefix}/include
|
2018-05-17 18:09:24 +02:00
|
|
|
|
2018-04-06 21:47:23 +02:00
|
|
|
Name: hdf5
|
|
|
|
Description: $TERMUX_PKG_DESCRIPTION
|
|
|
|
Version: $TERMUX_PKG_VERSION
|
|
|
|
Requires:
|
|
|
|
Libs: -L\${libdir} -lhdf5
|
|
|
|
Cflags: -I\${includedir}
|
|
|
|
|
|
|
|
HERE
|
|
|
|
}
|