ladybird/Ports/highway/package.sh
Lucas CHOLLET 7a993cad7a Ports: Add highway
This library is used by multiple projects but was ported to get `libjxl`
on SerenityOS.
2023-09-27 03:14:44 +02:00

21 lines
530 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port='highway'
version='1.0.7'
files=(
"https://github.com/google/highway/archive/refs/tags/${version}.tar.gz#5434488108186c170a5e2fca5e3c9b6ef59a1caa4d520b008a9b8be6b8abe6c5"
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
"-DCMAKE_BUILD_TYPE=Release"
"-DHWY_ENABLE_EXAMPLES=OFF"
"-DHWY_ENABLE_TESTS=OFF"
)
useconfigure='true'
configure() {
run cmake "${configopts[@]}"
}
install() {
run make "${installopts[@]}" install
}