source: trunk/dports/math/qrupdate/Portfile @ 55492

Last change on this file since 55492 was 55492, checked in by takeshi@…, 11 years ago

qrupdate: adding qrupdate intended for use in octave

File size: 1.5 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$
3
4PortSystem                      1.0
5
6name                qrupdate
7version             1.0.1
8categories          math
9maintainers         nomaintainer
10description         library for fast updates of QR and Cholesky decompositions
11long_description \
12    a Fortran library for fast updates of QR and Cholesky decompositions
13homepage            http://sourceforge.net/projects/${name}/
14platforms           darwin
15master_sites        sourceforge
16
17checksums           md5 73d87b081e6fb89c9dc5b0ef0773b4dc \
18                    sha1 679aa98ff823332ead25b5c5c9c01210155a510d \
19                    md160 d1f120ae97d840bf7b932c7d18abb54360d7d1f6
20
21depends_build       port:gcc43
22
23patch {
24#    foreach f {Makeconf Makeconf.g95} {
25#        reinplace "s|PREFIX=/usr/local|PREFIX=${prefix}|" ${worksrcpath}/${f}
26#    }
27#    reinplace "s|\$\(PREFIX\)|\$(DESTDIR)\$(PREFIX)|g" ${worksrcpath}/src/Makefile
28    reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/Makeconf
29    if {[variant_isset g95]} {
30        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/Makefile
31        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/src/Makefile
32    }
33}
34
35use_configure       no
36build.target        lib
37destroot {
38    xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
39    system "ranlib ${destroot}${prefix}/lib/lib${name}.a"
40}
41
42variant g95 description {build with g95} {
43    depends_build-delete    port:gcc43
44    depends_build-append    port:g95
45}
Note: See TracBrowser for help on using the repository browser.