Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [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://amd64.patch \ |
| 13 | file://use-includedir.patch \ |
| 14 | file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \ |
| 15 | file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \ |
| 16 | " |
| 17 | |
| 18 | SRC_URI[md5sum] = "4c175f86e11eb32d8bf9872ca3a8e11d" |
| 19 | SRC_URI[sha256sum] = "a8109865f2893f1373b0a8ed5ff7429de8db696fc451b1036bd7bdf95bbeffd6" |
| 20 | |
| 21 | acpaths = "" |
| 22 | |
| 23 | EXTRA_OECONF += " --enable-cxx=detect" |
Brad Bishop | 37a0e4d | 2017-12-04 01:01:44 -0500 | [diff] [blame^] | 24 | EXTRA_OECONF_mipsarchr6_append = " --disable-assembly" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 25 | |
| 26 | PACKAGES =+ "libgmpxx" |
| 27 | FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}" |
| 28 | |
| 29 | do_install_append_class-target() { |
| 30 | sed -i "s|--sysroot=${STAGING_DIR_HOST}||g" ${D}${includedir}/gmp.h |
| 31 | } |
| 32 | |
| 33 | SSTATE_SCAN_FILES += "gmp.h" |
| 34 | |
| 35 | # Doesn't compile in MIPS16e mode due to use of hand-written |
| 36 | # assembly |
| 37 | MIPS_INSTRUCTION_SET = "mips" |
| 38 | |
| 39 | BBCLASSEXTEND = "native nativesdk" |