Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Korijn committed Jul 11, 2016
1 parent f3bafe7 commit ca14861
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@
# building against osmesa or not
CONDA_LST=`conda list`
if [ `uname` = "Darwin" ]; then
SCREEN_ARGS="-DVTK_USE_X:BOOL=OFF -DVTK_USE_COCOA:BOOL=ON -DVTK_USE_CARBON:BOOL=OFF"
# FIXME something makes this end up single quoted on darwin... not sure how to resolve
SCREEN_ARGS="-DVTK_USE_X:BOOL=OFF \
-DVTK_USE_COCOA:BOOL=ON \
-DVTK_USE_CARBON:BOOL=OFF"
elif [[ ${CONDA_LST}'y' == *'osmesa'* ]]; then
SCREEN_ARGS="-DVTK_USE_X:BOOL=OFF -DVTK_OPENGL_HAS_OSMESA:BOOL=ON -DOPENGL_INCLUDE_DIR:PATH=${PREFIX}/include -DOPENGL_gl_LIBRARY:FILEPATH=${PREFIX}/lib/libOSMesa.so -DOPENGL_glu_LIBRARY:FILEPATH=${PREFIX}/lib/libGLU.so -DOSMESA_INCLUDE_DIR:PATH=${PREFIX}/include -DOSMESA_LIBRARY:FILEPATH=${PREFIX}/lib/libOSMesa.so"
SCREEN_ARGS="-DVTK_USE_X:BOOL=OFF \
-DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
-DOPENGL_INCLUDE_DIR:PATH=${PREFIX}/include \
-DOPENGL_gl_LIBRARY:FILEPATH=${PREFIX}/lib/libOSMesa.so \
-DOPENGL_glu_LIBRARY:FILEPATH=${PREFIX}/lib/libGLU.so \
-DOSMESA_INCLUDE_DIR:PATH=${PREFIX}/include \
-DOSMESA_LIBRARY:FILEPATH=${PREFIX}/lib/libOSMesa.so"
else
SCREEN_ARGS="-DVTK_USE_X:BOOL=ON"
fi
Expand Down

0 comments on commit ca14861

Please sign in to comment.