From 47cd5b7b971360dba1ac3bf93163df7fdda708d8 Mon Sep 17 00:00:00 2001 From: MarkusVolk Date: Thu, 21 Oct 2021 12:05:23 +0200 Subject: [PATCH] gimp: add support for jpeg-xl --- recipes-graphics/brotli/brotli_git.bb | 18 +++++++++++++ recipes-graphics/highway/highway_git.bb | 18 +++++++++++++ recipes-graphics/libjxl/libjxl_git.bb | 36 +++++++++++++++++++++++++ recipes-gtk/gimp/gimp_2.99.8.bb | 2 ++ 4 files changed, 74 insertions(+) create mode 100644 recipes-graphics/brotli/brotli_git.bb create mode 100644 recipes-graphics/highway/highway_git.bb create mode 100644 recipes-graphics/libjxl/libjxl_git.bb diff --git a/recipes-graphics/brotli/brotli_git.bb b/recipes-graphics/brotli/brotli_git.bb new file mode 100644 index 0000000..4fcd9cd --- /dev/null +++ b/recipes-graphics/brotli/brotli_git.bb @@ -0,0 +1,18 @@ +SUMMARY = "Brotli is a generic-purpose lossless compression algorithm." +HOMEPAGE = "https://github.com/google/brotli/" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=941ee9cd1609382f946352712a319b4b" + +inherit cmake pkgconfig + +SRC_URI = " \ + git://github.com/google/brotli.git;protocol=https \ +" + +PV = "1.0.9" +SRCREV = "v${PV}" +S = "${WORKDIR}/git" + +EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release" + diff --git a/recipes-graphics/highway/highway_git.bb b/recipes-graphics/highway/highway_git.bb new file mode 100644 index 0000000..8e28e06 --- /dev/null +++ b/recipes-graphics/highway/highway_git.bb @@ -0,0 +1,18 @@ +SUMMARY = "Highway is a C++ library for SIMD (Single Instruction, Multiple Data)" +HOMEPAGE = "https://github.com/google/highway/" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9" + +inherit cmake pkgconfig + +SRC_URI = " \ + git://github.com/google/highway.git;protocol=https \ +" + +PV = "0.14.2" +SRCREV = "${PV}" +S = "${WORKDIR}/git" + +EXTRA_OECMAKE = "-DBUILD_TESTING=0 -DCMAKE_BUILD_TYPE=Release" + diff --git a/recipes-graphics/libjxl/libjxl_git.bb b/recipes-graphics/libjxl/libjxl_git.bb new file mode 100644 index 0000000..d1643b2 --- /dev/null +++ b/recipes-graphics/libjxl/libjxl_git.bb @@ -0,0 +1,36 @@ +SUMMARY = "Reference implementation of JPEG XL (encoder and decoder)" +HOMEPAGE = "https://github.com/libjxl/libjxl/" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=6a905a337cc228a1f68f0b5416f52a7f" + +inherit cmake pkgconfig + +DEPENDS = "highway brotli" + +SRC_URI = " \ + gitsm://github.com/libjxl/libjxl.git;protocol=https;branch=v0.6.x \ +" + +PV = "0.6" +SRCREV = "v${PV}" +S = "${WORKDIR}/git" + +EXTRA_OECMAKE = " \ + -DCMAKE_BUILD_TYPE=Release \ + -DJPEGXL_ENABLE_PLUGINS=OFF \ + -DBUILD_TESTING=OFF \ + -DJPEGXL_WARNINGS_AS_ERRORS=OFF \ + -DJPEGXL_ENABLE_SJPEG=OFF \ + -DJPEGXL_ENABLE_BENCHMARK=OFF \ + -DJPEGXL_ENABLE_EXAMPLES=OFF \ + -DJPEGXL_ENABLE_MANPAGES=OFF \ + -DJPEGXL_ENABLE_SKCMS=ON \ + -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \ + -DJPEGXL_FORCE_SYSTEM_HWY=ON \ + -DJPEGXL_ENABLE_JNI=OFF \ + -DJPEGXL_ENABLE_TCMALLOC=OFF \ + -DJPEGXL_ENABLE_TOOLS=OFF \ +" + + diff --git a/recipes-gtk/gimp/gimp_2.99.8.bb b/recipes-gtk/gimp/gimp_2.99.8.bb index 19e74bf..ffea747 100644 --- a/recipes-gtk/gimp/gimp_2.99.8.bb +++ b/recipes-gtk/gimp/gimp_2.99.8.bb @@ -62,6 +62,7 @@ PACKAGECONFIG[gudev] = "-Dgudev=enabled,-Dgudev=disabled,libgudev" PACKAGECONFIG[javascript] = "-Djavascript=true,-Djavascript=false,,openjre-8" PACKAGECONFIG[jpeg2000] = "-Djpeg2000=enabled,-Djpeg2000=disabled,jasper" PACKAGECONFIG[jpeg] = ",,jpeg" +PACKAGECONFIG[jpeg-xl] = ",,libjxl" PACKAGECONFIG[libunwind] = ",,libunwind" PACKAGECONFIG[libbacktrace] = ",,libbacktrace" PACKAGECONFIG[lua] = "-Dlua=true,-Dlua=false,,luajit lgi" @@ -89,6 +90,7 @@ PACKAGECONFIG ?= " \ gudev \ jpeg \ jpeg2000 \ + jpeg-xl \ lua \ lzma \ mng \