summaryrefslogtreecommitdiffhomepage
path: root/vars/cmake.vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-05-12 22:10:38 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-05-12 22:10:38 +0100
commitb9a71579b82cd54980ff641af504bc8ad96473b1 (patch)
treee8dc1e7f2044995415ae2e21e67a60da7fe9a13b /vars/cmake.vars
parentb7c3731e3e4104b444a0061ba4505b9bbb533906 (diff)
downloadmidipix_build-b9a71579b82cd54980ff641af504bc8ad96473b1.tar.bz2
midipix_build-b9a71579b82cd54980ff641af504bc8ad96473b1.tar.xz
Implements CMake support.
etc/README.md: updated. groups/{000.host_tools,010.host_deps,200.native_packages,800.minipix}.group:${*_SOFORT_NATIVE_{C,CXX,LD}FLAGS}: merged into midipix.env. groups/010.host_deps.group:{clang,cmake_host,libzip,llvm}_host:${PKG_CMAKE_ARGS_EXTRA}: added. groups/010.host_deps.group:cmake_host:${PKG_CONFIGURE_TYPE}: configure w/ cmake. groups/010.host_deps.group:cmake_host:${PKG_INSTALL_FILES}: added. groups/010.host_deps.group:expat_host:${PKG_CONFIGURE_TYPE}: configure w/ autotools. groups/010.host_deps.group:python[23]_host:${PKG_{ENV_VARS_EXTRA,SOFORT_FORCE}}: removed. groups/010.host_deps.group:python[23]_host:${PKG_CONFIGURE_TYPE}: configure w/ sofort. groups/010.host_deps.group:python[23]_host:${PKG_SOFORT_NATIVE_CC}: removed. groups/221.native_packages_dev.group:python[23]:${PKG_SOFORT_FORCE}: removed. groups/221.native_packages_dev.group:python[23]:${PKG_CONFIGURE_TYPE}: configure w/ sofort. groups/231.native_packages_etc.group:{cmake,minizip,openjpeg,tdnf,xpdf}:${PKG_CMAKE_ARGS_EXTRA}: added. groups/231.native_packages_etc.group:cmake:${PKG_CONFIGURE_ARGS}: removed. groups/231.native_packages_etc.group:utf8proc:${PKG_IN_TREE}: don't build in-tree. groups/251.native_packages_lib.group:lib{jpeg_turbo,solv,ssh,zip}:${PKG_CMAKE_ARGS_EXTRA}: added. midipix.env:${DEFAULT_BUILD_VARS}: adds ${PKG_{CMAKE{,_{ARGS{,_EXTRA},LISTFILE}},CONFIGURE_TYPE},SOFORT_NATIVE_{C{C,XX},{C,CXX,LD}FLAGS,LD}}. midipix.env:${DEFAULT_BUILD_VARS}: removes ${PKG_SOFORT_FORCE}. midipix.env:${DEFAULT_{CMAKE_LISTFILE,{CROSS,HOST,NATIVE}_CMAKE}}: added. subr.rtl/rtl_complex.subr:rtl_export_vars(): ignore values during -u. subr.rtl/rtl_platform.subr:rtl_set_vars(): updated. subr/ex_pkg_env.subr:exp_pkg_env_set(): always convert ${PKG_{AR,CC,CXX,PKG_CONFIG,RANLIB}} to absolute pathnames. subr/ex_pkg_env.subr:ex_pkg_env_sofort(): merged into subr/pkg_configure.subr. subr/ex_pkg_restart.subr:ex_pkg_process_restart_spec(): remove extraneous echo. subr/pkg_configure.subr:pkgp_configure_{cmake,sofort}(): initial implementation. subr/pkg_configure.subr:pkg_configure(): attempt configuration using autotools, sofort, or cmake. subr/pkg_configure_autotools.subr: skip if ${PKG_CONFIGURE_TYPE} is set and not "autotools". subr/pkg_fetch_clean.subr: fix typo. vars/{clang_host,cmake{,_host},lib{jpeg_turbo,solv,ssh,zip{,_host}},llvm_host,lolcode,minizip,openjpeg,tdnf,xpdf}.vars: deleted.
Diffstat (limited to 'vars/cmake.vars')
-rw-r--r--vars/cmake.vars63
1 files changed, 0 insertions, 63 deletions
diff --git a/vars/cmake.vars b/vars/cmake.vars
deleted file mode 100644
index df190732..00000000
--- a/vars/cmake.vars
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_cmake_configure() {
- if ! rtl_fileop cp "${PREFIX}/share/cmake-${PKG_VERSION%.*}/Modules/Platform/BSDOS.cmake" \
- "${PREFIX}/share/cmake-${PKG_VERSION%.*}/Modules/Platform/Midipix.cmake" \
- || ! rtl_fileop rm config.cache \
- || ! 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_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
- -DCMAKE_INSTALL_PREFIX= \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DCMAKE_SYSTEM_NAME=Midipix \
- -DCMAKE_USE_SYSTEM_BZIP2=ON \
- -DCMAKE_USE_SYSTEM_CURL=ON \
- -DCMAKE_USE_SYSTEM_EXPAT=OFF \
- -DCMAKE_USE_SYSTEM_LIBARCHIVE=ON \
- -DCMAKE_USE_SYSTEM_LIBUV=ON \
- -DCMAKE_USE_SYSTEM_ZLIB=ON \
- -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.lib.a" \
- -DKWSYS_LFS_WORKS=YES \
- -DLibArchive_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLibArchive_LIBRARY="${PKG_PREFIX}/lib/libarchive.lib.a" \
- -DLIBLZMA_HAS_AUTO_DECODER=YES \
- -DLIBLZMA_HAS_EASY_ENCODER=YES \
- -DLIBLZMA_HAS_LZMA_PRESET=YES \
- -DLIBLZMA_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLIBLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a" \
- -DLibUV_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLibUV_LIBRARY="${PKG_PREFIX}/lib/libuv.1.0.0.lib.a" \
- -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a" \
- "../cmake-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-pkg_cmake_install_make_pre() {
- if [ ! -e cmake_install.cmake.orig ]; then
- sed -i.orig '/^\s*set(CMAKE_INSTALL_PREFIX ".*")$/s/".*"/""/' \
- cmake_install.cmake;
- fi;
-};
-
-pkg_cmake_host_configure() {
- if ! rtl_fileop rm config.cache \
- || ! cmake -DCURSES_NCURSES_LIBRARY="${PKG_PREFIX}/lib/libncurses.so" "../cmake-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-pkg_cmake_host_install_make_pre() {
- pkg_cmake_install_make_pre;
-};
-
-# vim:filetype=sh textwidth=0