mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
parent
49a965530a
commit
5e07d6a283
2 changed files with 31 additions and 32 deletions
2
.github/actions/setup/action.yml
vendored
2
.github/actions/setup/action.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: pkgx/brewkit/setup-codesign
|
name: pkgx/pantry/setup-codesign
|
||||||
description: Codesigns macOS binaries using Apple tools
|
description: Codesigns macOS binaries using Apple tools
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/libjxl/libjxl/archive/v{{version}}.tar.gz
|
url: git+https://github.com/libjxl/libjxl.git
|
||||||
strip-components: 1
|
ref: v{{version}}
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: libjxl/libjxl
|
github: libjxl/libjxl
|
||||||
|
@ -12,48 +12,47 @@ dependencies:
|
||||||
google.com/webp: ^1
|
google.com/webp: ^1
|
||||||
giflib.sourceforge.io: ^5
|
giflib.sourceforge.io: ^5
|
||||||
openexr.com: ^3
|
openexr.com: ^3
|
||||||
|
libpng.org: ^1
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/cjpeg_hdr
|
|
||||||
- bin/cjxl
|
- bin/cjxl
|
||||||
|
- bin/cjpegli
|
||||||
- bin/djxl
|
- bin/djxl
|
||||||
|
- bin/djpegli
|
||||||
- bin/jxlinfo
|
- bin/jxlinfo
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
cmake.org: ^3
|
cmake.org: ^3
|
||||||
gnu.org/coreutils: '*' # deps.sh needs “realpath”
|
gnu.org/coreutils: '*' # deps.sh needs “realpath”
|
||||||
|
git-scm.org: ^2
|
||||||
working-directory: build
|
working-directory: build
|
||||||
script: |
|
script:
|
||||||
GIT_DIR=$PWD ../deps.sh # †
|
# the `SJPEG` library is obscure and we have not yet pkg’d it.
|
||||||
find ../third_party -not -name sjpeg -mindepth 1 -maxdepth 1 -type d | xargs rm -rf # ‡
|
# 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: ..
|
||||||
|
|
||||||
cmake .. $ARGS
|
- cmake ..
|
||||||
make --jobs {{ hw.concurrency }} install
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
env:
|
-DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||||
# add any environment variables here
|
-DBUILD_TESTING=OFF
|
||||||
ARGS:
|
-DJPEGXL_ENABLE_SKCMS=OFF
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
-DJPEGXL_ENABLE_BENCHMARK=OFF
|
||||||
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
-DJPEGXL_VERSION={{version}}
|
||||||
- -DBUILD_TESTING=OFF
|
|
||||||
- -DJPEGXL_ENABLE_SKCMS=OFF
|
|
||||||
- -DJPEGXL_ENABLE_BENCHMARK=OFF
|
|
||||||
- -DJPEGXL_VERSION={{version}}
|
|
||||||
|
|
||||||
# † we set GIT_DIR because the script assumes git if it finds git rev-parse
|
- make --jobs {{ hw.concurrency }} install
|
||||||
# works, which it does for us because we have a git checkout both locally and
|
|
||||||
# in CI/CD
|
|
||||||
|
|
||||||
# ‡ we don’t want anything but sjpeg which is a super rare dep only used by
|
test: |
|
||||||
# this package
|
cjxl fixture.jpeg out.jxl
|
||||||
|
|
||||||
test:
|
cc fixture1.c -ljxl
|
||||||
script: |
|
./a.out
|
||||||
cjxl fixture.jpeg out.jxl
|
|
||||||
|
|
||||||
cc fixture1.c -ljxl
|
cc fixture2.c -ljxl_threads
|
||||||
./a.out
|
./a.out
|
||||||
|
|
||||||
cc fixture2.c -ljxl_threads
|
|
||||||
./a.out
|
|
||||||
|
|
Loading…
Reference in a new issue