Commit 0b0f125d authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Add `OpenGL Utility (GLU)`.

This is needed for certain components in ParaView (VisitBridge GMV
reader), when mesa is enabled.
parent 0120a379
......@@ -67,6 +67,7 @@ function (superbuild_find_projects var)
catalyst
egl
fontconfig
glu
llvm
mesa
osmesa
......@@ -140,6 +141,7 @@ function (superbuild_sanity_check)
if (paraview_enabled AND catalyst_enabled)
message(SEND_ERROR "Cannot enable ParaView and Catalyst at the same time.")
endif ()
endfunction ()
function (superbuild_add_packaging)
......
......@@ -85,7 +85,7 @@ set(paraviews_platform_dependencies)
if (UNIX)
if (NOT APPLE)
list(APPEND paraviews_platform_dependencies
mesa osmesa egl
mesa osmesa egl glu
# Needed for fonts to work properly.
fontconfig)
......
if (BUILD_SHARED_LIBS)
set(glu_flags --disable-static --enable-shared)
set(glu_library libGLU.so)
else ()
set(glu_flags --enable-static --disable-shared)
set(glu_library libGLU.a)
endif ()
superbuild_add_project(glu
CAN_USE_SYSTEM
DEPENDS_OPTIONAL mesa
CONFIGURE_COMMAND
<SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
${glu_flags}
BUILD_COMMAND
$(MAKE)
INSTALL_COMMAND
make install
BUILD_IN_SOURCE 1)
superbuild_add_extra_cmake_args(
-DOPENGL_glu_LIBRARY:FILEPATH=<INSTALL_DIR>/lib/${glu_library})
# Make a dummy visitbridge project so that the user can enable or disable
# building paraview with bridge support
superbuild_add_dummy_project(visitbridge
DEPENDS boost)
DEPENDS boost glu)
......@@ -12,6 +12,10 @@ superbuild_set_revision(osmesa
${mesa_revision})
unset(mesa_revision)
superbuild_set_revision(glu
URL "http://www.paraview.org/files/dependencies/glu-9.0.0.tar.gz"
URL_MD5 bbc57d4fe3bd3fb095bdbef6fcb977c4)
superbuild_set_revision(adios
URL "http://www.paraview.org/files/dependencies/adios-1.8-439f0fb6.tar.bz2"
URL_MD5 a88701c77a7ead5daadd8d8aff70556a)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment