diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-07-08 13:47:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-08 16:39:08 +0100 |
commit | cd16591d6cb5d37d027ac16211904d4d7db3033e (patch) | |
tree | 6c0ad53370942ffd51d47f9c516f456d46e6d6a9 /meta | |
parent | 2a52b017f49e9d4699a94f2a8f7ef861526c4a1a (diff) | |
download | poky-cd16591d6cb5d37d027ac16211904d4d7db3033e.tar.gz |
cmake: refactor recipe
* use INC_PR;
* show configure's failure on error;
* gather major version from PV;
(From OE-Core rev: c9d1e68a137960b6cdc81b875c087a8c1031dcbc)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake-native_2.8.3.bb | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/cmake/cmake.inc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-devtools/cmake/cmake-native_2.8.3.bb b/meta/recipes-devtools/cmake/cmake-native_2.8.3.bb index 29b3d87e88..a68a25f406 100644 --- a/meta/recipes-devtools/cmake/cmake-native_2.8.3.bb +++ b/meta/recipes-devtools/cmake/cmake-native_2.8.3.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | CMAKE_MAJOR_VERSION="2.8" | ||
2 | require cmake.inc | 1 | require cmake.inc |
3 | inherit native | 2 | inherit native |
4 | PR = "r1" | 3 | |
4 | PR = "${INC_PR}.1" | ||
5 | 5 | ||
6 | SRC_URI[md5sum] = "a76a44b93acf5e3badda9de111385921" | 6 | SRC_URI[md5sum] = "a76a44b93acf5e3badda9de111385921" |
7 | SRC_URI[sha256sum] = "689ed02786b5cefa5515c7716784ee82a82e8ece6be5a3d629ac3cc0c05fc288" | 7 | SRC_URI[sha256sum] = "689ed02786b5cefa5515c7716784ee82a82e8ece6be5a3d629ac3cc0c05fc288" |
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc index eed93460ed..ec37a101a3 100644 --- a/meta/recipes-devtools/cmake/cmake.inc +++ b/meta/recipes-devtools/cmake/cmake.inc | |||
@@ -9,11 +9,15 @@ LICENSE = "BSD" | |||
9 | LIC_FILES_CHKSUM = "file://Copyright.txt;md5=f372516292ff7c33337bf16a74a5f9a8 \ | 9 | LIC_FILES_CHKSUM = "file://Copyright.txt;md5=f372516292ff7c33337bf16a74a5f9a8 \ |
10 | file://Source/cmake.h;beginline=1;endline=10;md5=341736dae83c9e344b53eeb1bc7d7bc2" | 10 | file://Source/cmake.h;beginline=1;endline=10;md5=341736dae83c9e344b53eeb1bc7d7bc2" |
11 | 11 | ||
12 | INC_PR = "r1" | ||
13 | |||
14 | CMAKE_MAJOR_VERSION = "${@'.'.join(bb.data.getVar('PV',d,1).split('.')[0:2])}" | ||
15 | |||
12 | SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ | 16 | SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ |
13 | file://support-oe-qt4-tools-names.patch" | 17 | file://support-oe-qt4-tools-names.patch" |
14 | 18 | ||
15 | inherit autotools | 19 | inherit autotools |
16 | 20 | ||
17 | do_configure () { | 21 | do_configure () { |
18 | ./configure --prefix=${prefix} || die "./bootstrap failed" | 22 | ./configure --prefix=${prefix} |
19 | } | 23 | } |