[Kde-games-devel] Build patch
Anne-Marie Mahfouf
annemarie.mahfouf at free.fr
Tue May 17 13:35:17 CEST 2011
Hi,
OpenAL not found means that nothing can be built currently in kdegames svn
trunk module.
Here is a patch that makes it better i.e. disable the games requiring it
without stopping everything to be built.
I am not a CMake guru though so I don't want to commit without people looking
into it!
Thanks a lot,
Anne-Marie
Index: granatier/CMakeLists.txt
===================================================================
--- granatier/CMakeLists.txt (révision 1232434)
+++ granatier/CMakeLists.txt (copie de travail)
@@ -7,8 +7,6 @@
include_directories(${KDE4_INCLUDES})
endif (NOT KDE4_FOUND)
-find_package(OpenAL REQUIRED)
-macro_log_feature(OPENAL_FOUND "OpenAL" "OpenAL (Open Audio Library) is a
free software cross-platform audio API."
"http://connect.creativelabs.com/openal" TRUE "" "Granatier uses OpenAL for
sound output.")
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
find_package(SndFile REQUIRED)
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (révision 1232434)
+++ CMakeLists.txt (copie de travail)
@@ -21,6 +21,7 @@
macro_log_feature(OPENGL_FOUND "OpenGL" "API for developing portable,
interactive 2D and 3Dgraphics applications" "http://mesa3d.sourceforge.net"
FALSE "" "Kubrick will not be built and KSudoku will not have Roxdoku support
without OpenGL.")
macro_log_feature(QT_QTOPENGL_FOUND "QtOpenGL" "Qt module that make it easy
to use OpenGL in Qt apps" "http://doc.trolltech.com/latest/qtopengl.html"
FALSE "" "Kubrick will not be built and KSudoku will not have Roxdoku support
without QtOpenGL.")
+macro_log_feature(OPENAL_FOUND "OpenAL" "OpenAL (Open Audio Library) is a
free software cross-platform audio API."
"http://connect.creativelabs.com/openal" FALSE "" "KGoldrunner needs OpenAL
for sound output. If OpenAL cannot be provided on some platform or
distribution, please email the author of KGoldrunner <iandw dot au at gmail
dot com>.")
macro_optional_find_package(PythonInterp)
macro_log_feature(PYTHONINTERP_FOUND "Python" "Programming language that lets
you work more quickly and integrate your systems more effectively."
"http://python.org" FALSE "" "Kajongg will not be built without the python
interpreter (version 2.6 < 3.0).")
@@ -51,7 +52,6 @@
macro_optional_add_subdirectory(bomber)
macro_optional_add_subdirectory(bovo)
-macro_optional_add_subdirectory(granatier)
macro_optional_add_subdirectory(lskat)
macro_optional_add_subdirectory(kapman)
macro_optional_add_subdirectory(katomic)
@@ -62,7 +62,10 @@
macro_optional_add_subdirectory(kbreakout)
macro_optional_add_subdirectory(kdiamond)
macro_optional_add_subdirectory(kfourinline)
+if(OPENAL_FOUND)
macro_optional_add_subdirectory(kgoldrunner)
+macro_optional_add_subdirectory(granatier)
+endif(OPENAL_FOUND)
macro_optional_add_subdirectory(killbots)
macro_optional_add_subdirectory(kigo)
macro_optional_add_subdirectory(kiriki)
Index: kgoldrunner/CMakeLists.txt
===================================================================
--- kgoldrunner/CMakeLists.txt (révision 1232434)
+++ kgoldrunner/CMakeLists.txt (copie de travail)
@@ -1,9 +1,8 @@
project(kgoldrunner)
# macro_optional_find_package(OpenAL QUIET)
-find_package(OpenAL REQUIRED)
-macro_log_feature(OPENAL_FOUND "OpenAL" "OpenAL (Open Audio Library) is a
free software cross-platform audio API."
"http://connect.creativelabs.com/openal" FALSE "" "KGoldrunner needs OpenAL
for sound output. If OpenAL cannot be provided on some platform or
distribution, please email the author of KGoldrunner <iandw dot au at gmail
dot com>.")
+
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
# macro_optional_find_package(SndFile )
find_package(SndFile REQUIRED)
More information about the kde-games-devel
mailing list