# $Id: Portfile 67067 2010-04-28 10:52:35Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0
perl5.setup         ExtUtils-F77 1.16
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

# 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

if {[info exists supported_archs]} {
    supported_archs noarch
} else {
    universal_variant no
}

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