- Do not link against / depend upon libGL when building with OSMesa
Feature safe: yes
This commit is contained in:
parent
e5f8126f20
commit
fc2e0de62e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293158
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue