You are not logged in.

#1 2008-07-12 08:16:37

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Unfinished elmer PKGBUILD

I started writing a PKGBUILD for the elmer FEM suite, but when I got compilation errors, which I couldn't solve anymore (no fortran experience) I tried it in CAELinux and realized that it is not what I need. I want to post the PKGBUILD anyway to facilitate any further work if someone else is interested in elmer and gfortran causes less problems by then. You'll have to patch arpack, btw, I made a comment in the aur page.

You'll find the gcc-4.3 patch in the elmer mailing list: https://postit.csc.fi/sympa/arc/elmerdi … 00020.html

# Contributor: Johannes Krampf <wuischke@amule.org>
pkgname=elmer
pkgver=5.4.0
pkgrel=1
pkgdesc="Open Source Finite Element Software for Multiphysical Problems"
arch=('i686')
url="http://www.csc.fi/elmer/"
makedepends=(blas lapack arpack)
license=('GPL')
source=(http://www.nic.funet.fi/pub/sci/physics/elmer/src/$pkgname-$pkgver.tar.gz gcc-4.3-compat.patch)
md5sums=('56f1607e499ce7db07d6cbf7b2128fe4'
         '06ad45edd292a9eb9762ac8c5a3b795c')

_matcver=$pkgver
_umfpackver=4.4
_mathlibsver=1.0.0
_elmergridver=$pkgver
_mesgen2dver=5.0.0
_eiover=$pkgver
_hutiterver=$pkgver
_femver=$pkgver

build() {
  cd "$srcdir/$pkgname-$pkgver"

  patch -p1 < ../gcc-4.3-compat.patch || return 1

export CC=gcc
export CXX=g++
export FC=gfortran
export F77=gfortran

modules="matc-$_matcver umfpack-$_umfpackver mathlibs-$_mathlibsver elmergrid-$_elmergridver meshgen2d-$_mesgen2dver eio-$_eiover hutiter-$_hutiterver fem-$_femver" 
for m in $modules; do
      cd $m
        echo ===== $m =====
        _libpath=''
        LDFLAGS="$LDFLAGS -L$pkgdir/opt/elmer/lib" \
        CFLAGS="$CFLAGS -I$pkgdir/opt/elmer/include" \
        ./configure --prefix=/opt/elmer || return 1
          make || return 1
              make DESTDIR="$pkgdir" install || return 1
          cd .. 
      done
}

Offline

Board footer

Powered by FluxBB