git: 521bde8f34c2 - main - graphics/sdl2_image: sort options for readability

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 22 Apr 2024 18:20:33 UTC
The branch main has been updated by amdmi3:

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

commit 521bde8f34c2c413aa8bbae759fb73f523e180bb
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-04-22 16:47:18 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-04-22 18:20:02 +0000

    graphics/sdl2_image: sort options for readability
    
    PR:             278501
    Submitted by:   diizzy
---
 graphics/sdl2_image/Makefile | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/graphics/sdl2_image/Makefile b/graphics/sdl2_image/Makefile
index 1e8d8d9f1706..dff4be56482b 100644
--- a/graphics/sdl2_image/Makefile
+++ b/graphics/sdl2_image/Makefile
@@ -24,18 +24,21 @@ USE_LDCONFIG=	yes
 OPTIONS_DEFINE=	AVIF JPEG JXL PNG TIFF WEBP TEST
 OPTIONS_DEFAULT=AVIF JPEG JXL PNG WEBP
 
+AVIF_LIB_DEPENDS=	libavif.so:graphics/libavif
+AVIF_CMAKE_BOOL=	SDL2IMAGE_AVIF
+
 JPEG_USES=		jpeg
 JPEG_CMAKE_BOOL=	SDL2IMAGE_JPG
+
+JXL_LIB_DEPENDS=	libjxl.so:graphics/libjxl
+JXL_CMAKE_BOOL=		SDL2IMAGE_JXL
+
 PNG_LIB_DEPENDS=	libpng.so:graphics/png
 PNG_CMAKE_BOOL=		SDL2IMAGE_PNG
+
 TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
 TIFF_CMAKE_BOOL=	SDL2IMAGE_TIF
-WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp
-WEBP_CMAKE_BOOL=	SDL2IMAGE_WEBP
-AVIF_LIB_DEPENDS=	libavif.so:graphics/libavif
-AVIF_CMAKE_BOOL=	SDL2IMAGE_AVIF
-JXL_LIB_DEPENDS=	libjxl.so:graphics/libjxl
-JXL_CMAKE_BOOL=		SDL2IMAGE_JXL
+
 TEST_CMAKE_BOOL=	SDL2IMAGE_TESTS
 TEST_CONFIGURE_ENV=	LOCALBASE="${LOCALBASE}"
 TEST_LIB_DEPENDS=	libunwind.so:devel/libunwind
@@ -43,6 +46,9 @@ TEST_TEST_TARGET=	test
 TEST_IMPLIES=		PNG JPEG  # does not build otherwise
 TEST_BROKEN=		does not build  # XXX: probably devel/sdl20 problem
 
+WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp
+WEBP_CMAKE_BOOL=	SDL2IMAGE_WEBP
+
 post-extract:
 	@${RM} -rf ${WRKSRC}/external