1 | *** Portfile.orig 2009-08-20 18:05:28.000000000 -0500 |
---|
2 | --- Portfile 2009-10-05 07:07:56.000000000 -0500 |
---|
3 | *************** |
---|
4 | *** 1,5 **** |
---|
5 | # -*- 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 |
---|
6 | ! # $Id$ |
---|
7 | |
---|
8 | PortSystem 1.0 |
---|
9 | |
---|
10 | --- 1,5 ---- |
---|
11 | # -*- 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 |
---|
12 | ! # $Id: Portfile 55900 2009-08-20 23:05:28Z ryandesign@macports.org $ |
---|
13 | |
---|
14 | PortSystem 1.0 |
---|
15 | |
---|
16 | *************** |
---|
17 | *** 18,31 **** |
---|
18 | sha1 679aa98ff823332ead25b5c5c9c01210155a510d \ |
---|
19 | md160 d1f120ae97d840bf7b932c7d18abb54360d7d1f6 |
---|
20 | |
---|
21 | - depends_build port:gcc43 |
---|
22 | - |
---|
23 | patch { |
---|
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 | --- 18,34 ---- |
---|
33 | sha1 679aa98ff823332ead25b5c5c9c01210155a510d \ |
---|
34 | md160 d1f120ae97d840bf7b932c7d18abb54360d7d1f6 |
---|
35 | |
---|
36 | patch { |
---|
37 | # foreach f {Makeconf Makeconf.g95} { |
---|
38 | # reinplace "s|PREFIX=/usr/local|PREFIX=${prefix}|" ${worksrcpath}/${f} |
---|
39 | # } |
---|
40 | # reinplace "s|\$\(PREFIX\)|\$(DESTDIR)\$(PREFIX)|g" ${worksrcpath}/src/Makefile |
---|
41 | ! if {[variant_isset gcc43]} { |
---|
42 | ! reinplace "s|gfortran|gfortran-mp-4.3|" ${worksrcpath}/Makeconf |
---|
43 | ! } |
---|
44 | ! if {[variant_isset gcc44]} { |
---|
45 | ! reinplace "s|gfortran|gfortran-mp-4.4|" ${worksrcpath}/Makeconf |
---|
46 | ! } |
---|
47 | if {[variant_isset g95]} { |
---|
48 | reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/Makefile |
---|
49 | reinplace "s|Makeconf|Makeconf.g95|" ${worksrcpath}/src/Makefile |
---|
50 | *************** |
---|
51 | *** 39,45 **** |
---|
52 | system "ranlib ${destroot}${prefix}/lib/lib${name}.a" |
---|
53 | } |
---|
54 | |
---|
55 | variant g95 description {build with g95} { |
---|
56 | - depends_build-delete port:gcc43 |
---|
57 | depends_build-append port:g95 |
---|
58 | } |
---|
59 | --- 42,56 ---- |
---|
60 | system "ranlib ${destroot}${prefix}/lib/lib${name}.a" |
---|
61 | } |
---|
62 | |
---|
63 | + variant gcc43 description {build with gcc43 fortran} { |
---|
64 | + depends_build-append port:gcc44 |
---|
65 | + } |
---|
66 | + variant gcc44 description {build with gcc44 fortran} { |
---|
67 | + depends_build-append port:gcc44 |
---|
68 | + } |
---|
69 | variant g95 description {build with g95} { |
---|
70 | depends_build-append port:g95 |
---|
71 | } |
---|
72 | + if { ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset g95] } { |
---|
73 | + default_variants +gcc43 |
---|
74 | + } |
---|