git: aa49adc65a51 - main - multimedia/libmediainfo: Fix undefined tfsxml_* symbols

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Dec 2021 19:49:39 UTC
The branch main has been updated by sunpoet:

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

commit aa49adc65a51fff6afe04b2e1b51dc86189af1d2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-12-21 18:55:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-12-21 18:55:04 +0000

    multimedia/libmediainfo: Fix undefined tfsxml_* symbols
    
    - Bump PORTREVISION for package change
    
    PR:             259853
    Reported by:    Johannes Falke <johannesfalke@googlemail.com>
    Obtained from:  https://github.com/MediaArea/MediaInfoLib/commit/e40d91326ab070f88d3e8d194268ce3cd9275028
---
 multimedia/libmediainfo/Makefile                |  1 +
 multimedia/libmediainfo/files/patch-Makefile.am | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/multimedia/libmediainfo/Makefile b/multimedia/libmediainfo/Makefile
index 47a03a98389b..c5c69a9d7434 100644
--- a/multimedia/libmediainfo/Makefile
+++ b/multimedia/libmediainfo/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	libmediainfo
 PORTVERSION=	21.09
+PORTREVISION=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	https://mediaarea.net/download/binary/mediainfo/${PORTVERSION}/ \
 		LOCAL/sunpoet
diff --git a/multimedia/libmediainfo/files/patch-Makefile.am b/multimedia/libmediainfo/files/patch-Makefile.am
new file mode 100644
index 000000000000..c61eb0546025
--- /dev/null
+++ b/multimedia/libmediainfo/files/patch-Makefile.am
@@ -0,0 +1,22 @@
+Obtained from:	https://github.com/MediaArea/MediaInfoLib/commit/e40d91326ab070f88d3e8d194268ce3cd9275028
+
+--- Makefile.am.orig	2021-09-17 08:01:27 UTC
++++ Makefile.am
+@@ -230,7 +230,8 @@ lib@MediaInfoLib_LibName@_la_SOURCES = \
+                        ../../../Source/MediaInfo/Video/File_Vp8.cpp \
+                        ../../../Source/MediaInfo/Video/File_Y4m.cpp \
+                        ../../../Source/MediaInfo/XmlUtils.cpp \
+-                       ../../../Source/MediaInfo/OutputHelpers.cpp
++                       ../../../Source/MediaInfo/OutputHelpers.cpp \
++                       ../../../Source/ThirdParty/tfsxml/tfsxml.c
+ 
+ @MediaInfoLib_LibName@includedir = $(includedir)/MediaInfo
+ @MediaInfoLib_LibName@include_HEADERS = \
+@@ -280,7 +281,6 @@ endif
+ 
+ if COMPILE_TINYXML2
+ lib@MediaInfoLib_LibName@_la_SOURCES += \
+-                       ../../../Source/ThirdParty/tfsxml/tfsxml.c \
+                        ../../../Source/ThirdParty/tinyxml2/tinyxml2.cpp
+ endif
+