diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 32e1ebd002..5936fcc275 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -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/ | diff --git a/Ports/highway/package.sh b/Ports/highway/package.sh new file mode 100755 index 0000000000..b2ccb2324f --- /dev/null +++ b/Ports/highway/package.sh @@ -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 +}