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 93890 2012-06-03 08:45:40Z takeshi@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup github 1.0 |
---|
6 | |
---|
7 | github.setup tenomoto dotwrp 1.1 v |
---|
8 | categories math science |
---|
9 | platforms darwin |
---|
10 | maintainers takeshi |
---|
11 | description A wrapper for *dot* functions in Accelerate framework |
---|
12 | long_description \ |
---|
13 | This is a wrapper for four Level 1 BLAS functions \ |
---|
14 | CDOTC CDOTU ZDOTC ZDOTU and SDOT in Accelerate.framework \ |
---|
15 | of Mac OS X. |
---|
16 | |
---|
17 | checksums rmd160 c9aa3d56d6d01c7b198a100544e6a84748022405 \ |
---|
18 | sha256 7ffa40d6a3564829a85757af200c9fd71482cf729a266a23b4775997450d7397 |
---|
19 | |
---|
20 | use_configure no |
---|
21 | |
---|
22 | if { ![variant_isset g95] && ![variant_isset gcc44] && ![variant_isset gcc46] && ![variant_isset gcc47]} { |
---|
23 | default_variants +gcc45 |
---|
24 | } |
---|
25 | |
---|
26 | if {[variant_isset g95]} { |
---|
27 | set fc ${prefix}/bin/g95 |
---|
28 | } elseif {[variant_isset gcc47]} { |
---|
29 | set fc ${prefix}/bin/gfortran-mp-4.7 |
---|
30 | } elseif {[variant_isset gcc46]} { |
---|
31 | set fc ${prefix}/bin/gfortran-mp-4.6 |
---|
32 | } elseif {[variant_isset gcc45]} { |
---|
33 | set fc ${prefix}/bin/gfortran-mp-4.5 |
---|
34 | } else { |
---|
35 | set fc ${prefix}/bin/gfortran-mp-4.4 |
---|
36 | } |
---|
37 | set fflags "${configure.fflags} -fno-underscoring" |
---|
38 | build { |
---|
39 | system "cd ${worksrcpath}; |
---|
40 | ${fc} ${fflags} -c ${name}.f90; |
---|
41 | /usr/bin/ar -cru lib${name}.a ${name}.o; |
---|
42 | /usr/bin/ranlib lib${name}.a" |
---|
43 | } |
---|
44 | |
---|
45 | destroot { |
---|
46 | xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib |
---|
47 | } |
---|
48 | |
---|
49 | variant g95 conflicts gcc44 gcc45 gcc46 gcc47 description {compile with g95} { |
---|
50 | depends_build port:g95 |
---|
51 | } |
---|
52 | |
---|
53 | variant gcc44 conflicts g95 gcc45 gcc46 gcc47 description {compile with gfortran-mp-4.4} { |
---|
54 | depends_build port:gcc44 |
---|
55 | } |
---|
56 | |
---|
57 | variant gcc45 conflicts g95 gcc44 gcc46 gcc47 description {compile with gfortran-mp-4.5} { |
---|
58 | depends_build port:gcc45 |
---|
59 | } |
---|
60 | |
---|
61 | variant gcc46 conflicts g95 gcc44 gcc45 gcc47 description {compile with gfortran-mp-4.6} { |
---|
62 | depends_build port:gcc46 |
---|
63 | } |
---|
64 | |
---|
65 | variant gcc47 conflicts g95 gcc44 gcc45 gcc46 description {compile with gfortran-mp-4.7} { |
---|
66 | depends_build port:gcc47 |
---|
67 | } |
---|