diff options
| -rw-r--r-- | meta/recipes-devtools/cmake/cmake-native_3.6.1.bb | 15 | ||||
| -rw-r--r-- | meta/recipes-devtools/cmake/cmake.inc | 9 |
2 files changed, 15 insertions, 9 deletions
diff --git a/meta/recipes-devtools/cmake/cmake-native_3.6.1.bb b/meta/recipes-devtools/cmake/cmake-native_3.6.1.bb index 33930fbb9c..f3a485fc0e 100644 --- a/meta/recipes-devtools/cmake/cmake-native_3.6.1.bb +++ b/meta/recipes-devtools/cmake/cmake-native_3.6.1.bb | |||
| @@ -8,6 +8,9 @@ SRC_URI += "\ | |||
| 8 | file://cmlibarchive-disable-ext2fs.patch \ | 8 | file://cmlibarchive-disable-ext2fs.patch \ |
| 9 | " | 9 | " |
| 10 | 10 | ||
| 11 | B = "${WORKDIR}/build" | ||
| 12 | do_configure[cleandirs] = "${B}" | ||
| 13 | |||
| 11 | # Disable ccmake since we don't depend on ncurses | 14 | # Disable ccmake since we don't depend on ncurses |
| 12 | CMAKE_EXTRACONF = "\ | 15 | CMAKE_EXTRACONF = "\ |
| 13 | -DBUILD_CursesDialog=0 \ | 16 | -DBUILD_CursesDialog=0 \ |
| @@ -15,4 +18,16 @@ CMAKE_EXTRACONF = "\ | |||
| 15 | -DHAVE_SYS_ACL_H=0 \ | 18 | -DHAVE_SYS_ACL_H=0 \ |
| 16 | " | 19 | " |
| 17 | 20 | ||
| 21 | do_configure () { | ||
| 22 | ${S}/configure --prefix=${prefix} -- ${CMAKE_EXTRACONF} | ||
| 23 | } | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | oe_runmake | ||
| 27 | } | ||
| 28 | |||
| 29 | do_install() { | ||
| 30 | oe_runmake 'DESTDIR=${D}' install | ||
| 31 | } | ||
| 32 | |||
| 18 | do_compile[progress] = "percent" | 33 | do_compile[progress] = "percent" |
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc index 1f73b3afab..4fcb0b1ed0 100644 --- a/meta/recipes-devtools/cmake/cmake.inc +++ b/meta/recipes-devtools/cmake/cmake.inc | |||
| @@ -21,8 +21,6 @@ SRC_URI[sha256sum] = "28ee98ec40427d41a45673847db7a905b59ce9243bb866eaf59dce0f58 | |||
| 21 | 21 | ||
| 22 | UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar" | 22 | UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar" |
| 23 | 23 | ||
| 24 | inherit autotools | ||
| 25 | |||
| 26 | # Ugly hack to work around undefined OE_QMAKE_PATH_EXTERNAL_HOST_BINS variable | 24 | # Ugly hack to work around undefined OE_QMAKE_PATH_EXTERNAL_HOST_BINS variable |
| 27 | # and possibly missing qmake binary (qtbase-native can be removed from sysroot | 25 | # and possibly missing qmake binary (qtbase-native can be removed from sysroot |
| 28 | # e.g. in order to upgrade it, even when there is target qtbase) | 26 | # e.g. in order to upgrade it, even when there is target qtbase) |
| @@ -45,10 +43,3 @@ do_configure_prepend() { | |||
| 45 | sed -i 's/^ find_package(Qt5Widgets REQUIRED)/# find_package(Qt5Widgets REQUIRED)/g' ${S}/Tests/QtAutogen/CMakeLists.txt | 43 | sed -i 's/^ find_package(Qt5Widgets REQUIRED)/# find_package(Qt5Widgets REQUIRED)/g' ${S}/Tests/QtAutogen/CMakeLists.txt |
| 46 | sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/QtAutogen/autorcc_depends/CMakeLists.txt | 44 | sed -i 's/^ find_package(Qt5Core REQUIRED)/# find_package(Qt5Core REQUIRED)/g' ${S}/Tests/QtAutogen/autorcc_depends/CMakeLists.txt |
| 47 | } | 45 | } |
| 48 | |||
| 49 | # Extra flags to pass to cmake invoked by bootstrap | ||
| 50 | CMAKE_EXTRACONF = "" | ||
| 51 | |||
| 52 | do_configure () { | ||
| 53 | ${S}/configure --prefix=${prefix} -- ${CMAKE_EXTRACONF} | ||
| 54 | } | ||
