git: 1872de52adea - main - multimedia/mpv: unbreak without X11/Wayland after 628ae700cef8

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 22 Nov 2023 19:03:12 UTC
The branch main has been updated by jbeich:

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

commit 1872de52adeaabd3a7bc1d5797c4e5cc3b75ab86
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-11-22 18:59:44 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-11-22 19:02:22 +0000

    multimedia/mpv: unbreak without X11/Wayland after 628ae700cef8
    
    ld: error: undefined symbol: mp_present_initialize
    >>> referenced by drm_common.c
    >>>               libmpv.so.2.2.0.p/video_out_drm_common.c.o:(vo_drm_init)
    
    ld: error: undefined symbol: present_sync_update_values
    >>> referenced by drm_common.c
    >>>               libmpv.so.2.2.0.p/video_out_drm_common.c.o:(drm_pflip_cb)
    
    ld: error: undefined symbol: present_sync_swap
    >>> referenced by drm_common.c
    >>>               libmpv.so.2.2.0.p/video_out_drm_common.c.o:(drm_pflip_cb)
    
    ld: error: undefined symbol: present_sync_get_info
    >>> referenced by vo_drm.c
    >>>               libmpv.so.2.2.0.p/video_out_vo_drm.c.o:(get_vsync)
    
    Reported by:    olgeni
---
 multimedia/mpv/Makefile | 3 +++
 multimedia/mpv/distinfo | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index 1b99e9831054..c6e291359d55 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -4,6 +4,9 @@ DISTVERSION=	0.37.0
 PORTEPOCH=	1
 CATEGORIES=	multimedia audio
 
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+=	f4cc236a641e.patch:-p1 # https://github.com/mpv-player/mpv/pull/12941
+
 MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	Free and open-source general-purpose video player
 WWW=		https://mpv.io
diff --git a/multimedia/mpv/distinfo b/multimedia/mpv/distinfo
index 6ccb8f5579e7..cc42a2fd2981 100644
--- a/multimedia/mpv/distinfo
+++ b/multimedia/mpv/distinfo
@@ -1,3 +1,5 @@
 TIMESTAMP = 1700592466
 SHA256 (mpv-player-mpv-v0.37.0_GH0.tar.gz) = 1d2d4adbaf048a2fa6ee134575032c4b2dad9a7efafd5b3e69b88db935afaddf
 SIZE (mpv-player-mpv-v0.37.0_GH0.tar.gz) = 3384190
+SHA256 (f4cc236a641e.patch) = e1886fa659b73bf5ece8976239e04d4f1922b4ef5fb07c42c9d2690043330fb9
+SIZE (f4cc236a641e.patch) = 1444