xref: /spdk/scripts/pkgdep/freebsd.sh (revision f6866117acb32c78d5ea7bd76ba330284655af35)
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"
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
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
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	# Additional dependencies for RBD bdev in NVMe over Fabrics
33	pkg install -y ceph || pkg install -y ceph14
34fi
35