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

Last change on this file since 58816 was 58816, checked in by blb@…, 10 years ago

math/qrupdate - add variant for gcc44 and cleanup things some, ticket #21855

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 58816 2009-10-05 21:49:24Z blb@macports.org $
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
21use_configure       no
22build.target        lib
23destroot {
24    xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
25    system "ranlib ${destroot}${prefix}/lib/lib${name}.a"
26}
27
28variant g95 conflicts gcc43 gcc44 description {build with g95} {
29    depends_build-append    port:g95
30    post-patch {
31        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/Makefile
32        reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/src/Makefile
33    }
34}
35
36variant gcc43 conflicts g95 gcc44 description {build with gcc43 fortran} {
37    depends_build-append    port:gcc43
38    post-patch {
39        reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/Makeconf
40    }
41}
42variant gcc44 conflicts g95 gcc43 description {build with gcc44 fortran} {
43    depends_build-append    port:gcc44
44    post-patch {
45        reinplace "s|gfortran|gfortran-mp-4.4|" ${worksrcpath}/Makeconf
46    }
47}
48
49if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset g95]} {
50    default_variants +gcc43
51}
52
Note: See TracBrowser for help on using the repository browser.