git: a73e58c372d0 - main - graphics/movit: Update to 1.7.1

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Fri, 01 Nov 2024 00:44:09 UTC
The branch main has been updated by jhale:

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

commit a73e58c372d0bb09f8db0ebe91ba229e473869cf
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-10-31 22:36:11 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-10-31 23:59:18 +0000

    graphics/movit: Update to 1.7.1
    
    - Take maintainership
    - Add support for regression tests
    - Simplify PORTDOCS install
---
 graphics/movit/Makefile  | 30 ++++++++++++++++--------------
 graphics/movit/distinfo  |  6 +++---
 graphics/movit/pkg-plist | 47 +----------------------------------------------
 3 files changed, 20 insertions(+), 63 deletions(-)

diff --git a/graphics/movit/Makefile b/graphics/movit/Makefile
index 96d47d5b97c9..7862bd5441cb 100644
--- a/graphics/movit/Makefile
+++ b/graphics/movit/Makefile
@@ -1,10 +1,9 @@
 PORTNAME=	movit
-PORTVERSION=	1.6.3
-PORTREVISION=	1
+PORTVERSION=	1.7.1
 CATEGORIES=	graphics
 MASTER_SITES=	http://${PORTNAME}.sesse.net/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	jhale@FreeBSD.org
 COMMENT=	High-performance video filters for the GPU
 WWW=		https://movit.sesse.net
 
@@ -13,31 +12,34 @@ LICENSE=	GPLv2+
 LIB_DEPENDS=	libepoxy.so:graphics/libepoxy \
 		libfftw3.so:math/fftw3
 
-USES=		autoreconf compiler:c++11-lang gmake eigen:3,build,run libtool \
+USES=		autoreconf compiler:c++14-lang gmake eigen:3 libtool \
 		pathfix pkgconfig
-GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
+GNU_CONFIGURE=	yes
+
 PORTDOCS=	NEWS README
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS TEST
 
-.include <bsd.port.options.mk>
+TEST_BUILD_DEPENDS=	benchmark>0:devel/benchmark \
+			${NONEXISTENT}:devel/googletest:patch \
+			${LOCALBASE}/bin/sdl2-config:devel/sdl20
+TEST_MAKE_ENV=		GTEST_DIR="`${MAKE} -C ${PORTSDIR}/devel/googletest -VWRKSRC`/googletest"
+TEST_ALL_TARGET_OFF=	libmovit.la
+TEST_TEST_TARGET=	check
 
 post-patch:
-	@${REINPLACE_CMD} -e '/AC_INIT/ s/git/${PORTVERSION}/' \
+	@${REINPLACE_CMD} -e '/AC_INIT/ s|git|${PORTVERSION}|' \
 		${WRKSRC}/configure.ac
-	@${REINPLACE_CMD} -e '/^all/ s/$$(TESTS)//' \
+	@${REINPLACE_CMD} -e 's|-lepoxy|@epoxy_LIBS@|g' \
 		${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e '/features\.h/ d' \
 		${WRKSRC}/demo.cpp
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-. for f in ${PORTDOCS}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DOCSDIR}
-. endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.*
 
 .include <bsd.port.mk>
diff --git a/graphics/movit/distinfo b/graphics/movit/distinfo
index 76badc757da4..414e26d6ec14 100644
--- a/graphics/movit/distinfo
+++ b/graphics/movit/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1612912411
-SHA256 (movit-1.6.3.tar.gz) = eb19f109ec99d6050de5267d059c7b351d3d5e39c77d43ca348a95f474a99498
-SIZE (movit-1.6.3.tar.gz) = 605922
+TIMESTAMP = 1730350248
+SHA256 (movit-1.7.1.tar.gz) = b33073b705f0ccb6ac4942cf51151515407b40bb4e9a2dd0228c1c2cb1fbc11a
+SIZE (movit-1.7.1.tar.gz) = 606885
diff --git a/graphics/movit/pkg-plist b/graphics/movit/pkg-plist
index 4b61ce41162c..86027ed75d5e 100644
--- a/graphics/movit/pkg-plist
+++ b/graphics/movit/pkg-plist
@@ -47,50 +47,5 @@ include/movit/ycbcr_input.h
 lib/libmovit.a
 lib/libmovit.so
 lib/libmovit.so.8
-lib/libmovit.so.8.0.3
+lib/libmovit.so.8.0.5
 libdata/pkgconfig/movit.pc
-%%DATADIR%%/alpha_division_effect.frag
-%%DATADIR%%/alpha_multiplication_effect.frag
-%%DATADIR%%/blur_effect.frag
-%%DATADIR%%/colorspace_conversion_effect.frag
-%%DATADIR%%/complex_modulate_effect.frag
-%%DATADIR%%/deconvolution_sharpen_effect.frag
-%%DATADIR%%/deinterlace_effect.comp
-%%DATADIR%%/deinterlace_effect.frag
-%%DATADIR%%/dither_effect.frag
-%%DATADIR%%/fft_pass_effect.frag
-%%DATADIR%%/flat_input.frag
-%%DATADIR%%/footer.comp
-%%DATADIR%%/footer.frag
-%%DATADIR%%/gamma_compression_effect.frag
-%%DATADIR%%/gamma_expansion_effect.frag
-%%DATADIR%%/header.130.frag
-%%DATADIR%%/header.150.frag
-%%DATADIR%%/header.300es.frag
-%%DATADIR%%/header.comp
-%%DATADIR%%/highlight_cutoff_effect.frag
-%%DATADIR%%/identity.frag
-%%DATADIR%%/lift_gamma_gain_effect.frag
-%%DATADIR%%/luma_mix_effect.frag
-%%DATADIR%%/mirror_effect.frag
-%%DATADIR%%/mix_effect.frag
-%%DATADIR%%/multiply_effect.frag
-%%DATADIR%%/overlay_effect.frag
-%%DATADIR%%/overlay_matte_effect.frag
-%%DATADIR%%/padding_effect.frag
-%%DATADIR%%/resample_effect.frag
-%%DATADIR%%/sandbox_effect.frag
-%%DATADIR%%/saturation_effect.frag
-%%DATADIR%%/slice_effect.frag
-%%DATADIR%%/texture1d.130.frag
-%%DATADIR%%/texture1d.150.frag
-%%DATADIR%%/texture1d.300es.frag
-%%DATADIR%%/vignette_effect.frag
-%%DATADIR%%/vs.130.vert
-%%DATADIR%%/vs.150.vert
-%%DATADIR%%/vs.300es.vert
-%%DATADIR%%/vs.vert
-%%DATADIR%%/white_balance_effect.frag
-%%DATADIR%%/ycbcr_422interleaved_input.frag
-%%DATADIR%%/ycbcr_conversion_effect.frag
-%%DATADIR%%/ycbcr_input.frag