diff --git a/debian-build.sh b/debian-build.sh new file mode 100755 index 00000000..d8d6098f --- /dev/null +++ b/debian-build.sh @@ -0,0 +1,23 @@ +#!/bin/bash +#A script to build working executables for debian + +#WARNING: This will not work on debian wheezy. +# The network code was partially rewritten to use SFML2 which is not available on that distribution + +DEV_PACKAGES=( zlib1g-dev libpng-dev libgl1-mesa-dev libsdl1.2-dev libsfml-dev libgtkmm-2.4-dev libopenal-dev libwxgtk2.8-dev libgtkglextmm-x11-1.2-dev ) + +BUILD_PACKAGES=( build-essential cmake git ${DEV_PACKAGES[*]} zip ) + +BUILD_DIRECTORY="build" + +sudo apt-get update +sudo apt-get install ${BUILD_PACKAGES[*]} + +if [ -d "$BUILD_DIRECTORY" ]; then + rm -r "$BUILD_DIRECTORY" +fi +mkdir "$BUILD_DIRECTORY" +cd build +# cmake -DCMAKE_BUILD_TYPE=Debug .. +cmake .. +make