1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 02:47:35 +00:00

Ports: Add libjxl :^)

This commit is contained in:
Lucas CHOLLET 2023-09-11 13:56:09 +02:00 committed by Tim Schumacher
parent 48a1fe8308
commit e62a4c169b
4 changed files with 80 additions and 0 deletions

34
Ports/libjxl/package.sh Executable file
View file

@ -0,0 +1,34 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='libjxl'
version='2023.09.11'
files=(
"git+https://github.com/libjxl/libjxl#ff8a9c1cd54d324137c1905017542ffedeacdef8"
)
depends=(
'brotli'
'highway'
'lcms2'
'libpng'
)
workdir='libjxl'
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
"-DCMAKE_BUILD_TYPE=Release"
"-DBUILD_TESTING=OFF"
"-DJPEGXL_ENABLE_BENCHMARK=OFF"
"-DJPEGXL_ENABLE_SKCMS=OFF"
"-DJPEGXL_ENABLE_SJPEG=OFF"
)
useconfigure='true'
configure() {
run cmake "${configopts[@]}" .
}
install() {
run make "${installopts[@]}" install
}