git: 2d0b8e96b0a3 - main - multimedia/mythtv: Fix build and ports going backwards

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Fri, 30 Sep 2022 10:09:30 UTC
The branch main has been updated by fernape:

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

commit 2d0b8e96b0a3ab73de083d90e2df4a7558bb03cf
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2022-09-29 06:14:27 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-09-30 10:05:52 +0000

    multimedia/mythtv: Fix build and ports going backwards
    
    PR:             266671
    Reported by:    ahicks@p-o.co.uk (maintainer)
---
 multimedia/mythtv/Makefile              |  2 +-
 multimedia/mythtv/files/patch-configure | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile
index da759224ad73..9de9fb51153c 100644
--- a/multimedia/mythtv/Makefile
+++ b/multimedia/mythtv/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	mythtv
 DISTVERSIONPREFIX=	v
 DISTVERSION=	32.0-60
 DISTVERSIONSUFFIX=	-ge5c974e402
-PORTREVISION=	1
+PORTREVISION=	4
 PORTEPOCH=	1
 CATEGORIES=	multimedia
 
diff --git a/multimedia/mythtv/files/patch-configure b/multimedia/mythtv/files/patch-configure
new file mode 100644
index 000000000000..9f829109ec11
--- /dev/null
+++ b/multimedia/mythtv/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure  2022-09-02 15:59:37.029607000 +0100
++++ work/mythtv-32.0-60-ge5c974e402/mythtv/configure   2022-09-02 16:15:16.034232000 +0100
+@@ -7786,7 +7786,7 @@
+ fi
+ 
+ if enabled freetype2; then
+-    echo "FREETYPE_CFLAGS=$($pkg_config --cflags $pkg_config_flags freetype2)" >> $TMPMAK
++    echo "FREETYPE_CFLAGS=$($pkg_config --cflags $pkg_config_flags freetype2 |awk '{print $1, $2}')" >> $TMPMAK
+     echo "FREETYPE_LIBS=$($pkg_config --libs $pkg_config_flags freetype2)" >> $TMPMAK
+ fi
+