diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-02-28 16:37:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-02 17:25:27 +0000 |
commit | 8c244c67976408ef833d2eb29ccabfa1cbdca610 (patch) | |
tree | b17eb3204a6f4215db93dc32bada8d08a4e16b2f /meta/recipes-devtools/cmake/cmake_2.8.12.2.bb | |
parent | 147e5ae9e597344623a4269694a55847ee0eab93 (diff) | |
download | poky-8c244c67976408ef833d2eb29ccabfa1cbdca610.tar.gz |
cmake: upgrade to 2.8.12.2
(From OE-Core rev: 30754b50f4a2b7290d1a4288be69d42d3269658e)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake_2.8.12.2.bb')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_2.8.12.2.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_2.8.12.2.bb b/meta/recipes-devtools/cmake/cmake_2.8.12.2.bb new file mode 100644 index 0000000000..52c3b3242c --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake_2.8.12.2.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | require cmake.inc | ||
2 | |||
3 | inherit cmake | ||
4 | |||
5 | DEPENDS += "curl expat zlib libarchive ncurses" | ||
6 | |||
7 | SRC_URI += "file://dont-run-cross-binaries.patch" | ||
8 | |||
9 | SRC_URI[md5sum] = "17c6513483d23590cbce6957ec6d1e66" | ||
10 | SRC_URI[sha256sum] = "8c6574e9afabcb9fc66f463bb1f2f051958d86c85c37fccf067eb1a44a120e5e" | ||
11 | |||
12 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped | ||
13 | python () { | ||
14 | prefix=d.getVar("prefix", True) | ||
15 | docdir=d.getVar("docdir", True) | ||
16 | |||
17 | if not docdir.startswith(prefix): | ||
18 | raise bb.build.FuncFailed('docdir must contain prefix as its prefix') | ||
19 | |||
20 | docdir_stripped = docdir[len(prefix):] | ||
21 | if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': | ||
22 | docdir_stripped = docdir_stripped[1:] | ||
23 | |||
24 | d.setVar("docdir_stripped", docdir_stripped) | ||
25 | } | ||
26 | |||
27 | EXTRA_OECMAKE=" \ | ||
28 | -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \ | ||
29 | -DCMAKE_USE_SYSTEM_LIBRARIES=1 \ | ||
30 | -DKWSYS_CHAR_IS_SIGNED=1 \ | ||
31 | -DBUILD_CursesDialog=0 \ | ||
32 | ${@base_contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \ | ||
33 | " | ||
34 | |||
35 | FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
36 | FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
37 | |||
38 | BBCLASSEXTEND = "nativesdk" | ||