9 git binutils meson pkgconf gcc linux-headers diffutils \
10 procps socat shadow sudo libgcrypt-dev texinfo gzip \
11 openssl-dev zlib-dev lzo-dev ncurses-dev readline-dev musl-dev lz4-dev vde2-dev cmocka-dev
14 deps_linux_debian_mingw() {
16 mingw-w64 mingw-w64-tools \
18 libgcrypt-mingw-w64-dev \
22 deps_linux_debian_linux() {
23 if [ -n "$HOST" ]; then
24 dpkg --add-architecture "$HOST"
35 libncurses-dev:"$HOST" \
36 libreadline-dev:"$HOST" \
37 libgcrypt-dev:"$HOST" \
38 libminiupnpc-dev:"$HOST" \
39 libvdeplug-dev:"$HOST" \
40 libcmocka-dev:"$HOST" \
43 if [ -n "$HOST" ]; then
44 apt-get install -y crossbuild-essential-"$HOST" qemu-user
51 export DEBIAN_FRONTEND=noninteractive
55 apt-get install -y git pkgconf diffutils sudo texinfo \
56 netcat-openbsd procps socat
59 if [ "$HOST" = mingw ]; then
60 deps_linux_debian_mingw "$@"
62 deps_linux_debian_linux "$@"
67 # Debian Buster ships an old version of meson (0.49).
68 # MinGW cross-compilation requires something newer than 0.55 that ships in Bullseye,
69 # or it fails when looking for dependencies in the OpenSSL wrap.
70 if [ "${ID:-}/${VERSION_CODENAME:-}" = debian/buster ] || [ "$HOST" = mingw ]; then
71 apt-get install -y python3 python3-pip ninja-build
74 apt-get install -y meson
79 if [ "$ID" != fedora ]; then
80 yum install -y epel-release
83 dnf install -y 'dnf-command(config-manager)'
84 dnf config-manager --enable powertools
91 git binutils make meson pkgconf gcc diffutils sudo texinfo-tex netcat procps systemd perl-IPC-Cmd \
92 findutils socat lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel "$@"
94 if yum info openssl11-devel; then
95 yum install -y openssl11-devel
97 dnf install -y openssl-devel
100 if yum info miniupnpc-devel; then
101 yum install -y miniupnpc-devel
106 src=/usr/local/src/openssl
111 git clone --depth 1 --branch openssl-3.0.2 https://github.com/openssl/openssl $src
114 ./Configure --prefix=$ssl3 --openssldir=$ssl3
118 if [ -f /etc/ld.so.conf ]; then
119 echo $ssl3/lib64 >>/etc/ld.so.conf
122 ldconfig -v $ssl3/lib64
133 deps_linux_alpine "$@"
137 deps_linux_debian "$@"
140 centos | almalinux | fedora)
150 brew install coreutils netcat lzo lz4 miniupnpc libgcrypt openssl meson "$@"
151 pip3 install --user compiledb
154 case "$(uname -s)" in
155 Linux) deps_linux "$@" ;;
156 Darwin) deps_macos "$@" ;;