git: a0ddecafac49 - main - cad/opencascade740: Fix build with with freetype2 2.13.3

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Tue, 24 Sep 2024 19:04:59 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a0ddecafac493cab9624656bd0ae18d3ca105854

commit a0ddecafac493cab9624656bd0ae18d3ca105854
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-09-24 19:02:34 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-09-24 19:04:41 +0000

    cad/opencascade740: Fix build with with freetype2 2.13.3
    
    Apply same fix as for cad/opencascade
    
    PR:             281316
    Approved by:    portmgr (blanket, build fix)
---
 cad/opencascade740/Makefile                                |  2 +-
 cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/cad/opencascade740/Makefile b/cad/opencascade740/Makefile
index 1113b8b38be1..a5cf3b6e41d8 100644
--- a/cad/opencascade740/Makefile
+++ b/cad/opencascade740/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	opencascade
 PORTVERSION=	7.4.0 # resurrected because science/chrono only builds with opencascade-7.4.0, see https://github.com/projectchrono/chrono/issues/359#issuecomment-1023478083
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	cad science
 PKGNAMESUFFIX=	740
 
diff --git a/cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx b/cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx
new file mode 100644
index 000000000000..8e6a7047eb8d
--- /dev/null
+++ b/cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx
@@ -0,0 +1,11 @@
+--- src/Font/Font_BRepFont.cxx.orig	2024-09-24 18:34:32 UTC
++++ src/Font/Font_BRepFont.cxx
+@@ -430,7 +430,7 @@ Standard_Boolean Font_BRepFont::renderGlyph (const Sta
+   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;