diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-12-03 09:16:46 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-03 23:16:16 +0000 |
commit | 75558045721d82cf2d20a7b2a66504f0a484f822 (patch) | |
tree | b5fe6c32ed3ba66b4677e04e3796d402f4b8f9fa /Ports | |
parent | 6d9d9cb7f8c0e4173c66da7dd4667e66e836a02a (diff) | |
download | serenity-75558045721d82cf2d20a7b2a66504f0a484f822.zip |
Ports: Use CMake to build the zstd port
This makes the port install drop the CMake install files into the
sysroot, which is friendlier to macOS users. Homebrew CMake really
likes to pick homebrew zstd, even for cross-builds.
Diffstat (limited to 'Ports')
-rwxr-xr-x | Ports/zstd/package.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Ports/zstd/package.sh b/Ports/zstd/package.sh index b7dd878668..31e6f04c89 100755 --- a/Ports/zstd/package.sh +++ b/Ports/zstd/package.sh @@ -3,3 +3,16 @@ port=zstd version=1.5.2 files="https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz zstd-${version}.tar.gz 7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0" auth_type=sha256 +useconfigure='true' +configopts=( + "-Sbuild/cmake" + "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" +) + +configure() { + run cmake "${configopts[@]}" +} + +install() { + run make install +} |