Ticket #40003: wgrib2.diff

File wgrib2.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)

proposed patch

  • Portfile

     
    3838use_configure       no
    3939use_parallel_build  no
    4040
    41 if {[variant_isset universal]} {
    42     set cflags "${configure.cflags} ${configure.universal_cflags}"
    43     set ldflags "${configure.ldflags} ${configure.universal_ldflags}"
    44 } else {
    45     set cflags "${configure.cflags} ${configure.cc_archflags}"
    46     set ldflags "${configure.ldflags} ${configure.cc_archflags}"
    47 }
    4841set ip ${worksrcpath}/iplib.${version_iplib}
    4942set lipolate ${ip}/libipolate.a
    5043set g2c ${worksrcpath}/g2clib-${version_g2clib}
     
    8477    configure.fc    ${prefix}/bin/gfortran-mp-4.8
    8578}
    8679
    87 build.env           LDFLAGS=\"${libs} ${configure.ldflags} -lpng -ljasper -lnetcdf\" \
     80build.env           LDFLAGS=\"${libs} ${configure.ldflags} [get_canonical_archflags ld] -lpng -ljasper -lnetcdf\" \
    8881                    CC=\"${configure.cc}\" \
    8982                    CPPFLAGS=\"${fsymbol} ${configure.cppflags}\" \
    90                     CFLAGS=\"${cflags}\"
     83                    CFLAGS=\"${configure.cflags} [get_canonical_archflags cc]\"
    9184build.args         "-f makefile \
    9285                    zlib=\"\" plib=\"\" jlib=\"\" h5lib=\"\" n4lib=\"\" \
    9386                    iip=\"${iip}\" "