2020-04-06 00:47:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
OS=`uname`
|
|
|
|
if [ $OS == "Linux" ]; then
|
|
|
|
echo "detected linux"
|
|
|
|
if [ -x "$(command -v lsb_release)" ]; then
|
|
|
|
DISTRO=`lsb_release -cs`
|
|
|
|
echo "detected ${DISTRO}"
|
|
|
|
case $DISTRO in
|
2021-03-21 21:58:18 +00:00
|
|
|
"hirsute")
|
|
|
|
sudo apt-get install build-essential clang cmake libboost-thread1.71-dev libboost-system1.71-dev libboost-filesystem1.71-dev libboost-date-time1.71-dev libboost-atomic1.71-dev libboost-chrono1.71-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncurses-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libtag1-dev libsystemd-dev libavcodec-extra libopenmpt-dev libssl-dev libspa-0.2-dev libpipewire-0.3-dev pipewire pipewire-bin pipewire-audio-client-libraries
|
|
|
|
;;
|
2020-10-23 00:15:24 +00:00
|
|
|
"focal" | "groovy")
|
2020-06-19 05:27:56 +00:00
|
|
|
sudo apt-get install build-essential clang cmake libboost-thread1.71-dev libboost-system1.71-dev libboost-filesystem1.71-dev libboost-date-time1.71-dev libboost-atomic1.71-dev libboost-chrono1.71-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncurses-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libtag1-dev libsystemd-dev libavcodec-extra libopenmpt-dev libssl-dev
|
2020-04-06 01:49:59 +00:00
|
|
|
;;
|
2020-11-20 23:42:55 +00:00
|
|
|
"buster")
|
|
|
|
sudo apt-get install build-essential clang cmake libboost-thread1.67-dev libboost-system1.67-dev libboost-filesystem1.67-dev libboost-date-time1.67-dev libboost-atomic1.67-dev libboost-chrono1.67-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libtag1-dev libsystemd-dev libavcodec-extra libopenmpt-dev libssl-dev
|
|
|
|
;;
|
2021-01-11 03:34:27 +00:00
|
|
|
"bullseye")
|
|
|
|
sudo apt-get install build-essential clang cmake libboost-thread1.74-dev libboost-system1.74-dev libboost-filesystem1.74-dev libboost-date-time1.74-dev libboost-atomic1.74-dev libboost-chrono1.74-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libtag1-dev libsystemd-dev libavcodec-extra58 libopenmpt-dev libssl-dev
|
|
|
|
;;
|
2020-04-06 00:47:00 +00:00
|
|
|
"cosmic" | "disco" | "eoan")
|
2020-06-19 05:27:56 +00:00
|
|
|
sudo apt-get install build-essential clang cmake libboost-thread1.67-dev libboost-system1.67-dev libboost-filesystem1.67-dev libboost-date-time1.67-dev libboost-atomic1.67-dev libboost-chrono1.67-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libtag1-dev libsystemd-dev libavcodec-extra libopenmpt-dev libssl-dev
|
2020-04-06 00:47:00 +00:00
|
|
|
;;
|
|
|
|
"bionic")
|
2020-06-19 05:27:56 +00:00
|
|
|
sudo apt-get install build-essential clang cmake libboost-thread1.65-dev libboost-system1.65-dev libboost-filesystem1.65-dev libboost-date-time1.65-dev libboost-atomic1.65-dev libboost-chrono1.65-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libtag1-dev libsystemd-dev libavcodec-extra libopenmpt-dev libssl-dev
|
2020-04-06 00:47:00 +00:00
|
|
|
;;
|
|
|
|
"artful")
|
2020-06-19 05:27:56 +00:00
|
|
|
sudo apt-get install build-essential clang cmake libboost-thread1.63-dev libboost-system1.63-dev libboost-filesystem1.63-dev libboost-date-time1.63-dev libboost-atomic1.63-dev libboost-chrono1.63-dev libogg-dev libvorbis-dev libavutil-dev libavformat-dev libswresample-dev libncursesw5-dev libasound2-dev libpulse-dev pulseaudio libmicrohttpd-dev libmp3lame-dev libcurl4-openssl-dev libev-dev libtag1-dev libsystemd-dev libavcodec-extra libopenmpt-dev libssl-dev
|
2020-04-06 00:47:00 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
if [ -f "/etc/fedora-release" ]; then
|
|
|
|
DISTRO=`cat /etc/fedora-release`
|
2021-04-14 05:02:34 +00:00
|
|
|
VERSION=$(cat /etc/fedora-release | awk '{ print $3 }')
|
|
|
|
echo "detected ${DISTRO} (version=${VERSION})"
|
2020-07-06 00:48:00 +00:00
|
|
|
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm rpm-build rpmdevtools 'dnf-command(builddep)'
|
2020-06-17 01:41:45 +00:00
|
|
|
sudo dnf install gcc-c++ make cmake boost-devel libogg-devel libvorbis-devel ffmpeg-devel ncurses-devel zlib-devel alsa-lib-devel pulseaudio-libs-devel libcurl-devel libmicrohttpd-devel lame-devel libev-devel openssl-devel taglib-devel systemd-devel libopenmpt-devel
|
2021-04-14 05:02:34 +00:00
|
|
|
case $VERSION in
|
|
|
|
"34")
|
|
|
|
sudo dnf install pipewire-devel pipewire-utils pipewire-libs
|
|
|
|
;;
|
|
|
|
esac
|
2020-04-06 00:47:00 +00:00
|
|
|
fi
|
|
|
|
if [ -f "/etc/arch-release" ] || [ -f "/etc/manjaro-release" ]; then
|
2020-06-17 01:41:45 +00:00
|
|
|
sudo pacman -S libogg libvorbis libmicrohttpd ffmpeg lame cmake ncurses boost pulseaudio libpulse alsa-lib curl libev taglib libopenmpt
|
2020-04-06 00:47:00 +00:00
|
|
|
fi
|
2020-04-06 02:29:24 +00:00
|
|
|
if [ -f "/etc/SUSE-brand" ]; then
|
|
|
|
echo "detected SUSE"
|
2020-06-17 01:41:45 +00:00
|
|
|
sudo zypper install libcurl-devel libmicrohttpd-devel libboost_thread1_71_0-devel libboost_system1_71_0-devel libboost_filesystem1_71_0-devel libboost_date_time1_71_0-devel libboost_atomic1_71_0-devel libboost_chrono1_71_0-devel cmake ncurses-devel libogg-devel libvorbis-devel ffmpeg-3-libavcodec-devel ffmpeg-3-libswresample-devel ffmpeg-3-libavformat-devel ffmpeg-3-libavutil-devel libmp3lame-devel pulseaudio libpulse-devel alsa-devel zlib-devel libressl-devel libev-devel libtag-devel systemd-devel libopenmpt-devel
|
2020-04-06 02:29:24 +00:00
|
|
|
fi
|
2020-04-06 00:47:00 +00:00
|
|
|
fi
|
|
|
|
if [ $OS == "Darwin" ]; then
|
|
|
|
echo "detected macos"
|
2020-06-17 01:41:45 +00:00
|
|
|
brew install cmake boost libogg libvorbis ffmpeg libmicrohttpd lame libev taglib libopenmpt
|
2020-04-06 00:47:00 +00:00
|
|
|
fi
|
|
|
|
if [ $OS == "FreeBSD" ]; then
|
|
|
|
echo "detected freebsd"
|
2020-06-16 22:53:30 +00:00
|
|
|
pkg install boost-all ncurses curl libvorbis libogg libmicrohttpd ffmpeg alsa-lib cmake sndio libev taglib bash libopenmpt
|
2020-04-06 00:47:00 +00:00
|
|
|
portsnap fetch
|
2020-04-06 02:29:24 +00:00
|
|
|
portsnap extract
|
2020-04-06 00:47:00 +00:00
|
|
|
cd /usr/ports/audio/lame
|
|
|
|
make reinstall
|
|
|
|
fi
|
|
|
|
if [ $OS == "OpenBSD" ]; then
|
|
|
|
echo "detected openbsd"
|
2020-06-17 01:41:45 +00:00
|
|
|
pkg_add git cmake ffmpeg boost sndio libev libmicrohttpd taglib libopenmpt
|
2020-04-06 00:47:00 +00:00
|
|
|
fi
|