blob: a62515e8967f4bc16f3cb83159a948a018065f11 (
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
|
# $Id: PKGBUILD 36137 2010-12-27 15:12:01Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=freemat
pkgver=4.0
pkgrel=4
pkgdesc="A free environment for rapid engineering, scientific prototyping and data processing"
arch=('i686' 'x86_64')
url="http://freemat.sourceforge.net"
license=('GPL')
depends=('qt' 'umfpack' 'arpack' 'libmatio' 'ffcall' 'fftw' 'blas' 'lapack' 'mesa' 'portaudio')
install=freemat.install
source=(http://downloads.sourceforge.net/project/freemat/FreeMat4/FreeMat-$pkgver-Source.tar.gz
freemat-gcc-4.3.0.patch
freemat-gcc-4.5.0.patch
freemat-qt46.patch
input-fix.patch)
md5sums=('adb58b9f2c508d9ae5b6041da2f75baf'
'3dc3848949183de2664c2cf67663c892'
'a3edb7b51057a90a752aff5053f8eed6'
'a8d2ffa9319eccaedb28a10f9c7617f4'
'a78941563453feaca5c7463eaeea1a70')
build() {
cd $srcdir/FreeMat-$pkgver.1-Source
if [ $NOEXTRACT -ne 1 ]; then
patch -p1 <$srcdir/freemat-gcc-4.5.0.patch
patch -p1 <$srcdir/input-fix.patch
patch -p1 <$srcdir/freemat-qt46.patch
patch -p1 CMakeCache.txt <<EOF
23c23,25
< CMAKE_CACHEFILE_DIR:INTERNAL=/home/basu/dev/branches/FreeMat4
---
> #CMAKE_CACHEFILE_DIR:INTERNAL=/home/basu/dev/branches/FreeMat4
> USE_LLVM:BOOL=OFF
> CMAKE_INSTALL_PREFIX:PATH=/usr
EOF
cmake `pwd`
fi
make
make DESTDIR=$pkgdir install
sed -i "s|/FreeMat-.*/|/FreeMat-$pkgver/|g" $startdir/freemat.install
rm $pkgdir/usr/bin/blas.ini
}
|