Ticket #29881: hdfeos-patch.diff

File hdfeos-patch.diff, 1.0 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

possibly useful patch

  • Portfile

     
    2424checksums           md5     425663791aeb9355c6fb9f6650aff0e8 \
    2525                    sha1    4b24fa23eeefa94b2703180294942d615b3ed73e \
    2626                    rmd160  15d9c8d9d01768205c8bc42f652548d7b84f0018
     27
     28post-patch {
     29    # prevent build failure when using hdf4 +universal
     30    reinplace "s|/lib/cpp|${configure.cpp}|g" ${worksrcpath}/configure
     31}
     32
    2733configure.args              --with-hdf4=${prefix} \
    2834                            --with-zlib=${prefix} \
    2935                            --with-szlib=${prefix} \
    3036                            --disable-dependency-tracking
    3137configure.cc                ${prefix}/bin/h4cc
    32 if {[variant_isset universal]} {
    33     post-patch {
    34         reinplace "s|/lib/cpp|/usr/bin/cpp|g" ${worksrcpath}/configure
    35     }
    36 }
    3738post-destroot {
    3839    eval xinstall -m 644 [glob ${worksrcpath}/include/*.h] \
    3940        ${destroot}${prefix}/include