xref: /spdk/scripts/pkgdep/freebsd.sh (revision 4d0ed159d63c39ed5a1caedf7f67ebaac6cfd762)
1#!/usr/bin/env bash
2#  SPDX-License-Identifier: BSD-3-Clause
3#  Copyright (C) 2020 Intel Corporation
4#  All rights reserved.
5#
6# Minimal install
7pkg install -y gmake cunit openssl git bash python ncurses ninja meson
8pkg install -g -y "py*-pyelftools-*" "py*-pandas" "py*-Jinja2" "py*-tabulate-*"
9# Additional dependencies for ISA-L used in compression
10pkg install -y autoconf automake libtool help2man
11if [[ $INSTALL_DEV_TOOLS == "true" ]]; then
12	# Tools for developers
13	pkg install -y devel/astyle bash sysutils/sg3_utils nasm \
14		bash-completion ruby devel/ruby-gems lcov
15	pkg install -g -y "py*-pycodestyle"
16	# ruby and ruby-gems are not preinstalled on FreeBSD but are needed to
17	# build mdl - make sure they are in place.
18	pkg install -y ruby devel/ruby-gems rubygem-{bundler,rake}
19fi
20if [[ $INSTALL_DOCS == "true" ]]; then
21	# Additional dependencies for building docs
22	pkg install -y doxygen mscgen graphviz
23fi
24
25if [[ $INSTALL_LIBURING == "true" ]]; then
26	printf 'liburing is not supported on %s, disabling\n' \
27		"$(freebsd-version)"
28	INSTALL_LIBURING=false
29fi
30
31if [[ $INSTALL_RBD == "true" ]]; then
32	printf 'RBD is not supported on %s, disabling\n' \
33		"$(freebsd-version)"
34	INSTALL_RBD=false
35fi
36if [[ $INSTALL_LZ4 == "true" ]]; then
37	pkg install -y liblz4
38fi
39