summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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