Index: general/graphlib/graphlib.xml
===================================================================
--- general/graphlib/graphlib.xml	(revision ea9a250efb4b0dd26015f15696ec54360cb0c3b1)
+++ general/graphlib/graphlib.xml	(revision 07cb2c53e601400d153dee2c05fb36207bcd1de7)
@@ -36,4 +36,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libgxps.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libjpeg-turbo.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libjxl.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libmng.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libmypaint.xml"/>
Index: general/graphlib/libjxl.xml
===================================================================
--- general/graphlib/libjxl.xml	(revision 07cb2c53e601400d153dee2c05fb36207bcd1de7)
+++ general/graphlib/libjxl.xml	(revision 07cb2c53e601400d153dee2c05fb36207bcd1de7)
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+
+  <!ENTITY libjxl-download-http "https://github.com/libjxl/libjxl/archive/refs/tags/v&libjxl-version;/libjxl-&libjxl-version;.tar.gz">
+  <!ENTITY libjxl-md5sum        "e383b622cb2caef4dfcc8047f5a0fe72">
+  <!ENTITY libjxl-size          "1.8 MB">
+  <!ENTITY libjxl-buildsize     "53 MB">
+  <!ENTITY libjxl-time          "0.8 SBU (with parallelism=4)">
+
+]>
+
+<sect1 id="libjxl" xreflabel="libjxl-&libjxl-version;">
+  <?dbhtml filename="libjxl.html"?>
+
+  <title>libjxl-&libjxl-version;</title>
+
+  <indexterm zone="libjxl">
+    <primary sortas="a-libjxl">libjxl</primary>
+  </indexterm>
+
+  <sect2 role="package">
+    <title>Introduction to libjxl</title>
+
+    <para>
+      The <application>libjxl</application> package contains the reference
+      implementation of the JPEG XL image format.
+    </para>
+
+    &lfs121_checked;
+
+    <bridgehead renderas="sect3">Package Information</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>
+          Download (HTTP): <ulink url="&libjxl-download-http;"/>
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download MD5 sum: &libjxl-md5sum;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Download size: &libjxl-size;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated disk space required: &libjxl-buildsize;
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+          Estimated build time: &libjxl-time;
+        </para>
+      </listitem>
+    </itemizedlist>
+
+    <bridgehead renderas="sect3">libjxl Dependencies</bridgehead>
+
+    <bridgehead renderas="sect4">Required</bridgehead>
+    <para role="required">
+      <xref linkend="brotli"/>,
+      <xref linkend="cmake"/>,
+      <xref linkend="giflib"/>,
+      <xref linkend="highway"/>,
+      <xref linkend="lcms2"/>,
+      <xref linkend="libjpeg"/>, and
+      <xref linkend="libpng"/>
+    </para>
+
+    <bridgehead renderas="sect4">Recommended</bridgehead>
+    <para role="recommended">
+      <xref linkend="gdk-pixbuf"/> (for the plugin)
+    </para>
+
+    <bridgehead renderas="sect4">Optional</bridgehead>
+    <para role="optional">
+      <xref linkend="doxygen"/> and <xref linkend="graphviz"/>
+      (for documentation),
+      <xref linkend="gimp"/> (for the plugin),
+      <xref linkend="java"/> (for the JAR),
+      <xref linkend="libavif"/>,
+      <xref linkend="libwebp"/>,
+      <ulink url="https://www.openexr.com/">OpenEXR</ulink>
+    </para>
+
+  </sect2>
+
+  <sect2 role="installation">
+    <title>Installation of libjxl</title>
+
+    <para>
+      Install <application>libjxl</application> by running the following
+      commands:
+    </para>
+
+<screen><userinput>mkdir build &amp;&amp;
+cd    build &amp;&amp;
+
+cmake -D CMAKE_INSTALL_PREFIX=/usr             \
+      -D CMAKE_BUILD_TYPE=Release              \
+      -D BUILD_TESTING=OFF                     \
+      -D BUILD_SHARED_LIBS=ON                  \
+      -D JPEGXL_ENABLE_SKCMS=OFF               \
+      -D JPEGXL_ENABLE_SJPEG=OFF               \
+      -D JPEGXL_ENABLE_PLUGINS=ON              \
+      -D JPEGXL_INSTALL_JARDIR=/usr/share/java \
+      -G Ninja ..                              &amp;&amp;
+ninja</userinput></screen>
+
+    <para>
+      This package does come with a test suite, but it requires
+      <ulink url="https://github.com/google/googletest">gtest</ulink>, which
+      is not in BLFS.
+    </para>
+
+    <para>
+      Now, as the &root; user:
+    </para>
+
+<screen role="root"><userinput>ninja install &amp;&amp;
+gdk-pixbuf-query-loaders --update-cache</userinput></screen>
+
+  </sect2>
+
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para>
+      <command>gdk-pixbuf-query-loaders --update-cache</command>: This command
+      regenerates the <application>GDK Pixbuf</application> loader cache so
+      that it is aware of the JPEG-XL loader.
+    </para>
+
+    <para>
+      <parameter>-DBUILD_TESTING=OFF</parameter>: This parameter disables the
+      tests because they require
+      <ulink url="https://github.com/google/googletest">gtest</ulink>, which
+      is not in BLFS. If you wish to run the tests and have
+      <ulink url="https://github.com/google/googletest">gtest</ulink> installed,
+      remove this parameter.
+    </para>
+
+    <para>
+      <parameter>-DBUILD_SHARED_LIBS=ON</parameter>: This parameter enables
+      building shared versions of the libraries instead of static ones.
+    </para>
+    
+    <para>
+      <parameter>-DJPEGXL_ENABLE_SKCMS=OFF</parameter>: This parameter disables
+      building support for Skia's <application>skcms</application> since it is
+      not necessary for BLFS purposes and requires
+      <ulink url="https://skia.googlesource.com/skcms/">skcms</ulink>.
+    </para>
+    
+    <para>
+      <parameter>-DJPEGXL_ENABLE_SJPEG=OFF</parameter>: This parameter disables
+      support for SimpleJPEG since it is not necessary for BLFS purposes and
+      requires <ulink url="https://github.com/webmproject/sjpeg">sjpeg</ulink>.
+    </para>
+    
+    <para>
+      <parameter>-DJPEGXL_ENABLE_PLUGINS=ON</parameter>: This parameter enables
+      Plugin support, which creates plugins for <xref linkend="gimp"/> and 
+      <xref linkend="gdk-pixbuf"/> if those packages are installed.
+    </para>
+
+    <para>
+      <parameter>-DJPEGXL_INSTALL_JARDIR=/usr/share/java</parameter>: This
+      parameter places the JAR file for JPEG XL support in the correct 
+      directory if <xref linkend="java"/> is installed.
+    </para>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title>Contents</title>
+
+    <segmentedlist>
+      <segtitle>Installed Programs</segtitle>
+      <segtitle>Installed Libraries</segtitle>
+      <segtitle>Installed Directories</segtitle>
+
+      <seglistitem>
+        <seg>
+          benchmark_xl,
+          cjxl,
+          djxl, and
+          jxlinfo
+        </seg>
+        <seg>
+          libjxl.so,
+          libjxl_cms.so,
+          libjxl_extras_codec.so,
+          libjxl_jni.so,
+          libjxl_threads.so, and
+          libpixbufloader-jxl.so (in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders),
+        </seg>
+        <seg>
+          /usr/include/jxl
+        </seg>
+      </seglistitem>
+    </segmentedlist>
+
+    <variablelist>
+      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <?dbfo list-presentation="list"?>
+      <?dbhtml list-presentation="table"?>
+
+      <varlistentry id="benchmark_xl">
+        <term><command>benchmark_xl</command></term>
+        <listitem>
+          <para>
+            runs performance benchmarks against libjxl
+          </para>
+          <indexterm zone="libjxl benchmark_xl">
+            <primary sortas="b-benchmark_xl">benchmark_xl</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="cjxl">
+        <term><command>cjxl</command></term>
+        <listitem>
+          <para>
+            compresses images into JPEG XL format
+          </para>
+          <indexterm zone="libjxl cjxl">
+            <primary sortas="b-cjxl">cjxl</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="djxl">
+        <term><command>djxl</command></term>
+        <listitem>
+          <para>
+            decompresses images from JPEG XL format into other formats
+          </para>
+          <indexterm zone="libjxl djxl">
+            <primary sortas="b-djxl">djxl</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="jxlinfo">
+        <term><command>jxlinfo</command></term>
+        <listitem>
+          <para>
+            displays information about JPEG XL images
+          </para>
+          <indexterm zone="libjxl jxlinfo">
+            <primary sortas="b-jxlinfo">jxlinfo</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="libjxl-lib">
+        <term><filename class="libraryfile">libjxl.so</filename></term>
+        <listitem>
+          <para>
+            contains the reference implementation of the JPEG XL standard
+          </para>
+          <indexterm zone="libjxl libjxl-lib">
+            <primary sortas="c-libjxl">libjxl.so</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="libjxl_cms">
+        <term><filename class="libraryfile">libjxl_cms.so</filename></term>
+        <listitem>
+          <para>
+            contains support for Little CMS in libjxl
+          </para>
+          <indexterm zone="libjxl libjxl_cms">
+            <primary sortas="c-libjxl_cms">libjxl_cms.so</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+      
+      <varlistentry id="libjxl_extras_codec">
+        <term><filename class="libraryfile">libjxl_extras_codec.so</filename></term>
+        <listitem>
+          <para>
+            contains additional codec support for JPEG XL images
+          </para>
+          <indexterm zone="libjxl libjxl_extras_codec">
+            <primary sortas="c-libjxl_extras_codec">libjxl_extras_codec.so</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+      
+      <varlistentry id="libjxl_jni">
+        <term><filename class="libraryfile">libjxl_jni.so</filename></term>
+        <listitem>
+          <para>
+            contains a Java interface to support JPEG XL on systems where
+            <xref linkend="java"/> was installed at build time
+          </para>
+          <indexterm zone="libjxl libjxl_jni">
+            <primary sortas="c-libjxl_jni">libjxl_jni.so</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+      
+      <varlistentry id="libjxl_threads">
+        <term><filename class="libraryfile">libjxl_threads.so</filename></term>
+        <listitem>
+          <para>
+            contains threading functions for JPEG XL
+          </para>
+          <indexterm zone="libjxl libjxl_threads">
+            <primary sortas="c-libjxl_threads">libjxl_threads.so</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+      
+      <varlistentry id="libpixbufloader-jxl">
+        <term><filename class="libraryfile">libpixbufloader-jxl.so</filename></term>
+        <listitem>
+          <para>
+            contains a loader for gdk-pixbuf to allow it to load JPEG XL images
+          </para>
+          <indexterm zone="libjxl libpixbufloader-jxl">
+            <primary sortas="c-libpixbufloader-jxl">libpixbufloader-jxl.so</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </sect2>
+</sect1>
