summaryrefslogtreecommitdiff
path: root/graphics/libjxl/files/patch-jpegli
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2024-01-10 10:51:57 +0100
committerJan Beich <jbeich@FreeBSD.org>2024-01-11 14:17:02 +0100
commit08f4b954852a3c0c5ac91fc18a5888ec360e7245 (patch)
tree4b9f0e87d396f23445173ff1b33c96a7ba7b5e23 /graphics/libjxl/files/patch-jpegli
parentsecurity/openssl32: Security fix for POLY1305 on ppc (diff)
graphics/libjxl: update to 0.9.1
Changes: https://github.com/libjxl/libjxl/releases/tag/v0.9.1 Reported by: GitHub (watch releases)
Diffstat (limited to 'graphics/libjxl/files/patch-jpegli')
-rw-r--r--graphics/libjxl/files/patch-jpegli46
1 files changed, 46 insertions, 0 deletions
diff --git a/graphics/libjxl/files/patch-jpegli b/graphics/libjxl/files/patch-jpegli
new file mode 100644
index 000000000000..f3f4bb8c0ece
--- /dev/null
+++ b/graphics/libjxl/files/patch-jpegli
@@ -0,0 +1,46 @@
+Allow building jpegli against system libjpeg-turbo.
+
+This is an old version of https://github.com/libjxl/libjxl/pull/3085
+
+--- CMakeLists.txt.orig 2024-01-10 09:51:57 UTC
++++ CMakeLists.txt
+@@ -81,13 +81,6 @@ endif()
+ set(BUNDLE_LIBPNG_DEFAULT NO)
+ endif()
+
+-
+-if(EXISTS "${PROJECT_SOURCE_DIR}/third_party/libjpeg-turbo/jconfig.h.in")
+- set(ENABLE_JPEGLI_DEFAULT YES)
+-else()
+- set(ENABLE_JPEGLI_DEFAULT NO)
+-endif()
+-
+ # Standard cmake naming for building shared libraries.
+ get_property(SHARED_LIBS_SUPPORTED GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS)
+ option(BUILD_SHARED_LIBS "Build shared libraries instead of static ones" ${SHARED_LIBS_SUPPORTED})
+@@ -98,7 +91,7 @@ set(JPEGXL_ENABLE_TOOLS true CACHE BOOL
+ "Build JPEGXL developer tools.")
+ set(JPEGXL_ENABLE_TOOLS true CACHE BOOL
+ "Build JPEGXL user tools: cjxl and djxl.")
+-set(JPEGXL_ENABLE_JPEGLI ${ENABLE_JPEGLI_DEFAULT} CACHE BOOL
++set(JPEGXL_ENABLE_JPEGLI true CACHE BOOL
+ "Build jpegli library.")
+ set(JPEGXL_ENABLE_JPEGLI_LIBJPEG true CACHE BOOL
+ "Build libjpeg.so shared library based on jpegli.")
+--- lib/jpegli.cmake.orig 2024-01-10 09:51:57 UTC
++++ lib/jpegli.cmake
+@@ -23,12 +23,14 @@ endif()
+ set(JPEG_LIB_VERSION 80)
+ endif()
+
++if(JPEGXL_INSTALL_JPEGLI_LIBJPEG)
+ configure_file(
+ ../third_party/libjpeg-turbo/jconfig.h.in include/jpegli/jconfig.h)
+ configure_file(
+ ../third_party/libjpeg-turbo/jpeglib.h include/jpegli/jpeglib.h COPYONLY)
+ configure_file(
+ ../third_party/libjpeg-turbo/jmorecfg.h include/jpegli/jmorecfg.h COPYONLY)
++endif()
+
+ add_library(jpegli-static STATIC EXCLUDE_FROM_ALL "${JPEGXL_INTERNAL_JPEGLI_SOURCES}")
+ target_compile_options(jpegli-static PRIVATE "${JPEGXL_INTERNAL_FLAGS}")