forked from brl/citadel
51 lines
3.0 KiB
PHP
51 lines
3.0 KiB
PHP
|
# Copyright (C) 2005, Koninklijke Philips Electronics NV. All Rights Reserved
|
||
|
# Released under the MIT license (see packages/COPYING)
|
||
|
|
||
|
SUMMARY = "Cross-platform, open-source make system"
|
||
|
HOMEPAGE = "http://www.cmake.org/"
|
||
|
BUGTRACKER = "http://public.kitware.com/Bug/my_view_page.php"
|
||
|
SECTION = "console/utils"
|
||
|
LICENSE = "BSD"
|
||
|
LIC_FILES_CHKSUM = "file://Copyright.txt;md5=24600643e5d1d2b8f7478ae5c9074949 \
|
||
|
file://Source/cmake.h;beginline=1;endline=3;md5=4494dee184212fc89c469c3acd555a14"
|
||
|
|
||
|
CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
|
||
|
|
||
|
SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
|
||
|
file://support-oe-qt4-tools-names.patch \
|
||
|
file://qt4-fail-silent.patch \
|
||
|
file://0001-FindCUDA-Use-find_program-if-find_host_program-is-no.patch \
|
||
|
"
|
||
|
|
||
|
SRC_URI[md5sum] = "0922130d0e0c142a88e58c6e4fef4d7d"
|
||
|
SRC_URI[sha256sum] = "6220c1683b4e6bb8f38688fa3ffb17a7cf39f36317c2ddfdc3f12f09d086c166"
|
||
|
|
||
|
UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar"
|
||
|
|
||
|
# 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
|
||
|
sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/Qt4And5Automoc/CMakeLists.txt
|
||
|
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
|
||
|
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/RunCMake/IncompatibleQt/IncompatibleQt.cmake
|
||
|
sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/QtAutogen/mocRerun/CMakeLists.txt
|
||
|
sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/QtAutogen/rccDepends/CMakeLists.txt
|
||
|
sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/QtAutogen/mocDepends/CMakeLists.txt
|
||
|
sed -i 's/^find_package(Qt5Widgets REQUIRED)/#find_package(Qt5Widgets REQUIRED)/g' ${S}/Tests/QtAutogen/mocPlugin/CMakeLists.txt
|
||
|
}
|