git: f4f03804c435 - main - multimedia/mpv: update to 0.36.0

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 18:12:07 UTC
The branch main has been updated by jbeich:

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

commit f4f03804c4359255533dcb27f79cee744b68055c
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-23 17:10:36 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-23 18:11:09 +0000

    multimedia/mpv: update to 0.36.0
    
    Changes:        https://github.com/mpv-player/mpv/releases/tag/v0.36.0
    Reported by:    GitHub (watch releases)
---
 multimedia/mpv/Makefile  | 21 +++++++++------------
 multimedia/mpv/distinfo  | 16 +++++-----------
 multimedia/mpv/pkg-plist |  2 +-
 3 files changed, 15 insertions(+), 24 deletions(-)

diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index d101d0231143..436ca625967c 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -1,15 +1,11 @@
 PORTNAME=	mpv
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.35.1
-PORTREVISION=	5
+DISTVERSION=	0.36.0
 PORTEPOCH=	1
 CATEGORIES=	multimedia audio
 
 PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
-PATCHFILES+=	b95111dda879.patch:-p1 # https://github.com/mpv-player/mpv/pull/10871
-PATCHFILES+=	94c189dae76b.patch:-p1 # https://github.com/mpv-player/mpv/pull/11398
-PATCHFILES+=	362256edbc4f.patch:-p1 # https://github.com/mpv-player/mpv/pull/11398
-PATCHFILES+=	3a2f8d42ab20.patch:-p1 # https://github.com/mpv-player/mpv/pull/11447
+PATCHFILES+=	9c97f6ebccaa.patch:-p1 # https://github.com/mpv-player/mpv/pull/10871
 
 MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	Free and open-source general-purpose video player
@@ -35,7 +31,7 @@ MESON_ARGS=	--auto-features=auto \
 		-Dshaderc=disabled \
 		-Dlibmpv=true
 
-OPTIONS_DEFINE=		ARCHIVE DOCS LCMS2 MANPAGES MUJS RUBBERBAND TEST UCHARDET EXAMPLES ZIMG
+OPTIONS_DEFINE=		ARCHIVE DOCS LCMS2 MANPAGES MUJS RUBBERBAND UCHARDET EXAMPLES ZIMG
 OPTIONS_DEFAULT=	ARCHIVE DVDNAV LCMS2 LUAJIT MANPAGES NVDEC OPENGL UCHARDET \
 			V4L VAAPI VDPAU VULKAN WAYLAND X11 YTDLP
 OPTIONS_GROUP=		IN VO AO
@@ -138,8 +134,6 @@ SIXEL_MESON_ENABLED=		sixel
 SNDIO_LIB_DEPENDS=		libsndio.so:audio/sndio
 SNDIO_MESON_ENABLED=		sndio
 
-TEST_MESON_TRUE=		tests
-
 UCHARDET_LIB_DEPENDS=		libuchardet.so:textproc/uchardet
 UCHARDET_MESON_ENABLED=		uchardet
 
@@ -195,8 +189,11 @@ post-patch-MANPAGES-on:
 	@${FIND} ${WRKSRC}/DOCS/man -name '*.rst' | ${XARGS} ${REINPLACE_CMD} \
 		-e 's|/usr/local|${PREFIX}|g'
 
-pre-install-TEST-on:
-	@(cd ${WRKSRC} && ${SETENV} ${TEST_ENV} \
-		${MESON_BUILD_DIR}/${PORTNAME} --unittest=all-simple)
+pre-test:
+	@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \
+		${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \
+		${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dtests=true"; \
+		${TOUCH} ${WRKDIR}/.meson_build_tests; \
+	fi
 
 .include <bsd.port.mk>
diff --git a/multimedia/mpv/distinfo b/multimedia/mpv/distinfo
index 3bec5e8f408f..95c6605158ec 100644
--- a/multimedia/mpv/distinfo
+++ b/multimedia/mpv/distinfo
@@ -1,11 +1,5 @@
-TIMESTAMP = 1674924587
-SHA256 (mpv-player-mpv-v0.35.1_GH0.tar.gz) = 41df981b7b84e33a2ef4478aaf81d6f4f5c8b9cd2c0d337ac142fc20b387d1a9
-SIZE (mpv-player-mpv-v0.35.1_GH0.tar.gz) = 3367913
-SHA256 (b95111dda879.patch) = c70c62f01d65c701a161954ef480d60aa8cc19454f9e04c4c61ef115cd4f75b2
-SIZE (b95111dda879.patch) = 1474
-SHA256 (94c189dae76b.patch) = c6e2b219f448f0711033c5618854fc4c323f0860cdc268e01f61015f9ec79757
-SIZE (94c189dae76b.patch) = 1151
-SHA256 (362256edbc4f.patch) = 5e048085eb1ac3bf6f81c99daf471177a5cad1100be84fe2a5a7436687bc81e1
-SIZE (362256edbc4f.patch) = 1587
-SHA256 (3a2f8d42ab20.patch) = 6c0c25936b3aff93a1505e8de92d107fd49a096b441cc90492203893f5bad39e
-SIZE (3a2f8d42ab20.patch) = 2058
+TIMESTAMP = 1690132236
+SHA256 (mpv-player-mpv-v0.36.0_GH0.tar.gz) = 29abc44f8ebee013bb2f9fe14d80b30db19b534c679056e4851ceadf5a5e8bf6
+SIZE (mpv-player-mpv-v0.36.0_GH0.tar.gz) = 3409178
+SHA256 (9c97f6ebccaa.patch) = 474a04526f675cf15963d4ba5513c8d5138af3a416151746787ba281a61c45d5
+SIZE (9c97f6ebccaa.patch) = 1472
diff --git a/multimedia/mpv/pkg-plist b/multimedia/mpv/pkg-plist
index 6ab66311ca1b..076e15af8bd2 100644
--- a/multimedia/mpv/pkg-plist
+++ b/multimedia/mpv/pkg-plist
@@ -6,7 +6,7 @@ include/mpv/render_gl.h
 include/mpv/stream_cb.h
 lib/libmpv.so
 lib/libmpv.so.2
-lib/libmpv.so.2.0.0
+lib/libmpv.so.2.1.0
 libdata/pkgconfig/mpv.pc
 %%MANPAGES%%man/man1/mpv.1.gz
 share/applications/mpv.desktop