diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-13 21:50:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-13 21:50:07 +0300 |
commit | eefb212caca31d46f1d36ce272d4bc6842c039f0 (patch) | |
tree | a7736bff39c0920e0522ce00813602bde4710c22 /packaging/nacl/ports/sdl/build.sh | |
parent | 9406e61b5ee96e25b10fbf915725f69d6f6ceeb8 (diff) | |
download | manaverse-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.gz manaverse-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.bz2 manaverse-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.xz manaverse-eefb212caca31d46f1d36ce272d4bc6842c039f0.zip |
Add chrome ports patches for build manaplus on nacl.
Diffstat (limited to 'packaging/nacl/ports/sdl/build.sh')
-rw-r--r-- | packaging/nacl/ports/sdl/build.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/packaging/nacl/ports/sdl/build.sh b/packaging/nacl/ports/sdl/build.sh new file mode 100644 index 000000000..036ec8ee6 --- /dev/null +++ b/packaging/nacl/ports/sdl/build.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# Copyright (c) 2011 The Native Client Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +CONFIG_SUB=build-scripts/config.sub + +AutogenStep() { + ChangeDir ${SRC_DIR} + # For some reason if we don't remove configure before running + # autoconf it doesn't always get updates correctly. About half + # the time the old configure script (with no reference to nacl) + # will remain after ./autogen.sh + rm -f configure + ./autogen.sh + PatchConfigure + PatchConfigSub + cd - +} + + +ConfigureStep() { + AutogenStep + SetupCrossEnvironment + + local conf_host=${NACL_CROSS_PREFIX} + if [ ${NACL_ARCH} = "pnacl" ]; then + # The PNaCl tools use "pnacl-" as the prefix, but config.sub + # does not know about "pnacl". It only knows about "le32-nacl". + # Unfortunately, most of the config.subs here are so old that + # it doesn't know about that "le32" either. So we just say "nacl". + conf_host="nacl-pnacl" + fi + + LogExecute ${SRC_DIR}/configure \ + --host=${conf_host} \ + --prefix=${PREFIX} \ + --disable-assembly \ + --disable-pthread-sem +} |