summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-06-24 08:03:27 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2008-06-24 08:03:27 +0000
commitf0a7dda7ca5891361821f41a7515254c09c648d1 (patch)
treeca9a92a5a1bf138b68c35ba9a241873bd6bf39da
parentda25e997e7d29e9d28aed0b8036fb28b696b7f84 (diff)
cmake: move definition of CMAKE_MAJOR_VERSION into python function in .inc
* no further changes across major versions necessary
-rw-r--r--packages/cmake/cmake-native_2.4.8.bb1
-rw-r--r--packages/cmake/cmake.inc1
-rw-r--r--packages/cmake/cmake_2.4.8.bb1
3 files changed, 1 insertions, 2 deletions
diff --git a/packages/cmake/cmake-native_2.4.8.bb b/packages/cmake/cmake-native_2.4.8.bb
index 1a56fa40e0..02bc3aed48 100644
--- a/packages/cmake/cmake-native_2.4.8.bb
+++ b/packages/cmake/cmake-native_2.4.8.bb
@@ -1,4 +1,3 @@
-CMAKE_MAJOR_VERSION="2.4"
require cmake.inc
inherit native
diff --git a/packages/cmake/cmake.inc b/packages/cmake/cmake.inc
index 5190b6233f..ddc5f98ae2 100644
--- a/packages/cmake/cmake.inc
+++ b/packages/cmake/cmake.inc
@@ -6,6 +6,7 @@ HOMEPAGE = "http://www.cmake.org/"
LICENSE = "Berkely-style license"
SECTION = "console/utils"
+CMAKE_MAJOR_VERSION = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz"
inherit autotools
diff --git a/packages/cmake/cmake_2.4.8.bb b/packages/cmake/cmake_2.4.8.bb
index 619aea9701..68f03c17a9 100644
--- a/packages/cmake/cmake_2.4.8.bb
+++ b/packages/cmake/cmake_2.4.8.bb
@@ -1,2 +1 @@
-CMAKE_MAJOR_VERSION="2.4"
require cmake.inc