source: trunk/dports/devel/libffi/Portfile

Last change on this file was 128278, checked in by larryv@…, 3 years ago

libffi: Update to 3.2.1 (#45904)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 128278 2014-11-18 03:14:45Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup  muniversal 1.0
5
6name                libffi
7version             3.2.1
8categories          devel
9platforms           darwin
10license             MIT
11maintainers         nomaintainer
12
13description         libffi provides a high level api to various calling conventions
14long_description    libffi library provides a portable, high level \
15                    programming interface to various calling conventions. \
16                    This allows a programmer to call any function \
17                    specified by a call interface description at run-time. \
18                    Some programs may not know at the time of compilation \
19                    what arguments are to be passed to a function. For \
20                    instance, an interpreter may be told at run-time about \
21                    the number and types of arguments used to call a given \
22                    function. Libffi can be used in such programs to \
23                    provide a bridge from the interpreter program to \
24                    compiled code.
25
26homepage            http://sources.redhat.com/libffi/
27master_sites        http://www.mirrorservice.org/sites/sourceware.org/pub/libffi/ \
28                    http://ftp-stud.fht-esslingen.de/pub/Mirrors/sourceware.org/libffi/ \
29                    http://mirror.aarnet.edu.au/pub/sourceware/libffi/ \
30                    http://ftp.cs.pu.edu.tw/Linux/sourceware/libffi/ \
31                    ftp://sourceware.org/pub/libffi/
32
33checksums           rmd160  9b546a3d002380bec3f00d86fc47d730abf51dfd \
34                    sha256  d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
35
36# https://trac.macports.org/ticket/44170
37patchfiles-append PR-44170.patch
38
39# Don't use macports gcc or clang toolchains to build this due to dependency cycles
40compiler.blacklist-append macports-*
41
42# Older versions of cctools have a history of being problematic with complex
43# asm like libffi has, so opt for the integrated assembler if it's available
44if {[string match *clang* ${configure.compiler}]} {
45    configure.cflags-append -integrated-as
46}
47
48array set merger_host {
49    ppc64   powerpc-apple-darwin
50}
51lappend merger_dont_diff ${prefix}/lib/libffi-${version}/include/ffi.h ${prefix}/lib/libffi-${version}/include/ffitarget.h
52
53livecheck.url       ${homepage}
54livecheck.type      regex
55livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.