git: 2b228ba1a5ff - main - sysutils/mtpfs: Fix build with libmad 0.16

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Fri, 06 May 2022 23:38:18 UTC
The branch main has been updated by diizzy:

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

commit 2b228ba1a5ff1ec866f20fa45e2e6905abe50f65
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-05-06 23:33:31 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-05-06 23:34:31 +0000

    sysutils/mtpfs: Fix build with libmad 0.16
    
    Filename for for libmad's pc file is now libmad.pc
    
    Reported by:    vishwin
    Approved by:    portmgr (blanket)
---
 sysutils/mtpfs/files/patch-configure.ac | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sysutils/mtpfs/files/patch-configure.ac b/sysutils/mtpfs/files/patch-configure.ac
new file mode 100644
index 000000000000..a6bbcdd5db1a
--- /dev/null
+++ b/sysutils/mtpfs/files/patch-configure.ac
@@ -0,0 +1,11 @@
+--- configure.ac.orig	2022-05-06 23:16:39 UTC
++++ configure.ac
+@@ -22,7 +22,7 @@ AC_ARG_ENABLE([mad],
+     [AS_HELP_STRING([--disable-mad], [disable libmad handling of mp3 files])])
+ 
+ AS_IF([test "x$enable_mad" != "xno"] , [
+-    PKG_CHECK_MODULES(MAD, mad >= 0.15 \
++    PKG_CHECK_MODULES(MAD, libmad >= 0.15 \
+                            id3tag >= 0.15)
+     AC_SUBST(MAD_CFLAGS)
+     AC_SUBST(MAD_LIBS)