diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-19 12:23:58 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-11-19 13:58:12 +0100 |
commit | 0ddccef3fa9390e7d8a7fcfb040b0bd3ef2fccdd (patch) | |
tree | 938f89352e04699d12aac47d11bc3976b23ee9e5 | |
parent | fa4cc0616277b847c62d698941e1ad83f905ae05 (diff) | |
download | midipix_build-0ddccef3fa9390e7d8a7fcfb040b0bd3ef2fccdd.tar.bz2 midipix_build-0ddccef3fa9390e7d8a7fcfb040b0bd3ef2fccdd.tar.xz |
cmake: fix build episode 29 (via midipix.)
-rw-r--r-- | vars/cmake.vars | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/vars/cmake.vars b/vars/cmake.vars index 4a13f37d..a6d36341 100644 --- a/vars/cmake.vars +++ b/vars/cmake.vars @@ -17,14 +17,21 @@ pkg_cmake_configure() { }; pkg_cmake_build() { + secure_rm ../cmake-${PKG_VERSION}-native-${PKG_TARGET}; + insecure_mkdir ../cmake-${PKG_VERSION}-native-${PKG_TARGET}; + cd ${WORKDIR}/cmake-${PKG_VERSION}-native-${PKG_TARGET}; rm -f config.cache; log_msg info "Calling cmake..."; - env CFLAGS="--sysroot=${PKG_PREFIX}" cmake \ + _pcb_prefix=${PREFIX}; + env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" \ + PREFIX="" cmake \ -DBZIP2_INCLUDE_DIR=${PKG_PREFIX}/include \ -DBZIP2_LIBRARIES=${PKG_PREFIX}/lib/libbz2.a \ - -DCMAKE_C_COMPILER=${PREFIX}/bin/${CC} \ - -DCMAKE_CXX_COMPILER=${PREFIX}/bin/${PKG_TARGET}-g++ \ - -DCMAKE_INSTALL_PREFIX=../cmake-${PKG_VERSION} \ + -DCMAKE_AR=${_pcb_prefix}/bin/${AR} \ + -DCMAKE_C_COMPILER=${_pcb_prefix}/bin/${CC} \ + -DCMAKE_CXX_COMPILER=${_pcb_prefix}/bin/${PKG_TARGET}-g++ \ + -DCMAKE_INSTALL_PREFIX= \ + -DCMAKE_RANLIB=${_pcb_prefix}/bin/${RANLIB} \ -DCMAKE_SYSTEM_NAME=Midipix \ -DCMAKE_USE_SYSTEM_BZIP2=ON \ -DCMAKE_USE_SYSTEM_CURL=ON \ @@ -34,6 +41,7 @@ pkg_cmake_build() { -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCURL_INCLUDE_DIR=${PKG_PREFIX}/include/curl \ -DCURL_LIBRARY=${PKG_PREFIX}/lib/libcurl.lib.a \ + -DCURSES_NCURSES_LIBRARY=${PKG_PREFIX}/lib/libncurses.so \ -DKWSYS_LFS_WORKS=YES \ -DLibArchive_INCLUDE_DIR=${PKG_PREFIX}/include \ -DLibArchive_LIBRARY=${PKG_PREFIX}/lib/libarchive.lib.a \ @@ -43,7 +51,9 @@ pkg_cmake_build() { -DLIBLZMA_INCLUDE_DIR=${PKG_PREFIX}/include \ -DLIBLZMA_LIBRARY=${PKG_PREFIX}/lib/liblzma.lib.a \ -DZLIB_INCLUDE_DIR=${PKG_PREFIX}/include \ - -DZLIB_LIBRARY=z ../cmake-${PKG_VERSION}; + -DZLIB_LIBRARY=z \ + ../cmake-${PKG_VERSION}; + unset _pcb_prefix; log_msg info "Calling make..."; make ${DEFAULT_MAKEFLAGS_BUILD}; }; |