fix install-build-deps.sh to run on FreeBSD

This commit is contained in:
Ryo Nakamura
2024-01-21 06:25:58 +09:00
parent 331bab6b41
commit bbc2fbdacf

View File

@@ -1,7 +1,10 @@
#!/bin/bash -eu
#!/usr/bin/env bash
#
# Install build dpenedencies.
set -e
set -u
platform=$(uname -s)
if [ -e /etc/os-release ]; then
@@ -23,6 +26,9 @@ case $platform in
yum install -y \
gcc make cmake zlib-devel openssl-devel rpm-build
;;
FreeBSD-freebsd)
pkg install cmake
;;
*)
echo "unsupported platform: $platform"
exit 1