- Do not link against / depend upon libGL when building with OSMesa

Feature safe:	yes
This commit is contained in:
Pietro Cerutti 2012-03-12 07:56:44 +00:00
parent e5f8126f20
commit fc2e0de62e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293158

View file

@ -30,7 +30,6 @@ CONFLICTS= vtk-4*
SUB_FILES= vtk.3
USE_CMAKE= yes
USE_GL= yes
USE_XORG= xt
USE_LDCONFIG= ${PREFIX}/lib/vtk-${PORTVERSION:R}
MAKE_JOBS_SAFE= yes
@ -109,7 +108,11 @@ PLIST_SUB+= GL2PS="@comment "
LIB_DEPENDS+= OSMesa32.8:${PORTSDIR}/graphics/libosmesa
CMAKE_ARGS+= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
-DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \
-DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so
-DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so \
-DOPENGL_gl_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa32.so \
-DOPENGL_glu_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSGLU.so
.else
USE_GL= yes
.endif
.if defined(WITH_QT)