# $Id: Portfile 64720 2010-03-15 12:40:47Z rmsfisher@macports.org $

PortSystem 1.0
PortGroup  muniversal 1.0

name                libffi
version             3.0.9
categories          devel
platforms           darwin
maintainers         nomaintainer

description         libffi provides a high level api to various calling conventions
long_description    libffi library provides a portable, high level \
                    programming interface to various calling conventions. \
                    This allows a programmer to call any function \
                    specified by a call interface description at run-time. \
                    Some programs may not know at the time of compilation \
                    what arguments are to be passed to a function. For \
                    instance, an interpreter may be told at run-time about \
                    the number and types of arguments used to call a given \
                    function. Libffi can be used in such programs to \
                    provide a bridge from the interpreter program to \
                    compiled code.

homepage            http://sources.redhat.com/libffi/
master_sites        ftp://sourceware.org/pub/libffi
checksums           md5     1f300a7a7f975d4046f51c3022fa5ff1 \
                    sha1    56e41f87780e09d06d279690e53d4ea2c371ea88 \
                    rmd160  11ff9aeb62f4fbe1fecf09e6f9814a72bfedb37a

array set merger_host {
    ppc64   powerpc-apple-darwin
}
set merger_dont_diff ${prefix}/include/ffitarget.h

livecheck.url       ${homepage}
livecheck.type      regex
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
