Advertisement
Guest User

Build Warzone 2100

a guest
Apr 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.87 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. set -eux &&
  4.  
  5. cd "$(dirname "$0")"/warzone2100 &&
  6.  
  7. #tag=3.1.5 &&
  8. tag=3.2.3 &&
  9.  
  10. rm -Rf ++build ++install-$tag &&
  11.  
  12. git fetch --tag &&
  13. git reset --hard &&
  14. git checkout $tag &&
  15.  
  16. ./autogen.sh &&
  17.  
  18. prefix=$(pwd)/++install-$tag &&
  19.  
  20. mkdir ++build &&
  21. oldpwd=$(pwd) &&
  22. cd ++build &&
  23.  
  24. # build dependencies:
  25. # autoconf automake (libtool)
  26. # qtbase5-dev libqt5opengl5-dev qtscript5-dev libqt5x11extras5-dev
  27. # libsdl2-dev
  28. # libssl-dev
  29. # libtheora-dev
  30. # libopenal-dev
  31. # libvorbis-dev
  32. # libglew-dev
  33. # libphysfs-dev
  34. # libxrandr-dev
  35. # libfribidi-dev
  36. # libfreetype6-dev
  37. # libfontconfig1-dev
  38.  
  39. ../configure \
  40.     --prefix=$prefix \
  41.     --enable-debug=no \
  42.     --with-backend=sdl \
  43.     CPPFLAGS='-DNDEBUG' \
  44.     CFLAGS='-O3 -march=native' \
  45.     CXXFLAGS='-O3 -march=native' \
  46.     "$@" &&
  47.  
  48. make -j$(nproc || getconf _NPROCESSORS_ONLN) install &&
  49.  
  50. cd "$oldpwd" &&
  51. rm -Rf ++build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement