aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake.inc
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-07-08 13:47:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-08 16:14:55 +0100
commitc9d1e68a137960b6cdc81b875c087a8c1031dcbc (patch)
tree4d68e57146f54514d2a862bf6309e671a0104855 /meta/recipes-devtools/cmake/cmake.inc
parent95b3d348a0ce7eae5c8cbd04afde6e1b34bdee76 (diff)
downloadopenembedded-core-contrib-c9d1e68a137960b6cdc81b875c087a8c1031dcbc.tar.gz
openembedded-core-contrib-c9d1e68a137960b6cdc81b875c087a8c1031dcbc.tar.bz2
openembedded-core-contrib-c9d1e68a137960b6cdc81b875c087a8c1031dcbc.zip
cmake: refactor recipe
* use INC_PR; * show configure's failure on error; * gather major version from PV; Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake.inc')
-rw-r--r--meta/recipes-devtools/cmake/cmake.inc6
1 files changed, 5 insertions, 1 deletions
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"
LIC_FILES_CHKSUM = "file://Copyright.txt;md5=f372516292ff7c33337bf16a74a5f9a8 \
file://Source/cmake.h;beginline=1;endline=10;md5=341736dae83c9e344b53eeb1bc7d7bc2"
+INC_PR = "r1"
+
+CMAKE_MAJOR_VERSION = "${@'.'.join(bb.data.getVar('PV',d,1).split('.')[0:2])}"
+
SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
file://support-oe-qt4-tools-names.patch"
inherit autotools
do_configure () {
- ./configure --prefix=${prefix} || die "./bootstrap failed"
+ ./configure --prefix=${prefix}
}