Merge branch 'master' into tessallation
This commit is contained in:
		@@ -11,6 +11,9 @@ NOTE: ubuntu saucy currently only has libsdl2-dev.2.0.0 in the repositories, but
 | 
			
		||||
make sure the compiled files are in your PATH (e.g. include $HOME/.cabal/bin in your $PATH)
 | 
			
		||||
 | 
			
		||||
install dependencies & configure app
 | 
			
		||||
> cabal sandbox init
 | 
			
		||||
> cabal sandbox --add-source deps/hsSDL2
 | 
			
		||||
> cabal sandbox --add-source deps/hsSDL2-ttf
 | 
			
		||||
> cabal install --only-dependencies
 | 
			
		||||
> cabal configure
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,21 +11,18 @@ executable Pioneers
 | 
			
		||||
  } else {
 | 
			
		||||
    ghc-options:     -Wall -Odph -rtsopts -threaded -fno-liberate-case -funfolding-use-threshold1000 -funfolding-keeness-factor1000 -optlo-O3 -fllvm
 | 
			
		||||
  }
 | 
			
		||||
  other-module
 | 
			
		||||
  other-modules:
 | 
			
		||||
                   Map.Types,
 | 
			
		||||
                   Map.Graphics,
 | 
			
		||||
                   Map.Creation,
 | 
			
		||||
                   Map.StaticMaps,
 | 
			
		||||
                   Importer.IQM.Types,
 | 
			
		||||
                   Importer.IQM.TestMain,
 | 
			
		||||
                   Importer.IQM.Parser,
 | 
			
		||||
                   Render.Misc,
 | 
			
		||||
                   Render.Render,
 | 
			
		||||
                   Render.RenderObject,
 | 
			
		||||
                   Render.Types,
 | 
			
		||||
                   UI.Callbacks,
 | 
			
		||||
                   UI.Types,
 | 
			
		||||
                   UI.SurfaceOverlay
 | 
			
		||||
                   Types
 | 
			
		||||
  main-is:         Main.hs
 | 
			
		||||
  build-depends:   
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								build.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								build.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
cabal sandbox init
 | 
			
		||||
 | 
			
		||||
cd deps
 | 
			
		||||
./getDeps.sh
 | 
			
		||||
cd ..
 | 
			
		||||
 | 
			
		||||
cabal sandbox add-source deps/hsSDL2
 | 
			
		||||
cabal sandbox add-source deps/hsSDL2-ttf
 | 
			
		||||
cabal install --only-dependencies
 | 
			
		||||
cabal configure
 | 
			
		||||
cabal build
 | 
			
		||||
							
								
								
									
										84
									
								
								deps/getDeps.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										84
									
								
								deps/getDeps.sh
									
									
									
									
										vendored
									
									
								
							@@ -1,11 +1,12 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
#hack until saucy has 2.0.1 instead of 2.0.0
 | 
			
		||||
 | 
			
		||||
if [ "$1" != "ni" ]
 | 
			
		||||
then
 | 
			
		||||
        if [ ! -f /usr/bin/dialog ]
 | 
			
		||||
	then
 | 
			
		||||
		sudo apt-get install dialog
 | 
			
		||||
	dialog --yesno "Install libSDL2.0.1 from ubuntu trusty?\nCurrently needed for saucy as they only serve 2.0.0 in the repos\n\nThe script will try to download the trusty-packages and resolve dependencies via gdebi" 20 75
 | 
			
		||||
	fi
 | 
			
		||||
        dialog --yesno "Install libSDL2 from ubuntu trusty repositories?\n\nSAUCY IS NOT SUPPORTED! You NEED Ubuntu 14.04+\n\nThe script will try to install the trusty-packages." 20 75
 | 
			
		||||
	install=${?}
 | 
			
		||||
else
 | 
			
		||||
	install=0
 | 
			
		||||
@@ -13,51 +14,10 @@ fi
 | 
			
		||||
 | 
			
		||||
if [[ $install -eq 0 ]]
 | 
			
		||||
then
 | 
			
		||||
	sudo apt-get install gdebi
 | 
			
		||||
	echo "installing libsdl2.0.1"
 | 
			
		||||
	if [ ! -f "libsdl2-2.0-0_2.0.1+dfsg1-1ubuntu1_amd64.deb" ]
 | 
			
		||||
	then
 | 
			
		||||
		wget http://de.archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2/libsdl2-2.0-0_2.0.1+dfsg1-1ubuntu1_amd64.deb
 | 
			
		||||
		sudo gdebi --n libsdl2-2.0-0_2.0.1+dfsg1-1ubuntu1_amd64.deb
 | 
			
		||||
	sudo apt-get install libsdl2-dev libsdl2-ttf-dev
 | 
			
		||||
fi
 | 
			
		||||
	if [ ! -f "libsdl2-dev_2.0.1+dfsg1-1ubuntu1_amd64.deb" ]
 | 
			
		||||
	then
 | 
			
		||||
		wget http://de.archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2/libsdl2-dev_2.0.1+dfsg1-1ubuntu1_amd64.deb
 | 
			
		||||
		sudo gdebi --n libsdl2-dev_2.0.1+dfsg1-1ubuntu1_amd64.deb
 | 
			
		||||
	fi
 | 
			
		||||
	if [ ! -f "libsdl2-dbg_2.0.1+dfsg1-1ubuntu1_amd64.deb" ]
 | 
			
		||||
	then
 | 
			
		||||
		wget http://de.archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2/libsdl2-dbg_2.0.1+dfsg1-1ubuntu1_amd64.deb
 | 
			
		||||
		sudo gdebi --n libsdl2-dbg_2.0.1+dfsg1-1ubuntu1_amd64.deb
 | 
			
		||||
	fi
 | 
			
		||||
	if [ ! -f "libsdl2-ttf-2.0-0_2.0.12+dfsg1-2_amd64.deb" ]
 | 
			
		||||
	then
 | 
			
		||||
		wget http://de.archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2-ttf/libsdl2-ttf-2.0-0_2.0.12+dfsg1-2_amd64.deb
 | 
			
		||||
		sudo gdebi --n libsdl2-ttf-2.0-0_2.0.12+dfsg1-2_amd64.deb
 | 
			
		||||
	fi
 | 
			
		||||
	if [ ! -f "libsdl2-ttf-dev_2.0.12+dfsg1-2_amd64.deb" ]
 | 
			
		||||
	then
 | 
			
		||||
		wget http://de.archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2-ttf/libsdl2-ttf-dev_2.0.12+dfsg1-2_amd64.deb
 | 
			
		||||
		sudo gdebi --n libsdl2-ttf-dev_2.0.12+dfsg1-2_amd64.deb
 | 
			
		||||
	fi
 | 
			
		||||
# this update would need tons of further package-updates... like killing libsdl1.2:i386
 | 
			
		||||
#	if [ ! -f "libtiff5_4.0.3-7_amd64.deb" ]
 | 
			
		||||
#	then
 | 
			
		||||
#		wget http://de.archive.ubuntu.com/ubuntu/pool/main/t/tiff/libtiff5_4.0.3-7_amd64.deb
 | 
			
		||||
#		sudo gdebi --n libtiff5_4.0.3-7_amd64.deb
 | 
			
		||||
#	fi
 | 
			
		||||
#	if [ ! -f "libsdl2-image-2.0-0_2.0.0+dfsg-3_amd64.deb" ]
 | 
			
		||||
#	then
 | 
			
		||||
#		wget http://de.archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2-image/libsdl2-image-2.0-0_2.0.0+dfsg-3build2_amd64.deb
 | 
			
		||||
#		sudo gdebi --n libsdl2-image-2.0-0_2.0.0+dfsg-3build2_amd64.deb
 | 
			
		||||
#	fi
 | 
			
		||||
#	if [ ! -f "libsdl2-image-dev_2.0.0+dfsg-3_amd64.deb" ]
 | 
			
		||||
#	then
 | 
			
		||||
#		wget http://de.archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2-image/libsdl2-image-dev_2.0.0+dfsg-3build2_amd64.deb
 | 
			
		||||
#		sudo gdebi --n libsdl2-image-dev_2.0.0+dfsg-3build2_amd64.deb
 | 
			
		||||
#	fi
 | 
			
		||||
fi
 | 
			
		||||
## hack end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
echo "cloning repositories"
 | 
			
		||||
if [ ! -d "hsSDL2" ]
 | 
			
		||||
@@ -82,20 +42,24 @@ echo "trying to build"
 | 
			
		||||
 | 
			
		||||
cabal install haddock
 | 
			
		||||
 | 
			
		||||
for d in `find . -maxdepth 1 -type d`
 | 
			
		||||
do
 | 
			
		||||
	if [ "$d" == "." ]
 | 
			
		||||
	then
 | 
			
		||||
		continue
 | 
			
		||||
	else
 | 
			
		||||
		echo "building: $d ..."
 | 
			
		||||
		cd "$d"
 | 
			
		||||
		cabal clean
 | 
			
		||||
		cabal configure
 | 
			
		||||
echo "building hsSDL2.."
 | 
			
		||||
 | 
			
		||||
cd hsSDL2
 | 
			
		||||
cabal sandbox delete
 | 
			
		||||
cabal sandbox init
 | 
			
		||||
cabal install --only-dependencies
 | 
			
		||||
cabal build
 | 
			
		||||
cd ..
 | 
			
		||||
 | 
			
		||||
for t in "hsSDL2-ttf"
 | 
			
		||||
do
 | 
			
		||||
	echo "building ${t}.."
 | 
			
		||||
	cd "${t}"
 | 
			
		||||
	cabal sandbox delete
 | 
			
		||||
	cabal sandbox init
 | 
			
		||||
	cabal sandbox add-source ../hsSDL2
 | 
			
		||||
	cabal install --only-dependencies
 | 
			
		||||
	cabal build
 | 
			
		||||
		cabal haddock --hyperlink-source
 | 
			
		||||
		cabal install --force-reinstalls
 | 
			
		||||
	cd ..
 | 
			
		||||
	fi
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user