# $Id: Portfile 87572 2011-11-26 03:47:37Z ryandesign@macports.org $

PortSystem 1.0
PortGroup  muniversal 1.0

name                libffi
version             3.0.10
revision            2
categories          devel
platforms           darwin
license             MIT
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        http://www.mirrorservice.org/sites/sourceware.org/pub/libffi/ \
                    http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/libffi/ \
                    http://mirror.aarnet.edu.au/pub/sourceware/libffi/ \
                    http://ftp.cs.pu.edu.tw/Linux/sourceware/libffi/ \
                    ftp://sourceware.org/pub/libffi/

checksums           rmd160  4a53046e966e5d875ecb1017f5ff1950cdf5253c \
                    sha256  f01eb9027e9eb56aeaeef636649877756d475d714ef8b47f627f65bc5f3b492f

patchfiles          patch-configure.diff \
                    patch-configure-darwin11.diff

array set merger_host {
    ppc64   powerpc-apple-darwin
}
lappend merger_dont_diff ${prefix}/lib/libffi-${version}/include/ffi.h ${prefix}/lib/libffi-${version}/include/ffitarget.h

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