The source uses CMake for compiling the program.

I provided the compile.sh script that can help in this phase.

You can modify CMakeLists.txt for switch some compilation option ON/OFF:

Allow to use libsidplay2 (library must to be patched with cia1.patch for working):
option (WITH_SIDPLAY2 "UseSidplay2 library" ON) 

Allow to use libsidplayfp (default library: must to be patched with cia1_.patch and resid_.patch for working):
option (WITH_SIDPLAYFP "UseSidplayFp library" ON) 

Note: not use libsidplay2 and libsidplayfp file together, as actually there are still some names than conflicts

Note2: libsidplayfp needs to be static for allowing resid_.patch to works, so the source link to lib64 positions.
For 32 bits it needs to be modified.

Allow to use TSID library:
option (WITH_TSID "Use TSID library" ON)

Allow to use TSID2 library:
option (WITH_TSID2 "Use TSID2 library" ON)

Allow to have some debug information printed to console:
set (XSID_WB_DEBUG 1)
set (XSID_SDL_DEBUG 1)
set (XSID_ALSA_DEBUG 1)
set (XSID_PLAYER_DEBUG 1)