source: trunk/dports/math/meschach/Portfile

Last change on this file was 128656, checked in by ryandesign@…, 3 years ago

update Jack Howarth's email address (#45721)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
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: Portfile 128656 2014-11-25 00:29:06Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                meschach
7version             1.2b
8categories          math
9maintainers         gmail.com:howarth.at.macports
10description         Calculations on matrices and vectors
11long_description    Meschach is a library of routines written in C for matrix \
12                    computations. These include operations for basic numerical \
13                    linear algebra, routines for matrix factorisations, solving \
14                    least squares problems, computing eigenvalues, eigenvectors \
15                    and singular values, sparse matrix computations including both \
16                    direct and iterative methods.
17homepage            http://www.cs.uiowa.edu/~dstewart/meschach/
18platforms           darwin
19master_sites        http://ftp.de.debian.org/debian/pool/main/m/meschach
20patch_sites         http://ftp.de.debian.org/debian/pool/main/m/meschach
21distfiles           meschach_${version}.orig.tar.gz
22checksums           ${name}_${version}.orig.tar.gz \
23                    md5 faf05a52c1a8a44a5716c6a2d681999f \
24                    sha1 9cd3c102234b06a59a24f73db5cb76673614d413 \
25                    rmd160 bbd1d09a2b5cddd5695038f9f8477af1d0c1b0d6 \
26                    meschach_1.2b-13.diff.gz \
27                    md5 bdc7289be71d235afc92b5707f6732d2 \
28                    sha1 da298acd0a90c9d5c78c08095800e8e725aaf378 \
29                    rm160 7455d201f0d5ac70e091f27f4f1a5ed15d0b59fd
30patchfiles          meschach_1.2b-13.diff.gz meschach.diff
31set branch          1.2
32set major           1
33patch.pre_args      -p1
34post-patch {
35         reinplace  "s|@PREFIX@|${prefix}|g" ${worksrcpath}/makefile.in
36         reinplace  "s|-O3|-O3 -D_REENTRANT -fno-common|g" ${worksrcpath}/makefile.in
37         reinplace  "s|@VERSION@|${branch}|g" ${worksrcpath}/makefile.in
38         }
39configure.args       --with-all --with-unroll --with-munroll
40post-build {
41         system "cd ${worksrcpath} && make torture"
42}
43destroot {
44         file mkdir ${destroot}${prefix}/include/meschach
45         eval xinstall -m 644 [glob ${worksrcpath}/*.h] ${destroot}${prefix}/include/meschach
46         eval xinstall [glob ${worksrcpath}/*.a] ${destroot}${prefix}/lib
47         eval xinstall [glob ${worksrcpath}/*.dylib] ${destroot}${prefix}/lib
48         ln -s ${prefix}/lib/libmeschach.${branch}.dylib ${destroot}${prefix}/lib/libmeschach.dylib
49         ln -s ${prefix}/lib/libmeschach.${branch}.dylib ${destroot}${prefix}/lib/libmeschach.${major}.dylib
50         system "cd ${worksrcpath} && ./torture"
51}
Note: See TracBrowser for help on using the repository browser.