# $Id: Portfile 86332 2011-10-24 14:30:45Z jmr@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0

perl5.setup         ExtUtils-F77 1.16
revision            2
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         Helper for linking C with Fortran subroutines
long_description \
   ExtUtils::F77 describes to the calling perl code how to link C programs \
   with Fortran subroutines on the current system.

platforms           darwin

checksums           md5     af925e7e8a2876a5fd9b6c4660e37664 \
                    sha1    7965c687b2f724e481666ede1f9529676bf6a50b \
                    rmd160  106dac38e38bd5d6873e8cae0eb397545fe706ad

if {${perl5.major} != ""} {
# Note, patch-F77.pm has some bits specific to gcc43, so if this dependency
# is updated, update the patch as well
depends_lib-append  port:gcc43

supported_archs noarch

platform darwin {
   patchfiles-append   patch-F77.pm
    post-patch {
        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/F77.pm
    }
}
}
