diff options
Diffstat (limited to 'meta/recipes-support/gmp/gmp_6.3.0.bb')
-rw-r--r-- | meta/recipes-support/gmp/gmp_6.3.0.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp_6.3.0.bb b/meta/recipes-support/gmp/gmp_6.3.0.bb new file mode 100644 index 0000000000..fd4aec92fd --- /dev/null +++ b/meta/recipes-support/gmp/gmp_6.3.0.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | require gmp.inc | ||
2 | |||
3 | LICENSE = "GPL-2.0-or-later | LGPL-3.0-or-later" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "\ | ||
6 | file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
7 | file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
8 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
9 | file://COPYINGv3;md5=11cc2d3ee574f9d6b7ee797bdce4d423 \ | ||
10 | " | ||
11 | |||
12 | REVISION = "" | ||
13 | SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \ | ||
14 | file://use-includedir.patch \ | ||
15 | file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \ | ||
16 | file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \ | ||
17 | " | ||
18 | SRC_URI[sha256sum] = "ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb" | ||
19 | |||
20 | acpaths = "" | ||
21 | |||
22 | EXTRA_OECONF += " --enable-cxx=detect" | ||
23 | EXTRA_OECONF:append:mipsarchr6 = " --disable-assembly" | ||
24 | |||
25 | PACKAGES =+ "libgmpxx" | ||
26 | FILES:libgmpxx = "${libdir}/libgmpxx${SOLIBS}" | ||
27 | |||
28 | do_install:append() { | ||
29 | oe_multilib_header gmp.h | ||
30 | } | ||
31 | |||
32 | fix_absolute_paths () { | ||
33 | sed -i \ | ||
34 | -e "s|--sysroot=${STAGING_DIR_HOST}||g" \ | ||
35 | -e "s|${DEBUG_PREFIX_MAP}||g" \ | ||
36 | ${B}/gmp.h | ||
37 | } | ||
38 | |||
39 | do_install:prepend:class-target() { | ||
40 | fix_absolute_paths | ||
41 | } | ||
42 | |||
43 | do_install:prepend:class-nativesdk() { | ||
44 | fix_absolute_paths | ||
45 | } | ||
46 | |||
47 | SSTATE_SCAN_FILES += "gmp.h" | ||
48 | |||
49 | # Doesn't compile in MIPS16e mode due to use of hand-written | ||
50 | # assembly | ||
51 | MIPS_INSTRUCTION_SET = "mips" | ||
52 | |||
53 | BBCLASSEXTEND = "native nativesdk" | ||