Libffi version 3.0.8 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 3.0.8

      View the most recent changes for the libffi port at: libffi.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for libffi.
      The raw portfile for libffi 3.0.8 is located here:
      http://libffi.darwinports.com/dports/devel/libffi/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/libffi


      The libffi Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: libffi
      Version: 3.0.8
      Revision: 1
      Category: devel
      Platform: darwin
      Maintainers: kallisys.net:pguyot openmaintainer

      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 188a4f79fdac2310044b44b7d3918ef9 sha1 ce44d10c39d9a37479c8777e206cac0f36c48712 rmd160 4144f64e79ebf95161a6afd58ceaeef8372b5e57

      Patch Files: patch-includedir.diff patch-ffitarget.h.diff

      array set merger_host {
      ppc64 powerpc-apple-darwin
      }
      set merger_dont_diff ${prefix}/include/ffitarget.h
      if {[variant_isset universal]} {
      patchfiles-append patch-ffi.h.in.diff
      }

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

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/libffi
      % sudo port install libffi
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching libffi
      ---> Verifying checksum for libffi
      ---> Extracting libffi
      ---> Configuring libffi
      ---> Building libffi with target all
      ---> Staging libffi into destroot
      ---> Installing libffi
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using libffi with these commands:
      %  man libffi
      % apropos libffi
      % which libffi
      % locate libffi

     Where to find more information:

    Darwin Ports



    Lightbox this page.