X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=.travis-before_install-xonotic.sh;h=5b03c090baa4e891f33fe3e2fab7412031064910;hp=982de6d8a59999c5516894da1f10255cd2b54260;hb=9ba529f6b88337d1f8ca249a66dc060917e3c3e8;hpb=9a2612ff0270451436ef081994bb20dcb4299916 diff --git a/.travis-before_install-xonotic.sh b/.travis-before_install-xonotic.sh index 982de6d8..5b03c090 100755 --- a/.travis-before_install-xonotic.sh +++ b/.travis-before_install-xonotic.sh @@ -2,9 +2,8 @@ set -ex -if [ "`uname`" = 'Linux' ]; then - sudo apt-get update -qq -fi +export USRLOCAL="$PWD"/usrlocal +mkdir "$USRLOCAL" for os in "$@"; do git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \ @@ -12,46 +11,37 @@ for os in "$@"; do case "$os" in linux32) - # Prepare an i386 chroot. This is required as we otherwise can't install - # our dependencies to be able to compile a 32bit binary. Ubuntu... - chroot="$PWD"/buildroot.i386 - mkdir -p "$chroot$PWD" - sudo apt-get install -y debootstrap - sudo i386 debootstrap --arch=i386 precise "$chroot" - sudo mount --rbind "$PWD" "$chroot$PWD" - sudo i386 chroot "$chroot" apt-get install -y \ - build-essential - # Now install our dependencies. - sudo i386 chroot "$chroot" apt-get install -y \ - libxpm-dev libsdl1.2-dev libxxf86vm-dev - wget https://www.libsdl.org/release/SDL2-2.0.3.tar.gz - tar xf SDL2-2.0.3.tar.gz + wget https://www.libsdl.org/release/SDL2-2.0.4.tar.gz + tar xf SDL2-2.0.4.tar.gz ( - cd SDL2-2.0.3 - sudo i386 chroot "$chroot" sh -c "cd $PWD && ./configure --enable-static --disable-shared" - sudo i386 chroot "$chroot" make -C "$PWD" - sudo i386 chroot "$chroot" make -C "$PWD" install + cd SDL2-2.0.4 + export CC="gcc -m32" + i386 ./configure --enable-static --disable-shared --prefix="$USRLOCAL" || cat config.log + i386 make + i386 make install ) ;; linux64) - sudo apt-get install -y \ - libxpm-dev libsdl1.2-dev libxxf86vm-dev - wget https://www.libsdl.org/release/SDL2-2.0.3.tar.gz - tar xf SDL2-2.0.3.tar.gz + wget https://www.libsdl.org/release/SDL2-2.0.4.tar.gz + tar xf SDL2-2.0.4.tar.gz ( - cd SDL2-2.0.3 - ./configure --enable-static --disable-shared + cd SDL2-2.0.4 + ./configure --enable-static --disable-shared --prefix="$USRLOCAL" make - sudo make install + make install ) ;; win32) - sudo apt-get install -y \ - mingw-w64 mingw32- mingw32-binutils- + git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \ + --prefix=".icons/" master:"misc/logos/icons_ico" | tar xvf - + mv .icons/xonotic.ico darkplaces.ico + wget -qO- http://beta.xonotic.org/win-builds.org/cross_toolchain_32.tar.xz | tar xaJvf - -C"$USRLOCAL" opt/cross_toolchain_32 ;; win64) - sudo apt-get install -y \ - mingw-w64 mingw32- mingw32-binutils- + git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \ + --prefix=".icons/" master:"misc/logos/icons_ico" | tar xvf - + mv .icons/xonotic.ico darkplaces.ico + wget -qO- http://beta.xonotic.org/win-builds.org/cross_toolchain_64.tar.xz | tar xvJf - -C"$USRLOCAL" opt/cross_toolchain_64 ;; osx) git archive --format=tar --remote=git://de.git.xonotic.org/xonotic/xonotic.git \