Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | require gmp.inc |
| 2 | |
| 3 | LICENSE = "GPLv2+ | LGPLv3+" |
| 4 | |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 6 | file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 7 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 8 | " |
| 9 | |
| 10 | REVISION = "" |
| 11 | SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \ |
| 12 | file://use-includedir.patch \ |
| 13 | file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \ |
| 14 | file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \ |
| 15 | " |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 16 | SRC_URI[md5sum] = "28971fc21cf028042d4897f02fd355ea" |
| 17 | SRC_URI[sha256sum] = "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | |
| 19 | acpaths = "" |
| 20 | |
| 21 | EXTRA_OECONF += " --enable-cxx=detect" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | EXTRA_OECONF:mipsarchr6:append = " --disable-assembly" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | |
| 24 | PACKAGES =+ "libgmpxx" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | FILES:libgmpxx = "${libdir}/libgmpxx${SOLIBS}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 26 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | do_install:append() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | oe_multilib_header gmp.h |
| 29 | } |
| 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | do_install:prepend:class-target() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | sed -i \ |
| 33 | -e "s|--sysroot=${STAGING_DIR_HOST}||g" \ |
| 34 | -e "s|${DEBUG_PREFIX_MAP}||g" \ |
| 35 | ${B}/gmp.h |
| 36 | } |
| 37 | |
| 38 | SSTATE_SCAN_FILES += "gmp.h" |
| 39 | |
| 40 | # Doesn't compile in MIPS16e mode due to use of hand-written |
| 41 | # assembly |
| 42 | MIPS_INSTRUCTION_SET = "mips" |
| 43 | |
| 44 | BBCLASSEXTEND = "native nativesdk" |