git: b161c257222b - main - graphics/ImageMagick7: simplify TEST target and add FLIF description

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Mon, 22 Jan 2024 17:31:24 UTC
The branch main has been updated by arrowd:

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

commit b161c257222b1bd38d21cded34b8e2f601986dd3
Author:     awoonya <mzhyneva@gmail.com>
AuthorDate: 2024-01-17 11:35:19 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-01-22 17:30:57 +0000

    graphics/ImageMagick7: simplify TEST target and add FLIF description
    
    PR:     276208
---
 graphics/ImageMagick7/Makefile | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/graphics/ImageMagick7/Makefile b/graphics/ImageMagick7/Makefile
index f4a8a402ccdb..93e60b877655 100644
--- a/graphics/ImageMagick7/Makefile
+++ b/graphics/ImageMagick7/Makefile
@@ -19,6 +19,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libltdl.so:devel/libltdl	\
 		libzstd.so:archivers/zstd	\
 		libzip.so:archivers/libzip
+TEST_DEPENDS=	gsfonts>=0:print/gsfonts
 
 FLAVORS=		x11 nox11
 FLAVOR?=		${FLAVORS:[1]}
@@ -49,10 +50,12 @@ SAMPLE_FILES=	colors.xml delegates.xml log.xml mime.xml policy.xml \
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION:R}
 
+TEST_TARGET=	check
+
 OPTIONS_SUB=	yes
 OPTIONS_DEFINE=	BZIP2 DOCS DJVU FFMPEG FFTW FLIF FONTCONFIG FPX FREETYPE \
 		GRAPHVIZ GSLIB JPEG2000 JBIG JPEG JXL LCMS2 LZMA LQR MODULES \
-		OPENEXR OPENMP PDF PERL PNG TESTS TIFF WEBP WMF THREADS \
+		OPENEXR OPENMP PDF PERL PNG TIFF WEBP WMF THREADS \
 		16BIT_PIXEL HDRI HEIF RAW
 OPTIONS_DEFAULT=16BIT_PIXEL BZIP2 FFTW FONTCONFIG FREETYPE HEIF \
 		JPEG2000 JBIG JPEG JXL LCMS2 LZMA LQR MODULES OPENEXR PDF PERL PNG \
@@ -72,7 +75,7 @@ CONFIGURE_ARGS+=	--without-x
 DJVU_DESC=		DJVU format support (needs THREADS)
 GSLIB_DESC=		libgs (Postscript SHLIB) support
 FFMPEG_DESC=		VIDEO codec support as FFmpeg
-TESTS_DESC=		Run bundled self-tests after build
+FLIF_DESC=		Free Lossless Image Format support
 #SIMD_CONFIGURE_WITH=	gcc-arch
 CONFIGURE_ARGS+=	--without-gcc-arch
 
@@ -166,8 +169,6 @@ SVG_DESC=		SVG vector image format support (via librsvg, implies the x11 option)
 SVG_CONFIGURE_WITH=	rsvg
 SVG_USE=		gnome=cairo,gdkpixbuf2,librsvg2
 
-TESTS_TEST_DEPENDS=	gsfonts>=0:print/gsfonts
-
 TIFF_CONFIGURE_WITH=	tiff
 TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
 
@@ -347,9 +348,4 @@ post-install:
 		${STAGEDIR}${PREFIX}/etc/ImageMagick-7/${i}.sample
 .endfor
 
-post-install-TESTS-on: test
-
-do-test:
-	-cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} limits -m 20m ${MAKE} ${_MAKE_JOBS} check
-
 .include <bsd.port.mk>