diff options
author | Oliver Goethel | 2015-09-15 16:14:58 +0200 |
---|---|---|
committer | Oliver Goethel | 2015-09-15 16:14:58 +0200 |
commit | f35f416056eb7636aa0e744cf394e04ef1403fd8 (patch) | |
tree | 6be96677b2137bd3c357e6eac1dcacdf0e982f7c /PKGBUILD | |
parent | 1a8425d9aed9549ad6de41c2f6a61849e4112e37 (diff) | |
download | aur-f35f416056eb7636aa0e744cf394e04ef1403fd8.tar.gz |
PKGBUILD fixes for 3.0.8
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -7,11 +7,11 @@ pkgname=med pkgver=3.0.8 -pkgrel=2 +pkgrel=3 pkgdesc="MED stands for Modelisation et Echanges de Donnees, i.e. Data Modelization and Exchanges - MED is code-aster exchange module linked to hdf5" url="http://www.code-aster.org/outils/med/" license=('LGPL') -depends=('hdf5') +depends=('hdf5' 'openmpi') makedepends=('gcc-fortran' 'coreutils') optdepends=('tk' 'python2') provides=() @@ -27,20 +27,23 @@ build() { export FFLAGS="-fopenmp -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 -ffixed-line-length-0 ${CFLAGS}" export FCFLAGS="-fopenmp -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 -ffixed-line-length-0 ${CFLAGS}" export CPPFLAGS="-DHAVE_F77INT64 ${CPPFLAGS}" - export F77=gfortran - export FC=gfortran + export F77=mpif90 + export FC=mpif90 else # i686 export FFLAGS="-fopenmp -fPIC -ffixed-line-length-0 ${CFLAGS}" export FCFLAGS="-fopenmp -fPIC -ffixed-line-length-0 ${CFLAGS}" - export F77=gfortran - export FC=gfortran + export F77=mpif90 + export FC=mpif90 fi - export PYTHON="python2" + export PYTHON="$(which python2)" cd ${srcdir}/${pkgname}-${pkgver} || return 1 - ./configure --with-f90=gfortran --prefix=/usr --datadir=/usr/share/med || return 1 + # patch H5public_extract.h.in + sed -i -e '/^#typedef/ s/#/\/\//' ./include/H5public_extract.h.in + + ./configure --with-f90=mpif90 --prefix=/usr --datadir=/usr/share/med --with-swig=yes || return 1 make || return 1 } |