summaryrefslogtreecommitdiff
path: root/repo/libjxl
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libjxl')
-rw-r--r--repo/libjxl/libjxl.xibuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/libjxl/libjxl.xibuild b/repo/libjxl/libjxl.xibuild
new file mode 100644
index 0000000..027886e
--- /dev/null
+++ b/repo/libjxl/libjxl.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="libjxl"
+DESC="JPEG XL image format reference implementation"
+
+MAKEDEPS="asciidoc brotli cmake gdk-pixbuf giflib lcms2 libjpeg-turbo libpng openexr zlib gimp"
+
+SOURCE="github.com/libjxl/libjxl"
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_TESTING=ON \
+ -DJPEGXL_ENABLE_BENCHMARK=OFF \
+ -DJPEGXL_ENABLE_COVERAGE=OFF \
+ -DJPEGXL_ENABLE_EXAMPLES=OFF \
+ -DJPEGXL_ENABLE_FUZZERS=OFF \
+ -DJPEGXL_ENABLE_SJPEG=OFF \
+ -DJPEGXL_ENABLE_SKCMS=OFF \
+ -DJPEGXL_ENABLE_VIEWERS=OFF \
+ -DJPEGXL_FORCE_SYSTEM_GTEST=ON \
+ -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \
+ -DJPEGXL_FORCE_SYSTEM_HWY=ON
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
+