blob: 1ba35b79b8463f586c26ba76195af967c5ec4d6f (
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
70
71
72
73
74
75
76
77
78
79
80
|
# Maintainer: eolianoe <eolianoe At GoogleMAIL DoT CoM>
# Contributor: Kibeom Kim <kkb110@gmail.com>
pkgname=getfem++
_pkgname=getfem
pkgver=5.1
pkgrel=1
pkgdesc="Generic C++ finite element library."
arch=('i686' 'x86_64')
url="http://download.gna.org/getfem/html/homepage/"
license=('LGPL3')
depends=('python2-numpy' 'python2-scipy'
'boost' 'qhull' 'qd'
'muparser' 'metis4')
checkdepends=('perl')
makedepends=('gcc-fortran')
conflicts=('gmm')
provides=('getfem++' 'gmm')
source=("http://download.gna.org/getfem/stable/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('d768ff0da08536e8291d6e85e8600d285efa9e10e939709a810cdcd5935a7203')
prepare(){
cd "${srcdir}/${_pkgname}-${pkgver}"
# Use metis4
sed -i 's/-lmetis/-lmetis-4/g' configure
# Fix qhull include
sed -i 's/qhull\/qhull.h/libqhull\/qhull_a.h/g' configure
sed -i 's/qhull\/qhull.h/libqhull\/qhull_a.h/g' src/getfem_mesher.cc
sed -i 's/<qhull/<libqhull/g' src/getfem_mesher.cc
# Use python2
sed -i 's/env\ python/env\ python2/g' bin/extract_doc
sed -i 's/env\ python/env\ python2/g' interface/tests/python/*.py
sed -i 's/LOG_COMPILER\ =\ python/LOG_COMPILER\ =\ python2/g' interface/tests/python/Makefile.in
sed -i 's/python\ setup.py/python2\ setup.py/g' interface/src/python/Makefile.in
# Use shared library for qd
sed -i 's/libqd.a/libqd.so/g' configure
}
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
export PYTHON=python2
export PYTHON_VERSION=2.7
./configure --prefix=/usr \
--enable-shared --disable-static \
--with-pic \
--enable-qhull \
--enable-qd \
--disable-mumps \
--enable-boost \
--enable-openmp \
--enable-superlu \
--enable-muparser \
--enable-metis \
--enable-python \
--disable-matlab \
--disable-scilab
make
}
# For now, the plate test case is failing
#check() {
#cd "${srcdir}/${_pkgname}-${pkgver}"
#make check
#}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make install DESTDIR="${pkgdir}"
rm -r "${pkgdir}/usr/getfem_toolbox"
}
|