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/manaplus/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/manaplus/build.sh')
-rwxr-xr-x | packaging/nacl/ports/manaplus/build.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/packaging/nacl/ports/manaplus/build.sh b/packaging/nacl/ports/manaplus/build.sh new file mode 100755 index 000000000..5947f3b53 --- /dev/null +++ b/packaging/nacl/ports/manaplus/build.sh @@ -0,0 +1,42 @@ +#!/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. + +GitCloneStep() { + if CheckKeyStamp clone "$URL" ; then + Banner "Skipping git clone step" + return + fi + + local GIT_URL=${URL%@*} + rm -rf ${SRC_DIR} + mkdir ${SRC_DIR} + git clone ${GIT_URL} ${SRC_DIR} + + TouchKeyStamp clone "$URL" +} + +ConfigureStep() { + Banner "Configuring ${PACKAGE_NAME}" + + SetupCrossEnvironment + export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig + export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} + export SDL_CONFIG=${NACLPORTS_LIBDIR}/../bin/sdl-config + SDL_CFLAGS=`$SDL_CONFIG --cflags` + SDL_LIBS="-lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lSDL_net `$SDL_CONFIG --libs` -lfreetype -ljpeg -lpng16 -lwebp -lvorbisfile -lvorbis -logg -lmikmod -lz -lbz2" + export LIBS="-L${NACLPORTS_LIBDIR} ${SDL_LIBS} -lnacl_io -lppapi_cpp -lppapi -lpthread -lstdc++ -lRegal -lm -lc" + autoreconf -i ${SRC_DIR} + ${SRC_DIR}/configure \ + --enable-naclbuild \ + --disable-nls \ + --without-opengl \ + --without-librt \ + --without-mumble \ + --host=nacl \ + --prefix=${PREFIX} +} + +DefaultPackageInstall +exit 0 |