git: fb64fe4993f7 - main - graphics/linux-rl9-libjxl: add new port (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Thu, 14 Nov 2024 21:23:06 UTC
The branch main has been updated by fluffy:

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

commit fb64fe4993f7c9fc1f9777cf4485b3854608b2fc
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-11-14 20:45:54 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2024-11-14 21:22:51 +0000

    graphics/linux-rl9-libjxl: add new port (+)
    
    JPEG XL reference encoder/decoder
    
    Sponsored by:   Future Crew, LLC
---
 Mk/Uses/linux.mk                            |  1 +
 graphics/Makefile                           |  1 +
 graphics/linux-rl9-libjxl/Makefile          | 28 ++++++++++++++++++++++++++++
 graphics/linux-rl9-libjxl/distinfo          |  7 +++++++
 graphics/linux-rl9-libjxl/pkg-plist.aarch64 |  9 +++++++++
 graphics/linux-rl9-libjxl/pkg-plist.amd64   |  9 +++++++++
 6 files changed, 55 insertions(+)

diff --git a/Mk/Uses/linux.mk b/Mk/Uses/linux.mk
index 4a116e1a2573..025187bcecb9 100644
--- a/Mk/Uses/linux.mk
+++ b/Mk/Uses/linux.mk
@@ -110,6 +110,7 @@ _linux_${linux_ARGS}_libgfortran=	linux-${linux_ARGS}-libgfortran>0:devel/linux-
 _linux_${linux_ARGS}_libglvnd=		linux-${linux_ARGS}-libglvnd>0:graphics/linux-${linux_ARGS}-libglvnd
 _linux_${linux_ARGS}_libgpg-error=	linux-${linux_ARGS}-libgpg-error>0:security/linux-${linux_ARGS}-libgpg-error
 _linux_rl9_libidn2=			linux-${linux_ARGS}-libidn2>0:dns/linux-rl9-libidn2
+_linux_rl9_libjxl=			linux-rl9-libjxl>0:graphics/linux-rl9-libjxl
 _linux_rl9_libnghttp2=			linux-${linux_ARGS}-libnghttp2>0:www/linux-rl9-libnghttp2
 _linux_${linux_ARGS}_libogg=		linux-${linux_ARGS}-libogg>0:audio/linux-${linux_ARGS}-libogg
 _linux_${linux_ARGS}_libpciaccess=	linux-${linux_ARGS}-libpciaccess>0:devel/linux-${linux_ARGS}-libpciaccess
diff --git a/graphics/Makefile b/graphics/Makefile
index 81be70342e46..cd6ce91094c9 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -547,6 +547,7 @@
     SUBDIR += linux-rl9-libdrm
     SUBDIR += linux-rl9-libepoxy
     SUBDIR += linux-rl9-libglvnd
+    SUBDIR += linux-rl9-libjxl
     SUBDIR += linux-rl9-librsvg2
     SUBDIR += linux-rl9-openjpeg
     SUBDIR += linux-rl9-png
diff --git a/graphics/linux-rl9-libjxl/Makefile b/graphics/linux-rl9-libjxl/Makefile
new file mode 100644
index 000000000000..623cac6fe829
--- /dev/null
+++ b/graphics/linux-rl9-libjxl/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	libjxl
+PORTVERSION=	0.7.0
+DISTVERSIONSUFFIX=	-1.el9
+MASTER_SITES=	EPEL9
+#PKGNAMESUFFIX=	-libs
+CATEGORIES=	graphics linux
+
+MAINTAINER=	emulation@FreeBSD.org
+COMMENT=	JPEG XL reference encoder/decoder
+WWW=		https://jpeg.org/jpegxl/
+
+LICENSE=	BSD2CLAUSE
+
+USES=		linux:rl9
+USE_LDCONFIG=	yes
+USE_LINUX=	jpeg png tiff
+USE_LINUX_RPM=	yes
+
+LIB_DISTNAMES=	${PORTNAME}-${DISTVERSIONFULL}
+SRC_DISTFILES=	jpegxl-${DISTVERSIONFULL}${SRC_SUFX}:SOURCE
+
+CONFLICTS=	linux-c7-${PORTNAME}
+DESCR=		${PORTSDIR}/${PKGCATEGORY}/${PORTNAME}/pkg-descr
+DOCSDIR=	${PREFIX}/usr/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.mk>
diff --git a/graphics/linux-rl9-libjxl/distinfo b/graphics/linux-rl9-libjxl/distinfo
new file mode 100644
index 000000000000..dccda889d2c6
--- /dev/null
+++ b/graphics/linux-rl9-libjxl/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1708415374
+SHA256 (rocky/l/libjxl-0.7.0-1.el9.aarch64.rpm) = 312b2570c0a272067e7da24fe15b203cd3797975435aeac81181d74067644402
+SIZE (rocky/l/libjxl-0.7.0-1.el9.aarch64.rpm) = 695267
+SHA256 (rocky/l/libjxl-0.7.0-1.el9.x86_64.rpm) = 22549884ba9f6f69c6e31955c77bf1d47b3b00cad86aeeed745933788b9bd0fd
+SIZE (rocky/l/libjxl-0.7.0-1.el9.x86_64.rpm) = 980251
+SHA256 (rocky/j/jpegxl-0.7.0-1.el9.src.rpm) = a07df3df5cc31d0af5e53b846ab5a27128368b9985bf587c9a08fb4b81d64fae
+SIZE (rocky/j/jpegxl-0.7.0-1.el9.src.rpm) = 4081635
diff --git a/graphics/linux-rl9-libjxl/pkg-plist.aarch64 b/graphics/linux-rl9-libjxl/pkg-plist.aarch64
new file mode 100644
index 000000000000..99d0d2660af5
--- /dev/null
+++ b/graphics/linux-rl9-libjxl/pkg-plist.aarch64
@@ -0,0 +1,9 @@
+usr/lib/.build-id/8b/086a6f512397a468c0be27aa2ea7d8e7a63e0f
+usr/lib/.build-id/e7/10d6014baafbf926838530c36ae04c28eab38c
+usr/lib64/libjxl.so.0.7
+usr/lib64/libjxl.so.0.7.0
+usr/lib64/libjxl_threads.so.0.7
+usr/lib64/libjxl_threads.so.0.7.0
+usr/share/licenses/libjxl/LICENSE
+usr/share/mime/packages/image-jxl.xml
+usr/share/thumbnailers/jxl.thumbnailer
diff --git a/graphics/linux-rl9-libjxl/pkg-plist.amd64 b/graphics/linux-rl9-libjxl/pkg-plist.amd64
new file mode 100644
index 000000000000..8c8050999539
--- /dev/null
+++ b/graphics/linux-rl9-libjxl/pkg-plist.amd64
@@ -0,0 +1,9 @@
+usr/lib/.build-id/2a/fff80cecb72dc3d8959a057e64ddea3008a1bd
+usr/lib/.build-id/4d/74bdfac6dc9e74c5c184e219f9f5984e5602f9
+usr/lib64/libjxl.so.0.7
+usr/lib64/libjxl.so.0.7.0
+usr/lib64/libjxl_threads.so.0.7
+usr/lib64/libjxl_threads.so.0.7.0
+usr/share/licenses/libjxl/LICENSE
+usr/share/mime/packages/image-jxl.xml
+usr/share/thumbnailers/jxl.thumbnailer