0001-optionally-enable-OpenGL.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 9b37ca152cbae4b86ce2b93f7b1af58f092d1ccf Mon Sep 17 00:00:00 2001
  2. From: Kevin Mihelich <kevin@archlinuxarm.org>
  3. Date: Tue, 5 Jul 2016 18:47:56 -0600
  4. Subject: [PATCH] optionally enable OpenGL
  5. Signed-off-by: Kevin Mihelich <kevin@archlinuxarm.org>
  6. ---
  7. CMakeLists.txt | 3 ++-
  8. 1 file changed, 2 insertions(+), 1 deletion(-)
  9. diff --git a/CMakeLists.txt b/CMakeLists.txt
  10. index 89e0682..b60d0b4 100644
  11. --- a/CMakeLists.txt
  12. +++ b/CMakeLists.txt
  13. @@ -105,6 +105,7 @@ option(ENABLE_KFILEMETADATASUPPORT "Build digiKam with KDE files indexer suppor
  14. option(ENABLE_AKONADICONTACTSUPPORT "Build digiKam with KDE Mail Contacts support (default=OFF)" OFF)
  15. option(ENABLE_MEDIAPLAYER "Build digiKam with Media Player support (default=OFF)" OFF)
  16. option(ENABLE_DBUS "Build digiKam with DBUS support (default=ON)" ON)
  17. +option(ENABLE_OPENGL "Build digiKam with OpenGL support (default=ON)" ON)
  18. option(ENABLE_APPSTYLES "Build digiKam with support for changing the widget application style (default=OFF)" OFF)
  19. # Mysql support options (experimental):
  20. @@ -293,7 +294,7 @@ else()
  21. endif()
  22. # decide if Presentation tool can be built with OpenGL
  23. -if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND Qt5OpenGL_FOUND)
  24. +if(OPENGL_FOUND AND OPENGL_GLU_FOUND AND Qt5OpenGL_FOUND AND ENABLE_OPENGL)
  25. set(HAVE_OPENGL TRUE)
  26. elseif()
  27. set(HAVE_OPENGL FALSE)
  28. --
  29. 2.10.2