diff options
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake_2.8.11.2.bb')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_2.8.11.2.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_2.8.11.2.bb b/meta/recipes-devtools/cmake/cmake_2.8.11.2.bb new file mode 100644 index 0000000000..91e5411218 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake_2.8.11.2.bb | |||
@@ -0,0 +1,41 @@ | |||
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] = "df5324a3b203373a9e0a04b924281a43" | ||
10 | SRC_URI[sha256sum] = "b7dbb86824051319b8e082d2f892ebe6d5914b4dac9b9ef1aeac5e7ed054b0bf" | ||
11 | |||
12 | SRC_URI[md5sum] = "6f5d7b8e7534a5d9e1a7664ba63cf882" | ||
13 | SRC_URI[sha256sum] = "b32acb483afdd14339941c6e4ec25f633d916a7a472653a0b00838771a6c0562" | ||
14 | |||
15 | # Strip ${prefix} from ${docdir}, set result into docdir_stripped | ||
16 | python () { | ||
17 | prefix=d.getVar("prefix", True) | ||
18 | docdir=d.getVar("docdir", True) | ||
19 | |||
20 | if not docdir.startswith(prefix): | ||
21 | raise bb.build.FuncFailed('docdir must contain prefix as its prefix') | ||
22 | |||
23 | docdir_stripped = docdir[len(prefix):] | ||
24 | if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': | ||
25 | docdir_stripped = docdir_stripped[1:] | ||
26 | |||
27 | d.setVar("docdir_stripped", docdir_stripped) | ||
28 | } | ||
29 | |||
30 | EXTRA_OECMAKE=" \ | ||
31 | -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \ | ||
32 | -DCMAKE_USE_SYSTEM_LIBRARIES=1 \ | ||
33 | -DKWSYS_CHAR_IS_SIGNED=1 \ | ||
34 | -DBUILD_CursesDialog=0 \ | ||
35 | ${@base_contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \ | ||
36 | " | ||
37 | |||
38 | FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
39 | FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" | ||
40 | |||
41 | BBCLASSEXTEND = "nativesdk" | ||