git: ce9bbb410c98 - main - cad/opencascade: Fix build with freetype2 2.13.3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Sep 2024 18:59:19 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=ce9bbb410c9818c72e0fc9244b35476a68999bc0 commit ce9bbb410c9818c72e0fc9244b35476a68999bc0 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2024-09-17 18:56:49 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2024-09-17 18:56:53 +0000 cad/opencascade: Fix build with freetype2 2.13.3 PR: 281316 Approved by: portmgr (blanket, build fix) --- cad/opencascade/Makefile | 2 +- cad/opencascade/files/patch-src_StdPrs_StdPrs__BRepFont.cxx | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile index 95688c9d73a7..55438d969124 100644 --- a/cad/opencascade/Makefile +++ b/cad/opencascade/Makefile @@ -1,7 +1,7 @@ PORTNAME= opencascade DISTVERSIONPREFIX= V DISTVERSION= 7_8_1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad science DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} diff --git a/cad/opencascade/files/patch-src_StdPrs_StdPrs__BRepFont.cxx b/cad/opencascade/files/patch-src_StdPrs_StdPrs__BRepFont.cxx new file mode 100644 index 000000000000..38f3e922f4ac --- /dev/null +++ b/cad/opencascade/files/patch-src_StdPrs_StdPrs__BRepFont.cxx @@ -0,0 +1,11 @@ +--- src/StdPrs/StdPrs_BRepFont.cxx.orig 2024-03-31 22:05:22 UTC ++++ src/StdPrs/StdPrs_BRepFont.cxx +@@ -457,7 +457,7 @@ Standard_Boolean StdPrs_BRepFont::renderGlyph (const S + for (short aContour = 0, aStartIndex = 0; aContour < anOutline->n_contours; ++aContour) + { + const FT_Vector* aPntList = &anOutline->points[aStartIndex]; +- const char* aTags = &anOutline->tags[aStartIndex]; ++ const auto* aTags = &anOutline->tags[aStartIndex]; + const short anEndIndex = anOutline->contours[aContour]; + const short aPntsNb = (anEndIndex - aStartIndex) + 1; + aStartIndex = anEndIndex + 1;