vtk: patch to replace use of FT_CALLBACK_DEF (#24238)

This commit is contained in:
Tom Payerle 2021-06-17 06:19:23 -04:00 committed by GitHub
parent eac757da8c
commit b8ad621907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,6 +109,12 @@ class Vtk(CMakePackage):
# For finding Fujitsu-MPI wrapper commands
patch('find_fujitsu_mpi.patch', when='@:8.2.0%fj')
# Freetype@2.10.3 no longer exports FT_CALLBACK_DEF, this
# patch replaces FT_CALLBACK_DEF with simple extern "C"
# See https://gitlab.kitware.com/vtk/vtk/-/issues/18033
patch('https://gitlab.kitware.com/vtk/vtk/uploads/c6fa799a1a028b8f8a728a40d26d3fec/vtk-freetype-2.10.3-replace-FT_CALLBACK_DEF.patch',
sha256='eefda851f844e8a1dfb4ebd8a9ff92d2b78efc57f205774052c5f4c049cc886a',
when='^freetype@2.10.3:')
def url_for_version(self, version):
url = "http://www.vtk.org/files/release/{0}/VTK-{1}.tar.gz"