diff options
author | gahr <gahr@FreeBSD.org> | 2012-03-12 15:56:44 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2012-03-12 15:56:44 +0800 |
commit | 5cba9ab2508fb40efffab20687a9e54bdb15f0c0 (patch) | |
tree | f07d4c92425ca8ff82954db2207e11920d8a2586 /math/vtk5 | |
parent | 0ccae1f69e9ace9e81c50d5805bcb28f8f44f0de (diff) | |
download | freebsd-ports-gnome-5cba9ab2508fb40efffab20687a9e54bdb15f0c0.tar.gz freebsd-ports-gnome-5cba9ab2508fb40efffab20687a9e54bdb15f0c0.tar.zst freebsd-ports-gnome-5cba9ab2508fb40efffab20687a9e54bdb15f0c0.zip |
- Do not link against / depend upon libGL when building with OSMesa
Feature safe: yes
Diffstat (limited to 'math/vtk5')
-rw-r--r-- | math/vtk5/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/math/vtk5/Makefile b/math/vtk5/Makefile index 3ad31f3938ef..f839a066b8ae 100644 --- a/math/vtk5/Makefile +++ b/math/vtk5/Makefile @@ -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) |