diff -Naur cmake-2.8.4/Modules/FindGLUT.cmake cmake-2.8.4-haiku/Modules/FindGLUT.cmake
|
old
|
new
|
|
| 46 | 46 | /usr/openwin/include |
| 47 | 47 | /opt/graphics/OpenGL/include |
| 48 | 48 | /opt/graphics/OpenGL/contrib/libglut |
| | 49 | /boot/develop/headers/os/opengl |
| 49 | 50 | ) |
| 50 | 51 | |
| 51 | 52 | FIND_LIBRARY( GLUT_glut_LIBRARY glut |
| 52 | 53 | /usr/openwin/lib |
| | 54 | /boot/develop/lib/x86/ |
| 53 | 55 | ) |
| 54 | | |
| | 56 | IF(NOT BEOS) |
| 55 | 57 | FIND_LIBRARY( GLUT_Xi_LIBRARY Xi |
| 56 | 58 | /usr/openwin/lib |
| 57 | 59 | ) |
| … |
… |
|
| 59 | 61 | FIND_LIBRARY( GLUT_Xmu_LIBRARY Xmu |
| 60 | 62 | /usr/openwin/lib |
| 61 | 63 | ) |
| 62 | | |
| | 64 | ENDIF(NOT BEOS) |
| 63 | 65 | ENDIF (APPLE) |
| 64 | 66 | |
| 65 | 67 | ENDIF (WIN32) |
| … |
… |
|
| 69 | 71 | IF(GLUT_glut_LIBRARY) |
| 70 | 72 | # Is -lXi and -lXmu required on all platforms that have it? |
| 71 | 73 | # If not, we need some way to figure out what platform we are on. |
| | 74 | IF(BEOS) |
| | 75 | SET( GLUT_LIBRARIES |
| | 76 | ${GLUT_glut_LIBRARY} |
| | 77 | ) |
| | 78 | ELSE(BEOS) |
| 72 | 79 | SET( GLUT_LIBRARIES |
| 73 | 80 | ${GLUT_glut_LIBRARY} |
| 74 | 81 | ${GLUT_Xmu_LIBRARY} |
| 75 | 82 | ${GLUT_Xi_LIBRARY} |
| 76 | 83 | ${GLUT_cocoa_LIBRARY} |
| 77 | 84 | ) |
| | 85 | ENDIF(BEOS) |
| 78 | 86 | SET( GLUT_FOUND "YES" ) |
| 79 | 87 | |
| 80 | 88 | #The following deprecated settings are for backwards compatibility with CMake1.4 |
| … |
… |
|
| 84 | 92 | ENDIF(GLUT_glut_LIBRARY) |
| 85 | 93 | ENDIF(GLUT_INCLUDE_DIR) |
| 86 | 94 | |
| | 95 | IF(BEOS) |
| | 96 | MARK_AS_ADVANCED( |
| | 97 | GLUT_INCLUDE_DIR |
| | 98 | GLUT_glut_LIBRARY |
| | 99 | ) |
| | 100 | ELSE(BEOS) |
| 87 | 101 | MARK_AS_ADVANCED( |
| 88 | 102 | GLUT_INCLUDE_DIR |
| 89 | 103 | GLUT_glut_LIBRARY |
| 90 | 104 | GLUT_Xmu_LIBRARY |
| 91 | 105 | GLUT_Xi_LIBRARY |
| 92 | 106 | ) |
| | 107 | ENDIF(BEOS) |
diff -Naur cmake-2.8.4/Modules/FindLua51.cmake cmake-2.8.4-haiku/Modules/FindLua51.cmake
|
old
|
new
|
|
| 57 | 57 | |
| 58 | 58 | IF(LUA_LIBRARY) |
| 59 | 59 | # include the math library for Unix |
| 60 | | IF(UNIX AND NOT APPLE) |
| | 60 | IF(UNIX AND NOT APPLE AND NOT BEOS) |
| 61 | 61 | FIND_LIBRARY(LUA_MATH_LIBRARY m) |
| 62 | 62 | SET( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries") |
| 63 | 63 | # For Windows and Mac, don't need to explicitly include the math library |
| 64 | 64 | ELSE(UNIX AND NOT APPLE) |
| 65 | 65 | SET( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries") |
| 66 | | ENDIF(UNIX AND NOT APPLE) |
| | 66 | ENDIF(UNIX AND NOT APPLE AND NOT BEOS) |
| 67 | 67 | ENDIF(LUA_LIBRARY) |
| 68 | 68 | |
| 69 | 69 | INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) |
diff -Naur cmake-2.8.4/Modules/FindOpenGL.cmake cmake-2.8.4-haiku/Modules/FindOpenGL.cmake
|
old
|
new
|
|
| 80 | 80 | /usr/share/doc/NVIDIA_GLX-1.0/include |
| 81 | 81 | /usr/openwin/share/include |
| 82 | 82 | /opt/graphics/OpenGL/include /usr/X11R6/include |
| | 83 | /boot/develop/headers/os/opengl |
| 83 | 84 | ) |
| 84 | 85 | |
| 85 | 86 | FIND_PATH(OPENGL_xmesa_INCLUDE_DIR GL/xmesa.h |
| … |
… |
|
| 94 | 95 | /usr/openwin/lib |
| 95 | 96 | /usr/shlib /usr/X11R6/lib |
| 96 | 97 | ${HPUX_IA_OPENGL_LIB_PATH} |
| | 98 | /boot/develop/lib/x86/ |
| 97 | 99 | ) |
| 98 | 100 | |
| 99 | 101 | # On Unix OpenGL most certainly always requires X11. |
diff -Naur cmake-2.8.4/bootstrap cmake-2.8.4-haiku/bootstrap
|
old
|
new
|
|
| 142 | 142 | cmake_default_prefix="c:/Program Files/CMake" |
| 143 | 143 | fi |
| 144 | 144 | elif ${cmake_system_haiku}; then |
| 145 | | cmake_default_prefix=`/bin/finddir B_COMMON_DIRECTORY` |
| | 145 | cmake_default_prefix=`finddir B_COMMON_DIRECTORY` |
| | 146 | cmake_man_dir="/documentation/man" |
| | 147 | cmake_doc_dir="/documentation/doc/cmake-${cmake_version}" |
| 146 | 148 | else |
| 147 | 149 | cmake_default_prefix="/usr/local" |
| 148 | 150 | fi |