Skip to content

Instantly share code, notes, and snippets.

@Corben78
Forked from PVince81/gist:63800bffd437f2175da9
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save Corben78/ff46e22f20261ec709c6 to your computer and use it in GitHub Desktop.

Select an option

Save Corben78/ff46e22f20261ec709c6 to your computer and use it in GitHub Desktop.
# set this to your Torchlight directory
TORCHLIGHTDIR=${1:-$HOME/games/Torchlight}
hg clone http://hg.libsdl.org/SDL
cd SDL
# check out the revision before the one that introduces the bug as advised here: http://forums.runicgames.com/viewtopic.php?f=24&t=33360&start=60#p474739
hg up 4de584a3a027 --clean
# Fix X11 compilation issues with another changeset
hg export 6caad66a4966 > patch
hg import patch
# just in case
./autogen.sh
# use build dir else configure will complain
mkdir build
cd build
../configure
make
# copy the resulting lib to the game's lib64 directory
[ -d $TORCHLIGHTDIR ] && cp -Rv build/.libs/libSDL2*so* $TORCHLIGHTDIR/lib64/ || echo Torchlight directory not found ($TORCHLIGHTDIR)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment