2023-02-11 14:06:35 +03:00
|
|
|
distributable:
|
2024-03-08 18:39:50 +03:00
|
|
|
url: https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/{{version.tag}}/libjpeg-turbo-{{version.tag}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-02-11 14:06:35 +03:00
|
|
|
|
|
|
|
versions:
|
|
|
|
github: libjpeg-turbo/libjpeg-turbo
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
cmake.org: ^3
|
|
|
|
working-directory: build
|
2024-03-08 18:39:50 +03:00
|
|
|
script:
|
|
|
|
- cmake .. $ARGS
|
|
|
|
- make --jobs {{ hw.concurrency }} install
|
2023-02-11 14:06:35 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
2024-03-08 18:39:50 +03:00
|
|
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
- -DWITH_JPEG8=1
|
2023-02-11 14:06:35 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/cjpeg
|
|
|
|
- bin/djpeg
|
|
|
|
- bin/jpegtran
|
|
|
|
- bin/rdjpgcom
|
|
|
|
- bin/tjbench
|
|
|
|
- bin/wrjpgcom
|
|
|
|
|
2024-03-08 18:39:50 +03:00
|
|
|
test:
|
|
|
|
- jpegtran -crop 1x1 -transpose -perfect -outfile out.jpg fixture.jpeg
|
|
|
|
- test -f out.jpg
|