summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp/gmp.inc
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2015-08-27 16:05:59 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-01 11:43:59 +0100
commit6fac60da96eee89d5b7c2156bbb92fe72dc28aef (patch)
treeaf55f9157508f35ece55c012d3e8cb25ac532e71 /meta/recipes-support/gmp/gmp.inc
parentb9ade91413f56ffeeeec753a45e3d1d64efe4802 (diff)
downloadpoky-6fac60da96eee89d5b7c2156bbb92fe72dc28aef.tar.gz
gmp: Bring back version 4.2.1 (LGPL 2.1+)
gmp 4.2.1 was removed in f181c6ce8b apparently accidentally: It was not noticed that 4.2.1 is LGPL 2.1 (and not GPL) so provides a useful alternative to the newer "GPLv2 | LGPLv3" version. * Reintroduce 4.2.1. The source includes files that are GPL but the library package is LGPL 2.1+ * Also reintroduce the two patches removed in f181c6ce8b. * Refactor gmp.inc: gmp 6.0.0 build should not be affected in any way. * Update 6.0.0 license from "GPLv2 | LGPLv3" to "GPLv2+ | LGPLv3+". [YOCTO #8197] (From OE-Core rev: 1adec83621f36a3dd748990c307ca4ebebcdd554) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp/gmp.inc')
-rw-r--r--meta/recipes-support/gmp/gmp.inc19
1 files changed, 1 insertions, 18 deletions
diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc
index 65cde21a7d..6752a39d13 100644
--- a/meta/recipes-support/gmp/gmp.inc
+++ b/meta/recipes-support/gmp/gmp.inc
@@ -2,32 +2,15 @@ SECTION = "devel"
2SUMMARY = "GNU multiprecision arithmetic library" 2SUMMARY = "GNU multiprecision arithmetic library"
3DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers" 3DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers"
4HOMEPAGE = "http://gmplib.org/" 4HOMEPAGE = "http://gmplib.org/"
5LICENSE = "GPLv3 LGPLv3"
6 5
7REVISION ?= "" 6REVISION ?= ""
8 7SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2"
9SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \
10 file://configure.patch \
11 file://amd64.patch "
12 8
13inherit autotools texinfo 9inherit autotools texinfo
14 10
15ARM_INSTRUCTION_SET = "arm" 11ARM_INSTRUCTION_SET = "arm"
16 12
17acpaths = ""
18
19BBCLASSEXTEND = "native nativesdk" 13BBCLASSEXTEND = "native nativesdk"
20 14
21PACKAGECONFIG ??= "" 15PACKAGECONFIG ??= ""
22PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline" 16PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
23
24EXTRA_OECONF += " --enable-cxx=detect"
25
26PACKAGES =+ "libgmpxx"
27FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
28
29do_install_append_class-target() {
30 sed -i "s|--sysroot=${STAGING_DIR_HOST}||g" ${D}${includedir}/gmp.h
31}
32
33SSTATE_SCAN_FILES += "gmp.h"