diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-10-28 16:44:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-10-29 10:32:59 +0000 |
commit | 5d63ad569d6beab5beea82aa51c1625d0e1e8231 (patch) | |
tree | fe72a29e9ce744dd54247e6838e8535e0496edca /meta/recipes-devtools/cmake/cmake_2.8.12.bb | |
parent | 6553c807e19042d3b6add4e7c4b3999fb641abe6 (diff) | |
download | openembedded-core-contrib-5d63ad569d6beab5beea82aa51c1625d0e1e8231.tar.gz |
cmake: upgrade to 2.8.12
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.bb')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake_2.8.12.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake_2.8.12.bb b/meta/recipes-devtools/cmake/cmake_2.8.12.bb new file mode 100644 index 0000000000..ffd947fd31 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake_2.8.12.bb @@ -0,0 +1,38 @@ +require cmake.inc + +inherit cmake + +DEPENDS += "curl expat zlib libarchive ncurses" + +SRC_URI += "file://dont-run-cross-binaries.patch" + +SRC_URI[md5sum] = "105bc6d21cc2e9b6aff901e43c53afea" +SRC_URI[sha256sum] = "d885ba10b2406ede59aa31a928df33c9d67fc01433202f7dd586999cfd0e0287" + +# Strip ${prefix} from ${docdir}, set result into docdir_stripped +python () { + prefix=d.getVar("prefix", True) + docdir=d.getVar("docdir", True) + + if not docdir.startswith(prefix): + raise bb.build.FuncFailed('docdir must contain prefix as its prefix') + + docdir_stripped = docdir[len(prefix):] + if len(docdir_stripped) > 0 and docdir_stripped[0] == '/': + docdir_stripped = docdir_stripped[1:] + + d.setVar("docdir_stripped", docdir_stripped) +} + +EXTRA_OECMAKE=" \ + -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \ + -DCMAKE_USE_SYSTEM_LIBRARIES=1 \ + -DKWSYS_CHAR_IS_SIGNED=1 \ + -DBUILD_CursesDialog=0 \ + ${@base_contains('DISTRO_FEATURES', 'largefile', '-DKWSYS_LFS_WORKS=1', '-DKWSYS_LFS_DISABLE=1', d)} \ +" + +FILES_${PN} += "${datadir}/cmake-${CMAKE_MAJOR_VERSION}" +FILES_${PN}-doc += "${docdir}/cmake-${CMAKE_MAJOR_VERSION}" + +BBCLASSEXTEND = "nativesdk" |