From c37a49a9480d0a40c8192b67eb3b2df073ca86df Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Mon, 5 May 2014 08:19:07 +0200 Subject: [PATCH] added missing hsSDL2-stuff to dependencies. --- deps/getDeps.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/deps/getDeps.sh b/deps/getDeps.sh index bde7d1f..4c17d5e 100755 --- a/deps/getDeps.sh +++ b/deps/getDeps.sh @@ -14,7 +14,7 @@ fi if [[ $install -eq 0 ]] then - sudo apt-get install libsdl2-dev libsdl2-ttf-dev + sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev fi @@ -38,6 +38,25 @@ else cd .. fi +if [ ! -d "hsSDL2-mixer" ] +then + git clone https://github.com/jdeseno/hs-sdl2-mixer hsSDL2-mixer +else + cd hsSDL2-mixer + git pull + cd .. +fi + +if [ ! -d "hsSDL2-image" ] +then + git clone https://github.com/jdeseno/hs-sdl2-image hsSDL2-image +else + cd hsSDL2-image + git pull + cd .. +fi + + echo "trying to build" cabal install haddock @@ -51,7 +70,7 @@ cabal install --only-dependencies cabal build cd .. -for t in "hsSDL2-ttf" +for t in "hsSDL2-ttf" "hsSDL2-mixer" "hsSDL2-image" do echo "building ${t}.." cd "${t}"