xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/libffi/libffi_3.4.4.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "A portable foreign function interface library"
2HOMEPAGE = "http://sourceware.org/libffi/"
3DESCRIPTION = "The `libffi' library provides a portable, high level programming interface to various calling \
4conventions.  This allows a programmer to call any function specified by a call interface description at run \
5time. FFI stands for Foreign Function Interface.  A foreign function interface is the popular name for the \
6interface that allows code written in one language to call code written in another language.  The `libffi' \
7library really only provides the lowest, machine dependent layer of a fully featured foreign function interface.  \
8A layer must exist above `libffi' that handles type conversions for values passed between the two languages."
9
10LICENSE = "MIT"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=32c0d09a0641daf4903e5d61cc8f23a8"
12
13SRC_URI = "https://github.com/libffi/libffi/releases/download/v${PV}/${BPN}-${PV}.tar.gz \
14           file://not-win32.patch \
15           file://0001-arm-sysv-reverted-clang-VFP-mitigation.patch \
16           "
17SRC_URI[sha256sum] = "d66c56ad259a82cf2a9dfc408b32bf5da52371500b84745f7fb8b645712df676"
18UPSTREAM_CHECK_URI = "https://github.com/libffi/libffi/releases/"
19UPSTREAM_CHECK_REGEX = "libffi-(?P<pver>\d+(\.\d+)+)\.tar"
20
21EXTRA_OECONF += "--disable-builddir --disable-exec-static-tramp"
22EXTRA_OECONF:class-native += "--with-gcc-arch=generic"
23EXTRA_OEMAKE:class-target = "LIBTOOLFLAGS='--tag=CC'"
24inherit autotools texinfo multilib_header
25
26do_install:append() {
27	oe_multilib_header ffi.h ffitarget.h
28}
29
30FILES:${PN}-dev += "${libdir}/libffi-${PV}"
31
32# Doesn't compile in MIPS16e mode due to use of hand-written
33# assembly
34MIPS_INSTRUCTION_SET = "mips"
35
36BBCLASSEXTEND = "native nativesdk"
37