git: 186a4e5fc407 - main - graphics/agg: fix build

From: Dirk Meyer <dinoex_at_FreeBSD.org>
Date: Fri, 01 Nov 2024 19:56:42 UTC
The branch main has been updated by dinoex:

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

commit 186a4e5fc407c29afb12703c8dd7b6ed9dab6b59
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-11-01 19:55:38 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-11-01 19:55:38 +0000

    graphics/agg: fix build
    
    - take maintainership
    MFC: 2024Q4
---
 graphics/agg/Makefile                                         |  4 +---
 graphics/agg/files/patch-font_freetype__agg_font_freetype.cpp | 11 +++++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/graphics/agg/Makefile b/graphics/agg/Makefile
index ea4564830f56..88a4693bc8b3 100644
--- a/graphics/agg/Makefile
+++ b/graphics/agg/Makefile
@@ -6,15 +6,13 @@ MASTER_SITES=	http://distfiles.alpinelinux.org/distfiles/ \
 		http://distfiles.lesslinux.org/ \
 		http://gentoo.netnitco.net/distfiles/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	dinoex@FreeBSD.org
 COMMENT=	High Quality Rendering Engine for C++
 WWW=		http://www.antigrain.com/
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/copying
 
-BROKEN=		Fails to build with freetype2 2.13.3, PR 281321, error: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not
-
 LIB_DEPENDS=	libfreetype.so:print/freetype2
 
 USES=		autoreconf cpe gmake libtool pathfix pkgconfig sdl xorg
diff --git a/graphics/agg/files/patch-font_freetype__agg_font_freetype.cpp b/graphics/agg/files/patch-font_freetype__agg_font_freetype.cpp
new file mode 100644
index 000000000000..2bae296c0829
--- /dev/null
+++ b/graphics/agg/files/patch-font_freetype__agg_font_freetype.cpp
@@ -0,0 +1,11 @@
+--- font_freetype/agg_font_freetype.cpp.orig	2023-08-21 15:51:12 UTC
++++ font_freetype/agg_font_freetype.cpp
+@@ -158,7 +158,7 @@ namespace agg
+ 
+         FT_Vector*  point;
+         FT_Vector*  limit;
+-        char*       tags;
++        unsigned char *tags;
+ 
+         int   n;         // index of contour in outline
+         int   first;     // index of first point in contour