Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | require gmp.inc |
| 2 | |
| 3 | LICENSE="GPLv2+ | LGPLv3+" |
| 4 | |
| 5 | REVISION="a" |
| 6 | |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ |
| 8 | file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 9 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 10 | " |
| 11 | |
| 12 | SRC_URI += "file://configure.patch \ |
| 13 | file://amd64.patch \ |
| 14 | file://use-includedir.patch \ |
| 15 | file://append_user_provided_flags.patch \ |
| 16 | file://gmp-6.0.0-ppc64.patch \ |
| 17 | " |
| 18 | SRC_URI[md5sum] = "b7ff2d88cae7f8085bd5006096eed470" |
| 19 | SRC_URI[sha256sum] = "7f8e9a804b9c6d07164cf754207be838ece1219425d64e28cfa3e70d5c759aaf" |
| 20 | |
| 21 | acpaths = "" |
| 22 | |
| 23 | EXTRA_OECONF += " --enable-cxx=detect" |
| 24 | |
| 25 | PACKAGES =+ "libgmpxx" |
| 26 | FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}" |
| 27 | |
| 28 | do_install_append_class-target() { |
| 29 | sed -i "s|--sysroot=${STAGING_DIR_HOST}||g" ${D}${includedir}/gmp.h |
| 30 | } |
| 31 | |
| 32 | SSTATE_SCAN_FILES += "gmp.h" |
| 33 | |