diff options
| author | Lars Glud <larshg@gmail.com> | 2020-07-02 22:17:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-02 13:17:26 -0700 |
| commit | 2ad4074aea2415e962153544ca942942e7d52323 (patch) | |
| tree | 10fb1fe259bc6bf88bde3ddbefe1d178eb4f1da2 | |
| parent | 8133cef324060667d59949549eb4cdcf60b6699b (diff) | |
| download | vcpkg-2ad4074aea2415e962153544ca942942e7d52323.tar.gz vcpkg-2ad4074aea2415e962153544ca942942e7d52323.zip | |
[vtk] Added opengl feature. (#11399)
* Added opengl feature.
Change description of feature: all.
* Fix copyright
| -rw-r--r-- | ports/vtk/CONTROL | 6 | ||||
| -rw-r--r-- | ports/vtk/portfile.cmake | 16 |
2 files changed, 19 insertions, 3 deletions
diff --git a/ports/vtk/CONTROL b/ports/vtk/CONTROL index 0e494fe6d..512d46e48 100644 --- a/ports/vtk/CONTROL +++ b/ports/vtk/CONTROL @@ -36,6 +36,10 @@ Feature: cuda Description: Support CUDA compilation Build-Depends: cuda +Feature: opengl +Description: All opengl related modules +Build-Depends: vtk[core] + Feature: all -Description: Build vtk modules required by paraview +Description: Build all vtk modules Build-Depends: libmysql, ffmpeg, gdal, vtk[core, qt, python, mpi], vtk[core, atlmfc] (windows)
\ No newline at end of file diff --git a/ports/vtk/portfile.cmake b/ports/vtk/portfile.cmake index 09c997f7a..58b715cb9 100644 --- a/ports/vtk/portfile.cmake +++ b/ports/vtk/portfile.cmake @@ -71,6 +71,19 @@ if("mpi" IN_LIST FEATURES) ) endif() +if("opengl" IN_LIST FEATURES) + list(APPEND ADDITIONAL_OPTIONS + -DVTK_MODULE_ENABLE_VTK_DomainsChemestryOpenGL2=YES + -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2=YES + -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2=YES + -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2=YES + -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2=YES + -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2=YES + -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2=YES + -DVTK_MODULE_ENABLE_VTK_opengl=YES + ) +endif() + if("all" IN_LIST FEATURES) list(APPEND ADDITIONAL_OPTIONS -DVTK_USE_TK=OFF # TCL/TK currently not included in vcpkg @@ -247,8 +260,7 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) # ============================================================================= # Handle copyright -file(COPY ${SOURCE_PATH}/Copyright.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/vtk) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/vtk/Copyright.txt ${CURRENT_PACKAGES_DIR}/share/vtk/copyright) +file(INSTALL ${SOURCE_PATH}/Copyright.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/vtk") |
