1
0

004-cmake_libdbi_optional.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- a/configure
  2. +++ b/configure
  3. @@ -36,6 +36,7 @@ Usage: ./configure [options]
  4. --with-python=<path> path to Python interpreter
  5. --without-gnapplet disable installation of gnapplet
  6. --without-completion disable installation of bash completion script
  7. +--without-libdbi disable libdbi support
  8. All enable params have their disable counterparts.
  9. @@ -61,6 +62,7 @@ CMAKE_PYTHON=
  10. CMAKE_GNAP=
  11. CMAKE_COMPLETE=
  12. CMAKE_ICONV=
  13. +CMAKE_LIBDBI=
  14. # process command line
  15. while [ "$#" -gt 0 ] ; do
  16. @@ -120,6 +122,9 @@ while [ "$#" -gt 0 ] ; do
  17. --without-completion)
  18. CMAKE_COMPLETE="-DINSTALL_BASH_COMPLETION=OFF"
  19. ;;
  20. + --without-libdbi)
  21. + CMAKE_LIBDBI="-DWITH_LibDBI=OFF"
  22. + ;;
  23. --build=*)
  24. ;;
  25. --disable-dependency-tracking)
  26. @@ -156,4 +161,4 @@ fi
  27. cd "$BUILD_DIR"
  28. # invoke cmake to do configuration
  29. -cmake $SOURCE_DIR $CMAKE_ROOT $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_PYTHON $CMAKE_GNAP $CMAKE_COMPLETE $CMAKE_ICONV
  30. +cmake $SOURCE_DIR $CMAKE_ROOT $CMAKE_PREFIX $CMAKE_SHARED $CMAKE_DEBUG $CMAKE_BACKUP $CMAKE_CROSS $CMAKE_PROTECTION $CMAKE_PYTHON $CMAKE_GNAP $CMAKE_COMPLETE $CMAKE_ICONV $CMAKE_LIBDBI