Ticket #21641: Portfile

File Portfile, 2.6 KB (added by howarth@…, 14 years ago)

Portfile with requested changes

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$
3PortSystem          1.0
4name                meschach
5version             1.2b
6categories          math
7maintainers         bromo.med.uc.edu:howarth
8description         Calculations on matrices and vectors
9long_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.
15homepage            http://www.cs.uiowa.edu/~dstewart/meschach/
16platforms           darwin
17master_sites        http://ftp.de.debian.org/debian/pool/main/m/meschach
18patch_sites         http://ftp.de.debian.org/debian/pool/main/m/meschach
19distfiles           meschach_${version}.orig.tar.gz
20checksums           ${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
28patchfiles          meschach_1.2b-13.diff.gz meschach.diff
29set branch          1.2
30set major           1
31patch.pre_args      -p1
32post-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         }
37configure.args       --with-all --with-unroll --with-munroll
38post-build {
39         system "cd ${worksrcpath} && make torture"
40}
41destroot {
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}