summaryrefslogtreecommitdiff
path: root/packaging/nacl/ports/sdl-gfx/build.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-13 21:50:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-13 21:50:07 +0300
commiteefb212caca31d46f1d36ce272d4bc6842c039f0 (patch)
treea7736bff39c0920e0522ce00813602bde4710c22 /packaging/nacl/ports/sdl-gfx/build.sh
parent9406e61b5ee96e25b10fbf915725f69d6f6ceeb8 (diff)
downloadmv-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.gz
mv-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.bz2
mv-eefb212caca31d46f1d36ce272d4bc6842c039f0.tar.xz
mv-eefb212caca31d46f1d36ce272d4bc6842c039f0.zip
Add chrome ports patches for build manaplus on nacl.
Diffstat (limited to 'packaging/nacl/ports/sdl-gfx/build.sh')
-rwxr-xr-xpackaging/nacl/ports/sdl-gfx/build.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/packaging/nacl/ports/sdl-gfx/build.sh b/packaging/nacl/ports/sdl-gfx/build.sh
new file mode 100755
index 000000000..e1572c9a1
--- /dev/null
+++ b/packaging/nacl/ports/sdl-gfx/build.sh
@@ -0,0 +1,36 @@
+#!/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.
+
+#source pkg_info
+#source ../../build_tools/common.sh
+
+ConfigureStep() {
+ Banner "Configuring ${PACKAGE_NAME}"
+
+ export SDL_CONFIG=${NACLPORTS_LIBDIR}/../bin/sdl-config
+ SDL_CFLAGS=`$SDL_CONFIG --cflags`
+ SDL_LIBS=`$SDL_CONFIG --libs`
+
+ # export the nacl tools
+ export CC=${NACLCC}
+ export CXX=${NACLCXX}
+ export AR=${NACLAR}
+ export RANLIB=${NACLRANLIB}
+ export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
+ export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
+ export CFLAGS="${NACLPORTS_CFLAGS} $SDL_CFLAGS"
+ export CXXFLAGS="${NACLPORTS_CXXFLAGS} $SDL_CFLAGS"
+ export LDFLAGS=${NACLPORTS_LDFLAGS}
+ export PATH=${NACL_BIN_PATH}:${PATH};
+ export LIBS="-L${NACLPORTS_LIBDIR} -lppapi -lppapi_gles2 -lppapi_cpp -lnacl_io -lpthread -lstdc++ -lm -lnosys $SDL_LIBS"
+ ${SRC_DIR}/autogen.sh
+ ${SRC_DIR}/configure \
+ --enable-mmx=no \
+ --host=nacl \
+ --prefix=${PREFIX}
+}
+
+PackageInstall
+exit 0