pantry/projects/jpeg.org/jpegxl/package.yml

65 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2023-04-11 14:40:59 +03:00
distributable:
2023-12-23 12:25:53 +03:00
url: git+https://github.com/libjxl/libjxl.git
ref: v{{version}}
2023-04-11 14:40:59 +03:00
versions:
github: libjxl/libjxl
dependencies:
github.com/google/brotli: ^1
littlecms.com: ^2.13
google.com/highway: ^1
google.com/webp: ^1
giflib.sourceforge.io: ^5
openexr.com: ^3
2023-12-23 12:25:53 +03:00
libpng.org: ^1
2023-04-11 14:40:59 +03:00
provides:
- bin/cjxl
2023-12-23 12:25:53 +03:00
- bin/cjpegli
2023-04-11 14:40:59 +03:00
- bin/djxl
2023-12-23 12:25:53 +03:00
- bin/djpegli
2023-04-11 14:40:59 +03:00
- bin/jxlinfo
build:
dependencies:
freedesktop.org/pkg-config: ^0.29
cmake.org: ^3
2024-03-08 04:52:27 +03:00
gnu.org/coreutils: '*' # deps.sh needs “realpath”
2023-12-23 12:25:53 +03:00
git-scm.org: ^2
2023-04-11 14:40:59 +03:00
working-directory: build
2023-12-23 12:25:53 +03:00
script:
# the `SJPEG` library is obscure and we have not yet pkgd it.
# the rest we have and provide as deps.
# jpeg-turbo is a dep we provide, but for some reason around v0.9 the
# jpegxl build started requiring their vendored copy
- run: |
./deps.sh
find third_party -not -name sjpeg -and -not -name libjpeg-turbo -mindepth 1 -maxdepth 1 -type d | xargs rm -rf
working-directory: ..
2024-03-08 04:52:27 +03:00
- cmake .. $ARGS
2023-12-23 12:25:53 +03:00
- make --jobs {{ hw.concurrency }} install
2024-03-08 04:52:27 +03:00
env:
ARGS:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DBUILD_TESTING=OFF
- -DJPEGXL_ENABLE_SKCMS=OFF
- -DJPEGXL_ENABLE_BENCHMARK=OFF
- -DJPEGXL_VERSION={{version}}
linux/x86-64:
ARGS:
# ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined
2023-12-23 12:25:53 +03:00
2024-03-08 04:52:27 +03:00
test:
- cjxl fixture.jpeg out.jxl
2023-12-23 12:25:53 +03:00
2024-03-08 04:52:27 +03:00
- cc fixture1.c -ljxl
- ./a.out
2023-12-23 12:25:53 +03:00
2024-03-08 04:52:27 +03:00
- cc fixture2.c -ljxl_threads
- ./a.out