1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | PortSystem 1.0 |
---|
4 | name meschach |
---|
5 | version 1.2b |
---|
6 | categories math |
---|
7 | maintainers bromo.med.uc.edu:howarth |
---|
8 | description Calculations on matrices and vectors |
---|
9 | long_description Meschach is a library of routines written in C for matrix \ |
---|
10 | computations. These include operations for basic numerical \ |
---|
11 | linear algebra, routines for matrix factorisations, solving \ |
---|
12 | least squares problems, computing eigenvalues, eigenvectors \ |
---|
13 | and singular values, sparse matrix computations including both \ |
---|
14 | direct and iterative methods. |
---|
15 | homepage http://www.cs.uiowa.edu/~dstewart/meschach/ |
---|
16 | platforms darwin |
---|
17 | master_sites http://ftp.de.debian.org/debian/pool/main/m/meschach |
---|
18 | patch_sites http://ftp.de.debian.org/debian/pool/main/m/meschach |
---|
19 | distfiles meschach_${version}.orig.tar.gz |
---|
20 | checksums ${name}_${version}.orig.tar.gz \ |
---|
21 | md5 faf05a52c1a8a44a5716c6a2d681999f \ |
---|
22 | sha1 9cd3c102234b06a59a24f73db5cb76673614d413 \ |
---|
23 | rmd160 bbd1d09a2b5cddd5695038f9f8477af1d0c1b0d6 \ |
---|
24 | meschach_1.2b-13.diff.gz \ |
---|
25 | md5 bdc7289be71d235afc92b5707f6732d2 \ |
---|
26 | sha1 da298acd0a90c9d5c78c08095800e8e725aaf378 \ |
---|
27 | rm160 7455d201f0d5ac70e091f27f4f1a5ed15d0b59fd |
---|
28 | patchfiles meschach_1.2b-13.diff.gz meschach.diff |
---|
29 | set branch 1.2 |
---|
30 | set major 1 |
---|
31 | patch.pre_args -p1 |
---|
32 | post-patch { |
---|
33 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/makefile.in |
---|
34 | reinplace "s|-O3|-O3 -D_REENTRANT -fno-common|g" ${worksrcpath}/makefile.in |
---|
35 | reinplace "s|@VERSION@|${branch}|g" ${worksrcpath}/makefile.in |
---|
36 | } |
---|
37 | configure.args --with-all --with-unroll --with-munroll |
---|
38 | post-build { |
---|
39 | system "cd ${worksrcpath} && make torture" |
---|
40 | } |
---|
41 | destroot { |
---|
42 | file mkdir ${destroot}${prefix}/include/meschach |
---|
43 | eval xinstall -m 644 [glob ${worksrcpath}/*.h] ${destroot}${prefix}/include/meschach |
---|
44 | eval xinstall [glob ${worksrcpath}/*.a] ${destroot}${prefix}/lib |
---|
45 | eval xinstall [glob ${worksrcpath}/*.dylib] ${destroot}${prefix}/lib |
---|
46 | ln -s ${prefix}/lib/libmeschach.${branch}.dylib ${destroot}${prefix}/lib/libmeschach.dylib |
---|
47 | ln -s ${prefix}/lib/libmeschach.${branch}.dylib ${destroot}${prefix}/lib/libmeschach.${major}.dylib |
---|
48 | system "cd ${worksrcpath} && ./torture" |
---|
49 | } |
---|