Ticket #34871: Portfile

File Portfile, 2.1 KB (added by lukas.reichlin@…, 12 years ago)

my modified portfile

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 93890 2012-06-03 08:45:40Z takeshi@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    tenomoto dotwrp 1.1 v
8categories      math science
9platforms       darwin
10maintainers     takeshi
11description     A wrapper for *dot* functions in Accelerate framework
12long_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
17checksums           rmd160  c9aa3d56d6d01c7b198a100544e6a84748022405 \
18                    sha256  7ffa40d6a3564829a85757af200c9fd71482cf729a266a23b4775997450d7397
19
20use_configure   no
21
22if { ![variant_isset g95] && ![variant_isset gcc44] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
23    default_variants +gcc45
24}
25
26if {[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}
37set fflags "${configure.fflags} -fno-underscoring"
38build {
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
45destroot {
46    xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
47}
48
49variant g95 conflicts gcc44 gcc45 gcc46 gcc47 description {compile with g95} {
50    depends_build       port:g95
51}
52
53variant gcc44 conflicts g95 gcc45 gcc46 gcc47 description {compile with gfortran-mp-4.4} {
54    depends_build       port:gcc44
55}
56
57variant gcc45 conflicts g95 gcc44 gcc46 gcc47 description {compile with gfortran-mp-4.5} {
58    depends_build       port:gcc45
59}
60
61variant gcc46 conflicts g95 gcc44 gcc45 gcc47 description {compile with gfortran-mp-4.6} {
62    depends_build       port:gcc46
63}
64
65variant gcc47 conflicts g95 gcc44 gcc45 gcc46 description {compile with gfortran-mp-4.7} {
66    depends_build       port:gcc47
67}