From bbc2fbdacfa8238821c127c4cd5c0b9b3c215779 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sun, 21 Jan 2024 06:25:58 +0900 Subject: fix install-build-deps.sh to run on FreeBSD --- scripts/install-build-deps.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts/install-build-deps.sh') diff --git a/scripts/install-build-deps.sh b/scripts/install-build-deps.sh index ac9e4f1..92ee42b 100755 --- a/scripts/install-build-deps.sh +++ b/scripts/install-build-deps.sh @@ -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 -- cgit v1.2.3