diff options
Diffstat (limited to 'vars')
-rw-r--r-- | vars/build.vars | 1 | ||||
-rw-r--r-- | vars/cmake.vars | 41 |
2 files changed, 13 insertions, 29 deletions
diff --git a/vars/build.vars b/vars/build.vars index eb54da41..4e79f103 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -421,6 +421,7 @@ LEAF_PACKAGES_PREFIX="${PREFIX_NATIVE}"; : ${PKG_CMAKE_SHA256SUM:=7d73ee4fae572eb2d7cd3feb48971aea903bb30a20ea5ae8b4da826d8ccad5fe}; : ${PKG_CMAKE_URL:=https://cmake.org/files/v${PKG_CMAKE_VERSION%.*}/cmake-${PKG_CMAKE_VERSION}.tar.gz}; : ${PKG_CMAKE_CONFIGURE_ARGS:="--prefix="}; +: ${PKG_CMAKE_MAKEFLAGS_INSTALL:=}; : ${PKG_COREUTILS_PREFIX_EXTRA:=${PREFIX_MINIPIX}}; : ${PKG_COREUTILS_SHA256SUM:=ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d}; : ${PKG_COREUTILS_VERSION:=8.23}; diff --git a/vars/cmake.vars b/vars/cmake.vars index 0eae553f..42b31504 100644 --- a/vars/cmake.vars +++ b/vars/cmake.vars @@ -2,33 +2,23 @@ # . ./build.vars and set -o errexit -o noglob are assumed. # -pkg_cmake_configure_pre() { +pkg_cmake_configure() { cp -p ../cmake-${PKG_VERSION}/Modules/Platform/BSDOS.cmake \ ../cmake-${PKG_VERSION}/Modules/Platform/Midipix.cmake; - - rm -rf ../cmake-${PKG_VERSION}-host; - mkdir ../cmake-${PKG_VERSION}-host; - cd ../cmake-${PKG_VERSION}-host; - - echo XXXXXXXXXXXXXXXXXXXXXXXXXXXX - - (unset AR ARFLAGS CC CFLAGS RANLIB RANLIBFLAGS; - ../cmake-${PKG_VERSION}/configure ${PKG_CONFIGURE_ARGS}; - make DESTDIR=${PREFIX} install; - ); - - set_build_script_done configure -clean; - echo YYYYYYYYYYYYYYYYYYYYYYYYYYYY + secure_rm ../cmake-${PKG_VERSION}-host; + insecure_mkdir ../cmake-${PKG_VERSION}-host; + cd ../cmake-${PKG_VERSION}-host; + log_msg info "Bootstrapping cmake..."; + (unset AR CC RANLIB; + ../cmake-${PKG_VERSION}/configure ${PKG_CONFIGURE_ARGS}; + make DESTDIR=${PREFIX} install); + log_msg info "Finished bootstrapping cmake."; + stat ../cmake-${PKG_VERSION}; }; -pkg_cmake_configure() { - stat ../cmake-${PKG_VERSION} - set_build_script_done configure -clean; -} - pkg_cmake_build() { rm -f config.cache; - + log_msg info "Calling cmake..."; env CFLAGS="--sysroot=${PKG_PREFIX}" cmake \ -DBZIP2_INCLUDE_DIR=${PKG_PREFIX}/include \ -DBZIP2_LIBRARIES=${PKG_PREFIX}/lib/libbz2.a \ @@ -54,15 +44,8 @@ pkg_cmake_build() { -DLIBLZMA_LIBRARY=${PKG_PREFIX}/lib/liblzma.lib.a \ -DZLIB_INCLUDE_DIR=${PKG_PREFIX}/include \ -DZLIB_LIBRARY=z ../cmake-${PKG_VERSION}; - + log_msg info "Calling make..."; make ${DEFAULT_MAKEFLAGS_BUILD}; - set_build_script_done build -install }; -pkg_cmake_install() { - make DESTDIR=${PKG_PREFIX} install; - set_build_script_done install -finish - set_build_script_done finish -} - # vim:filetype=sh |