diff options
author | Mike Crowe <mac@mcrowe.com> | 2014-04-08 14:51:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-08 17:45:08 +0100 |
commit | c0ac09ab49d7a2b9cc7601ceef2852d690cdf3d1 (patch) | |
tree | b5b37d65516e76d8ee60f3442cd3d6c7db43dbfa /meta/recipes-devtools | |
parent | 68a55c8ff779d8df90626e68d5d4e48660dd8027 (diff) | |
download | poky-c0ac09ab49d7a2b9cc7601ceef2852d690cdf3d1.tar.gz |
cmake: Improve method for not building ccmake
In commit 4bee0a93ed985b38c6b4eb605d8e16f5d7c82d51 I introduced an
unnecessary patch to do something that can easily be done without
patching.
The argument to disable building ccmake can be passed to configure provided
it is preceded by "--".
(From OE-Core rev: eaf176eaabb4c558ad76512b30b28ec97fd90bc6)
Signed-off-by: Mike Crowe <mac@mcrowe.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/cmake/cmake.inc | 5 | ||||
-rw-r--r-- | meta/recipes-devtools/cmake/cmake/disable-bootstrap-cursesdialog.patch | 17 |
3 files changed, 9 insertions, 19 deletions
diff --git a/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb b/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb index d032cb97e0..638c074d6a 100644 --- a/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb +++ b/meta/recipes-devtools/cmake/cmake-native_2.8.12.2.bb | |||
@@ -6,8 +6,12 @@ DEPENDS += "bzip2-native zlib-native" | |||
6 | 6 | ||
7 | SRC_URI += "\ | 7 | SRC_URI += "\ |
8 | file://cmlibarchive-disable-ext2fs.patch \ | 8 | file://cmlibarchive-disable-ext2fs.patch \ |
9 | file://disable-bootstrap-cursesdialog.patch \ | ||
10 | " | 9 | " |
11 | 10 | ||
12 | SRC_URI[md5sum] = "17c6513483d23590cbce6957ec6d1e66" | 11 | SRC_URI[md5sum] = "17c6513483d23590cbce6957ec6d1e66" |
13 | SRC_URI[sha256sum] = "8c6574e9afabcb9fc66f463bb1f2f051958d86c85c37fccf067eb1a44a120e5e" | 12 | SRC_URI[sha256sum] = "8c6574e9afabcb9fc66f463bb1f2f051958d86c85c37fccf067eb1a44a120e5e" |
13 | |||
14 | # Disable ccmake since we don't depend on ncurses | ||
15 | CMAKE_EXTRACONF = "\ | ||
16 | -DBUILD_CursesDialog=0 \ | ||
17 | " | ||
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc index a0fcf490ec..8592a23046 100644 --- a/meta/recipes-devtools/cmake/cmake.inc +++ b/meta/recipes-devtools/cmake/cmake.inc | |||
@@ -43,6 +43,9 @@ do_configure_prepend() { | |||
43 | sed -i 's/^find_package(Qt5Widgets QUIET)/#find_package(Qt5Widgets QUIET)/g' ${S}/Source/QtDialog/CMakeLists.txt | 43 | sed -i 's/^find_package(Qt5Widgets QUIET)/#find_package(Qt5Widgets QUIET)/g' ${S}/Source/QtDialog/CMakeLists.txt |
44 | } | 44 | } |
45 | 45 | ||
46 | # Extra flags to pass to cmake invoked by bootstrap | ||
47 | CMAKE_EXTRACONF = "" | ||
48 | |||
46 | do_configure () { | 49 | do_configure () { |
47 | ./configure --prefix=${prefix} | 50 | ./configure --prefix=${prefix} -- ${CMAKE_EXTRACONF} |
48 | } | 51 | } |
diff --git a/meta/recipes-devtools/cmake/cmake/disable-bootstrap-cursesdialog.patch b/meta/recipes-devtools/cmake/cmake/disable-bootstrap-cursesdialog.patch deleted file mode 100644 index 9d378fb24c..0000000000 --- a/meta/recipes-devtools/cmake/cmake/disable-bootstrap-cursesdialog.patch +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | Disable building CursesDialog so that cmake-native doesn't have to | ||
2 | depend on ncurses-native. | ||
3 | |||
4 | Upstream-status: Inappropriate [disable feature] | ||
5 | |||
6 | Signed-off-by: Mike Crowe <mac@mcrowe.com> | ||
7 | |||
8 | --- cmake-2.8.12.2/bootstrap~ 2014-01-16 17:15:09.000000000 +0000 | ||
9 | +++ cmake-2.8.12.2/bootstrap 2014-04-01 21:27:23.841996822 +0100 | ||
10 | @@ -1578,6 +1578,7 @@ export MAKE | ||
11 | |||
12 | # Run bootstrap CMake to configure real CMake | ||
13 | cmake_options="-DCMAKE_BOOTSTRAP=1" | ||
14 | +cmake_options="${cmake_options} -DBUILD_CursesDialog=0" | ||
15 | if [ -n "${cmake_verbose}" ]; then | ||
16 | cmake_options="${cmake_options} -DCMAKE_VERBOSE_MAKEFILE=1" | ||
17 | fi | ||