···104 # Use our version of gtest
105 "-DJPEGXL_FORCE_SYSTEM_GTEST=ON"
106000107 # TODO: Update this package to enable this (overridably via an option):
108 # Viewer tools for evaluation.
109 # "-DJPEGXL_ENABLE_VIEWERS=ON"
···121 # the second substitution fix regex for a2x script
122 # https://github.com/libjxl/libjxl/pull/3842
123 postPatch = ''
0000000124 substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \
125 --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl"
126 substituteInPlace CMakeLists.txt \
···104 # Use our version of gtest
105 "-DJPEGXL_FORCE_SYSTEM_GTEST=ON"
106107+ "-DJPEGXL_ENABLE_SKCMS=OFF"
108+ "-DJPEGXL_FORCE_SYSTEM_LCMS2=ON"
109+110 # TODO: Update this package to enable this (overridably via an option):
111 # Viewer tools for evaluation.
112 # "-DJPEGXL_ENABLE_VIEWERS=ON"
···124 # the second substitution fix regex for a2x script
125 # https://github.com/libjxl/libjxl/pull/3842
126 postPatch = ''
127+ # Make sure we do not accidentally build against some of the vendored dependencies
128+ # If it asks you to "run deps.sh to fetch the build dependencies", then you are probably missing a JPEGXL_FORCE_SYSTEM_* flag
129+ (
130+ shopt -s extglob
131+ rm -rf third_party/!(sjpeg)/
132+ )
133+134 substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \
135 --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl"
136 substituteInPlace CMakeLists.txt \