Changeset 74449


Ignore:
Timestamp:
Dec 18, 2010, 12:59:58 AM (8 years ago)
Author:
takeshi@…
Message:

wgrib2: fixed builds w/o a variant. added conflicts to variants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/wgrib2/Portfile

    r74417 r74449  
    5858                F90=${prefix}/bin/g95;
    5959                FFLAGS=${configure.fflags}"
    60         set fsymbol -DG95
     60        set fsymbol DEFS=-DG95
    6161        set flibs "-L../iplib -lipolate -lf95"
    6262    } elseif {[variant_isset gcc44]} {
     
    6565                F90=${prefix}/bin/gfortran-mp-4.4;
    6666                FFLAGS=${configure.fflags}"
    67         set fsymbol -DGFORTRAN
     67        set fsymbol DEFS=-DGFORTRAN
    6868        set flibs "-L../iplib -lipolate -L${prefix}/lib/gcc45 -lgfortran"
    6969    } elseif {[variant_isset gcc45]} {
     
    7272                F90=${prefix}/bin/gfortran-mp-4.5;
    7373                FFLAGS=${configure.fflags}"
    74         set fsymbol -DGFORTRAN
     74        set fsymbol DEFS=-DGFORTRAN
    7575        set flibs "-L../iplib -lipolate -L${prefix}/lib/gcc45 -lgfortran"
     76    } else {
     77        set fsymbol ""
     78        set flibs ""
    7679    }
    7780    system "cd ${workpath}/grib2/${name}; \
    7881            make -f makefile ${name} \
    7982            CC=\"${configure.cc}\" \
    80             DEFS=\"${fsymbol}\" \
     83            ${fsymbol} \
    8184            CFLAGS=\"-I../g2clib-${version_g2clib} -I${prefix}/include ${cppflags} ${cflags}\" \
    8285            LDFLAGS=\"-L../g2clib-${version_g2clib} -L${prefix}/lib ${ldflags} \
     
    9093}
    9194
    92 variant g95 description {build iplib with g95 (alpha)} {
     95variant g95 conflicts gcc44 gcc45 description {build iplib with g95 (alpha)} {
    9396    depends_build-append port:g95
    9497}
    9598
    96 variant gcc44 description {build iplib with gcc44 (alpha)} {
     99variant gcc44 conflicts g95 gcc45 description {build iplib with gcc44 (alpha)} {
    97100    depends_build-append port:gcc44
    98101}
    99102
    100 variant gcc45 description {build iplib with gcc45 (alpha)} {
     103variant gcc45 conflicts g95 gcc44 description {build iplib with gcc45 (alpha)} {
    101104    depends_build-append port:gcc45
    102105}
Note: See TracChangeset for help on using the changeset viewer.