View Single Post
Old September 24, 2018, 11:27   #24
t4nk
Swordsman
 
Join Date: May 2016
Posts: 330
t4nk is on a distinguished road
I sent the pull request:
https://github.com/angband/angband/pull/502

For those who are interested in compiling it (instructions for Debian-based systems!):

You'll need three libraries: the "base" SDL2, SDL2_ttf (fonts stuff) and SDL2_image (loading .png files and such). Also, their dependecies (Freetype, zlib and co). If you want sounds, you'll also need SDL2_mixer. In short:
Code:
apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
Clone the repo and switch to sdl2 branch:
Code:
git clone https://github.com/t4nk074/angband
git checkout sdl2
Configure Angband without any frontends (just in case):
Code:
cd angband
./autogen.sh
./configure --with-no-install --disable-curses --disable-x11
(I think other stuff is disabled by default)

Now compile the game using Makefile.sdl2:
Code:
cd src
make -f Makefile.sdl2
If you want sounds, use this instead:
Code:
cd src
SOUND=yes make -f Makefile.sdl2
Now it should work... well, works for me
Code:
cd ..
./angband
Let me know if there are any problems!
t4nk is offline   Reply With Quote