Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- set -eux &&
- cd "$(dirname "$0")"/warzone2100 &&
- #tag=3.1.5 &&
- tag=3.2.3 &&
- rm -Rf ++build ++install-$tag &&
- git fetch --tag &&
- git reset --hard &&
- git checkout $tag &&
- ./autogen.sh &&
- prefix=$(pwd)/++install-$tag &&
- mkdir ++build &&
- oldpwd=$(pwd) &&
- cd ++build &&
- # build dependencies:
- # autoconf automake (libtool)
- # qtbase5-dev libqt5opengl5-dev qtscript5-dev libqt5x11extras5-dev
- # libsdl2-dev
- # libssl-dev
- # libtheora-dev
- # libopenal-dev
- # libvorbis-dev
- # libglew-dev
- # libphysfs-dev
- # libxrandr-dev
- # libfribidi-dev
- # libfreetype6-dev
- # libfontconfig1-dev
- ../configure \
- --prefix=$prefix \
- --enable-debug=no \
- --with-backend=sdl \
- CPPFLAGS='-DNDEBUG' \
- CFLAGS='-O3 -march=native' \
- CXXFLAGS='-O3 -march=native' \
- "$@" &&
- make -j$(nproc || getconf _NPROCESSORS_ONLN) install &&
- cd "$oldpwd" &&
- rm -Rf ++build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement