|
|
@ -1,7 +1,6 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
# Fanta <fanta@56k.es>
|
|
|
|
# Fanta <fanta@56k.es>
|
|
|
|
# Script to compile the most recent dosbox-x version on diferent GNU+Linux distros.
|
|
|
|
# Script para compilar la versión más reciente de dosbox-x en Debian
|
|
|
|
# Script para compilar la versión más reciente de dosbox-x en diferentes distros GNU+Linux
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
d="/tmp/dosbox-x"
|
|
|
|
d="/tmp/dosbox-x"
|
|
|
|
|
|
|
|
|
|
|
@ -10,13 +9,6 @@ if [ "$(whoami)" != "root" ]; then
|
|
|
|
echo -e "\e[31m\e[1m[NOT OK]\e[0m Run it with root please" && exit
|
|
|
|
echo -e "\e[31m\e[1m[NOT OK]\e[0m Run it with root please" && exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Arch Linux
|
|
|
|
|
|
|
|
if [ -f "/etc/arch-release" ]; then
|
|
|
|
|
|
|
|
pacman -Syu --noconfirm ; pacman -S git base-devel autoconf sdl sdl2 libpng automake gzip gcc ncurses opusfile alsa-lib sdl_net fluidsynth --noconfirm
|
|
|
|
|
|
|
|
git clone "https://github.com/joncampbell123/dosbox-x" $d ; cd $d
|
|
|
|
|
|
|
|
bash build-debug-sdl2 ; make install; sleep 2; rm -rf $d
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Debian 10
|
|
|
|
# Debian 10
|
|
|
|
cat /etc/issue | grep "Debian GNU/Linux 10" 1>/dev/null ; if [ "$?" -ne 1 ]; then
|
|
|
|
cat /etc/issue | grep "Debian GNU/Linux 10" 1>/dev/null ; if [ "$?" -ne 1 ]; then
|
|
|
|
apt update -y ; apt install automake git gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype6-dev libxkbfile-dev libxrandr-dev -y
|
|
|
|
apt update -y ; apt install automake git gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype6-dev libxkbfile-dev libxrandr-dev -y
|
|
|
@ -37,25 +29,3 @@ cat /etc/issue | grep "Debian GNU/Linux 12" 1>/dev/null ; if [ "$?" -ne 1 ]; the
|
|
|
|
git clone "https://github.com/joncampbell123/dosbox-x" $d ; cd $d
|
|
|
|
git clone "https://github.com/joncampbell123/dosbox-x" $d ; cd $d
|
|
|
|
bash build-debug-sdl2 ; make install ; sleep 2; rm -rf $d
|
|
|
|
bash build-debug-sdl2 ; make install ; sleep 2; rm -rf $d
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Ubuntu 20.04.4 LTS
|
|
|
|
|
|
|
|
cat /etc/issue | grep "Ubuntu 20.04.4 LTS" 1>/dev/null ; if [ "$?" -ne 1 ]; then
|
|
|
|
|
|
|
|
apt update -y ; apt install automake git gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype6-dev libxkbfile-dev libxrandr-dev -y
|
|
|
|
|
|
|
|
git clone "https://github.com/joncampbell123/dosbox-x" $d ; cd $d
|
|
|
|
|
|
|
|
bash build-debug-sdl2 ; make install ; rm -rf $d
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Ubuntu 22.04.1 LTS
|
|
|
|
|
|
|
|
cat /etc/issue | grep "Ubuntu 22.04.1 LTS" 1>/dev/null ; if [ "$?" -ne 1 ]; then
|
|
|
|
|
|
|
|
apt update -y ; apt install automake git gcc g++ make libncurses-dev nasm libsdl-net1.2-dev libsdl2-net-dev libpcap-dev fluidsynth libfluidsynth-dev libavdevice58 libavformat-dev libavcodec-dev libavcodec-extra libavcodec-extra58 libswscale-dev libfreetype6-dev libxkbfile-dev libxrandr-dev -y
|
|
|
|
|
|
|
|
git clone "https://github.com/joncampbell123/dosbox-x" $d ; cd $d
|
|
|
|
|
|
|
|
bash build-debug-sdl2 ; make install ; rm -rf $d
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# OpenSUSE Leap 15.4
|
|
|
|
|
|
|
|
cat /etc/os-release | grep -iE "openSUSE Leap 15.4" 1>/dev/null ; if [ "$?" -ne 1 ]; then
|
|
|
|
|
|
|
|
zypper refresh ; zypper in -y git gcc gcc-c++ make nasm libncurses* libSDL2_net* fluidsynth libpcap-devel automake ncurses-devel zlib-devel
|
|
|
|
|
|
|
|
git clone "https://github.com/joncampbell123/dosbox-x" $d ; cd $d
|
|
|
|
|
|
|
|
export LDFLAGS="-Wl,--copy-dt-needed-entries"
|
|
|
|
|
|
|
|
bash build-debug-sdl2 ; make install ; rm -rf $d
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|