2008-06-18 08:35:12 +00:00
|
|
|
# Copyright (C) 2005, Koninklijke Philips Electronics NV. All Rights Reserved
|
|
|
|
# Released under the MIT license (see packages/COPYING)
|
|
|
|
|
2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Cross-platform, open-source make system"
|
2008-06-18 08:35:12 +00:00
|
|
|
HOMEPAGE = "http://www.cmake.org/"
|
2010-07-14 12:27:50 +00:00
|
|
|
BUGTRACKER = "http://public.kitware.com/Bug/my_view_page.php"
|
2008-06-18 08:35:12 +00:00
|
|
|
SECTION = "console/utils"
|
2010-07-14 12:27:50 +00:00
|
|
|
LICENSE = "BSD"
|
2015-06-23 15:50:51 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://Copyright.txt;md5=3ba5a6c34481652ce573e5c4e1d707e4 \
|
2010-11-23 06:47:53 +00:00
|
|
|
file://Source/cmake.h;beginline=1;endline=10;md5=341736dae83c9e344b53eeb1bc7d7bc2"
|
2008-06-18 08:35:12 +00:00
|
|
|
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV',1).split('.')[0:2])}"
|
2011-07-08 13:47:43 +00:00
|
|
|
|
2015-11-06 08:56:18 +00:00
|
|
|
SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
|
2013-01-07 11:54:43 +00:00
|
|
|
file://support-oe-qt4-tools-names.patch \
|
2013-07-04 11:26:04 +00:00
|
|
|
file://qt4-fail-silent.patch \
|
2013-01-07 11:54:43 +00:00
|
|
|
"
|
2008-06-18 08:35:12 +00:00
|
|
|
|
2015-11-06 08:56:18 +00:00
|
|
|
SRC_URI[md5sum] = "5febbd11bcaac854a27eebaf4a124be2"
|
|
|
|
SRC_URI[sha256sum] = "e75a178d6ebf182b048ebfe6e0657c49f0dc109779170bad7ffcb17463f2fc22"
|
2015-08-28 12:18:57 +00:00
|
|
|
|
2015-11-16 16:05:13 +00:00
|
|
|
UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar"
|
|
|
|
|
2015-01-13 02:55:19 +00:00
|
|
|
inherit autotools
|
2008-06-18 08:35:12 +00:00
|
|
|
|
2014-04-02 12:25:33 +00:00
|
|
|
# Ugly hack to work around undefined OE_QMAKE_PATH_EXTERNAL_HOST_BINS variable
|
|
|
|
# and possibly missing qmake binary (qtbase-native can be removed from sysroot
|
|
|
|
# e.g. in order to upgrade it, even when there is target qtbase)
|
|
|
|
|
|
|
|
# Fixes errors like this in cmake(-native).do_configure:
|
|
|
|
#| -- Performing Test run_pic_test - Success
|
|
|
|
#| CMake Error at tmp-eglibc/sysroots/qemuarm/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message):
|
|
|
|
#| The imported target "Qt5::Core" references the file
|
|
|
|
#|
|
|
|
|
#| "/qmake"
|
|
|
|
#|
|
|
|
|
#| but this file does not exist. Possible reasons include:
|
|
|
|
|
|
|
|
do_configure_prepend() {
|
|
|
|
sed -i 's/^find_package(Qt5Core QUIET)$/#find_package(Qt5Core QUIET)/g' ${S}/Tests/RunCMake/CMakeLists.txt
|
2015-06-23 15:50:51 +00:00
|
|
|
sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/Qt4And5Automoc/CMakeLists.txt
|
2014-04-02 12:25:33 +00:00
|
|
|
sed -i 's/^ find_package(Qt5Widgets QUIET NO_MODULE)/# find_package(Qt5Widgets QUIET NO_MODULE)/g' ${S}/Tests/CMakeLists.txt
|
|
|
|
sed -i 's/^find_package(Qt5Widgets QUIET)/#find_package(Qt5Widgets QUIET)/g' ${S}/Source/QtDialog/CMakeLists.txt
|
2015-06-23 15:50:51 +00:00
|
|
|
sed -i 's/^ find_package(Qt5Widgets REQUIRED)/# find_package(Qt5Widgets REQUIRED)/g' ${S}/Tests/QtAutoUicInterface/CMakeLists.txt
|
|
|
|
sed -i 's/^ find_package(Qt5Widgets REQUIRED)/# find_package(Qt5Widgets REQUIRED)/g' ${S}/Tests/QtAutogen/CMakeLists.txt
|
|
|
|
sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/QtAutogen/autorcc_depends/CMakeLists.txt
|
2014-04-02 12:25:33 +00:00
|
|
|
}
|
|
|
|
|
2014-04-08 13:51:22 +00:00
|
|
|
# Extra flags to pass to cmake invoked by bootstrap
|
|
|
|
CMAKE_EXTRACONF = ""
|
|
|
|
|
2008-06-18 08:35:12 +00:00
|
|
|
do_configure () {
|
2015-01-13 02:55:19 +00:00
|
|
|
${S}/configure --prefix=${prefix} -- ${CMAKE_EXTRACONF}
|
2008-06-18 08:35:12 +00:00
|
|
|
}
|