From f0a7dda7ca5891361821f41a7515254c09c648d1 Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Tue, 24 Jun 2008 08:03:27 +0000 Subject: cmake: move definition of CMAKE_MAJOR_VERSION into python function in .inc * no further changes across major versions necessary --- packages/cmake/cmake-native_2.4.8.bb | 1 - packages/cmake/cmake.inc | 1 + packages/cmake/cmake_2.4.8.bb | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) (limited to 'packages') 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 -- cgit v1.2.3