Ignore:
Timestamp:
Oct 5, 2009, 9:49:24 PM (10 years ago)
Author:
blb@…
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/qrupdate/Portfile

    r55900 r58816  
    1919                    md160 d1f120ae97d840bf7b932c7d18abb54360d7d1f6
    2020
    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     }
    33 }
    34 
    3521use_configure       no
    3622build.target        lib
     
    4026}
    4127
    42 variant g95 description {build with g95} {
    43     depends_build-delete    port:gcc43
     28variant g95 conflicts gcc43 gcc44 description {build with g95} {
    4429    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    }
    4534}
     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 TracChangeset for help on using the changeset viewer.