blob: d9aa832d6a3e3ded7e6f9707d9ca8a834ac0517f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $Id: PKGBUILD 147983 2012-01-29 11:26:22Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: damir <damir@archlinux.org>
# Contributor: Tom K <tomk@runbox.com>
# Contributor: Jed Brown <jed@59A2.org>
# Contributor: Simone Pezzuto <junki.gnu@gmail.com>
pkgname=hdf5-openmpi
_pkgname=hdf5
pkgver=1.8.12
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="General purpose library and file format for storing scientific data (OpenMPI version)"
url="http://www.hdfgroup.org/HDF5/"
license=('custom')
depends=('zlib' 'sh' 'openmpi')
makedepends=('time')
provides=('hdf5')
conflicts=('hdf5')
source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${_pkgname}-${pkgver/_/-}.tar.bz2
mpi.patch)
sha1sums=('8414ca0e6ff7d08e423955960d641ec5f309a55f'
'658d4a3e537c9c76da3200effa8f95b656a21936')
build() {
cd "$srcdir/${_pkgname}-${pkgver/_/-}"
# FS#33343
patch -Np1 -i "${srcdir}/mpi.patch"
export CFLAGS="${CFLAGS/O2/O0}"
export CXXFLAGS="${CFLAGS}"
./configure \
CXX="mpicxx" \
CC="mpicc" \
FC="mpif90" \
F9X="mpif90" \
RUNPARALLEL="mpirun" \
OMPI_MCA_disable_memory_allocator=1 \
--prefix=/usr \
--with-pthread=/usr/lib/ \
--enable-linux-lfs \
--enable-unsupported \
--enable-shared \
--disable-static \
--enable-production=yes \
--with-zlib \
--with-default-api-version=v18 \
--enable-parallel=yes \
--enable-cxx \
--disable-sharedlib-rpath
make
}
package() {
cd "$srcdir/${_pkgname}-${pkgver/_/-}"
make -j1 DESTDIR="${pkgdir}" install
install -d -m755 "$pkgdir/usr/share/$_pkgname"
mv "$pkgdir"/usr/share/{hdf5_examples,$_pkgname/examples}
install -d -m755 "$pkgdir/usr/share/licenses/${pkgname}"
install -m644 "$srcdir/${_pkgname}-${pkgver/_/-}/COPYING" \
"$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
|