Dosbox (Emulator)

From campisano.org
Jump to navigation Jump to search

Dosbox

Install

# shared/opt install schema v1.3.1
su -
#### as root ####
# cleanup
apt-get autoremove --purge \*dosbox\*
# dependencies
apt-get -qq -y install wget coreutils findutils
# dependencies for terminal version
apt-get -qq -y install tar gzip gcc make libsdl1.2-dev
# binary
SOFTWARE_PATH="/home/shared/opt/software"
NAME="dosbox"
VERSION="0.74-3"
URL="https://ufpr.dl.sourceforge.net/project/dosbox/dosbox/0.74-3/dosbox-${VERSION}.tar.gz"
umask 0027
mkdir -p "${SOFTWARE_PATH}/tmp/${NAME}_${VERSION}"
cd "${SOFTWARE_PATH}/tmp"
wget -c --no-check-certificate "${URL}"
tar -xzf "dosbox-${VERSION}.tar.gz"
cd "dosbox-${VERSION}"
# configure for terminal version
CFLAGS="-g0 -O3 -march=native -s" ./configure --prefix=${SOFTWARE_PATH}/${NAME}_${VERSION} --enable-alsa-midi
make
make install
cd "${SOFTWARE_PATH}"
chown -R root:users "${NAME}_${VERSION}"
find "${NAME}_${VERSION}" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "${NAME}_${VERSION}" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
rm -rf tmp
ln -s -f -T "${NAME}_${VERSION}" "${NAME}"
exit
#### as final user
SOFTWARE_PATH="/home/shared/opt/software"
NAME="dosbox"
"${SOFTWARE_PATH}/dosbox/bin/dosbox"