diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-24 20:03:19 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-24 22:14:37 -0300 |
commit | b20dcba3c85ac8fff7ea390b6312301fdda6718b (patch) | |
tree | 628342df8ebaed50165494efd908622dbcf91852 /testing/hdf5/APKBUILD | |
parent | 11e4f24bc1bcaaae20f5f8053b6c7d7d0e1fa7b5 (diff) | |
download | aports-b20dcba3c85ac8fff7ea390b6312301fdda6718b.tar.bz2 aports-b20dcba3c85ac8fff7ea390b6312301fdda6718b.tar.xz |
testing/hdf5: fix build
- Create pkg-config files by configuring with cmake
- But build with autoconf
- Fixes generating headers
Diffstat (limited to 'testing/hdf5/APKBUILD')
-rw-r--r-- | testing/hdf5/APKBUILD | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/testing/hdf5/APKBUILD b/testing/hdf5/APKBUILD index dab80896ef..e0fad0001a 100644 --- a/testing/hdf5/APKBUILD +++ b/testing/hdf5/APKBUILD @@ -11,22 +11,20 @@ pkgname=hdf5 pkgver=1.10.5 -pkgrel=0 +pkgrel=1 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" options="!check" # test suite takes a very long time depends_dev="zlib-dev" -makedepends="cmake $depends_dev" +makedepends="cmake $depends_dev perl" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="http://www.hdfgroup.org/ftp/HDF5/current18/src/$pkgname-$pkgver.tar.bz2" source="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${pkgver%.*}/hdf5-$pkgver/src/hdf5-$pkgver.tar.bz2" -builddir="$srcdir/$pkgname-$pkgver/build" - prepare() { - mkdir -p "$builddir" + mkdir -p "$builddir"/build default_prepare } @@ -35,27 +33,50 @@ build() { CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi + cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ - -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ + -DHDF5_BUILD_HL_LIB=ON \ + -DHDF5_BUILD_CPP_LIB=ON \ + -DHDF5_BUILD_FORTRAN=OFF \ + -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \ + -DHDF5_ENABLE_SZIP_SUPPORT=OFF \ + -DHDF5_ENABLE_SZIP_ENCODING=OFF \ ${CMAKE_CROSSOPTS} .. - + cd .. + ./configure \ + --prefix=/usr \ + --docdir=/usr/share/doc/hdf5/ \ + --enable-static \ + --disable-sharedlib-rpath \ + --enable-build-mode=production \ + --enable-hl \ + --enable-cxx \ + --disable-fortran \ + --with-pic \ + --with-zlib \ + --without-szlib make } check() { - make test + export LD_LIBRARY_PATH="${srcdir}"/${pkgname}-${pkgver/_/-}/src/.libs/ + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/c++/src/.libs/ + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/fortran/src/.libs/ + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/src/.libs/ + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/c++/src/.libs/ + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/fortran/src/.libs/ + make check } package() { make DESTDIR="$pkgdir" install - install -d "$pkgdir"/usr/share/licenses/"$pkgname" - mv "$pkgdir"/usr/share/COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING - rm "$pkgdir"/usr/share/*.txt + install -Dm0644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING + } sha512sums="769e43b8672e26fe24ed68da0228c010d3d9bc950ca09f0bc60707911a2f26f2f8415c8abc8ec06e07667148d8cdb3b0c7b3e7860d9b19739629c5dfd5ce73d4 hdf5-1.10.5.tar.bz2" |