git: ee1f930d042d - main - graphics/gd: Unbreak tests

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 16 Mar 2024 01:21:25 UTC
The branch main has been updated by arrowd:

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

commit ee1f930d042d73061cf0874bfce40d4ad14e1d54
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-03-16 01:19:42 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-03-16 01:20:09 +0000

    graphics/gd: Unbreak tests
---
 graphics/gd/Makefile                                   |  2 +-
 graphics/gd/files/patch-tests_fontconfig_Makemodule.am | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/graphics/gd/Makefile b/graphics/gd/Makefile
index 8238fc462852..4ef8e55edc1d 100644
--- a/graphics/gd/Makefile
+++ b/graphics/gd/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libgd
 PORTVERSION=	2.3.3
-PORTREVISION=	9
+PORTREVISION=	10
 PORTEPOCH=	1
 CATEGORIES+=	graphics
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/gd-${PORTVERSION}/
diff --git a/graphics/gd/files/patch-tests_fontconfig_Makemodule.am b/graphics/gd/files/patch-tests_fontconfig_Makemodule.am
new file mode 100644
index 000000000000..35ece1fe06d3
--- /dev/null
+++ b/graphics/gd/files/patch-tests_fontconfig_Makemodule.am
@@ -0,0 +1,12 @@
+https://github.com/libgd/libgd/issues/367#issuecomment-2000499957
+
+--- tests/fontconfig/Makemodule.am.orig	2021-09-11 04:41:44 UTC
++++ tests/fontconfig/Makemodule.am
+@@ -1,5 +1,5 @@
+-if HAVE_LIBFONTCONFIG
+-if HAVE_LIBFREETYPE
++if !HAVE_LIBFONTCONFIG
++if !HAVE_LIBFREETYPE
+ libgd_test_programs += \
+ 	fontconfig/basic
+ endif