Ports: Add highway

This library is used by multiple projects but was ported to get `libjxl`
on SerenityOS.
This commit is contained in:
Lucas CHOLLET 2023-08-19 22:37:41 -04:00 committed by Tim Schumacher
parent 09099cc9a3
commit 7a993cad7a
Notes: sideshowbarker 2024-07-16 18:06:41 +09:00
2 changed files with 22 additions and 0 deletions

View file

@ -117,6 +117,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`harfbuzz`](harfbuzz/) | HarfBuzz | 4.3.0 | https://github.com/harfbuzz/harfbuzz |
| [`hatari`](hatari/) | Atari ST/STE/TT/Falcon emulator | 2.4.1 | https://hatari.tuxfamily.org/ |
| [`hexedit`](hexedit/) | A console-based hex editor | 1.6 | https://github.com/pixel/hexedit |
| [`highway`](highway/) | Highway | 1.0.7 | https://github.com/google/highway |
| [`imagemagick`](imagemagick/) | ImageMagick | 7.1.1-5 | https://imagemagick.org |
| [`imgcat`](imgcat/) | imgcat | 2.5.1 | https://github.com/eddieantonio/imgcat |
| [`indent`](indent/) | GNU indent | 2.2.11 | https://www.gnu.org/software/indent/ |

21
Ports/highway/package.sh Executable file
View file

@ -0,0 +1,21 @@
#!/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
}