From eefb212caca31d46f1d36ce272d4bc6842c039f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Aug 2014 21:50:07 +0300 Subject: Add chrome ports patches for build manaplus on nacl. --- packaging/nacl/ports/sdl-gfx/build.sh | 36 +++++++++++++++++++++++++++++++++ packaging/nacl/ports/sdl-gfx/nacl.patch | 14 +++++++++++++ packaging/nacl/ports/sdl-gfx/pkg_info | 7 +++++++ 3 files changed, 57 insertions(+) create mode 100755 packaging/nacl/ports/sdl-gfx/build.sh create mode 100644 packaging/nacl/ports/sdl-gfx/nacl.patch create mode 100644 packaging/nacl/ports/sdl-gfx/pkg_info (limited to 'packaging/nacl/ports/sdl-gfx') 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 diff --git a/packaging/nacl/ports/sdl-gfx/nacl.patch b/packaging/nacl/ports/sdl-gfx/nacl.patch new file mode 100644 index 000000000..e01d8e85c --- /dev/null +++ b/packaging/nacl/ports/sdl-gfx/nacl.patch @@ -0,0 +1,14 @@ +--- SDL_gfx-2.0.24/configure.in 2012-08-05 20:25:55.000000000 +0400 ++++ SDL_gfx-2.0.24-nacl/configure.in 2013-10-29 22:58:03.825301123 +0400 +@@ -117,10 +117,7 @@ + fi + + dnl Check for SDL +-AM_PATH_SDL($SDL_VERSION, +- :, +- AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) +-) ++ + CFLAGS="$CFLAGS $SDL_CFLAGS" + # Remove dependencies from 'sdl-config' not meant for us libraries: + SDL_LIBS=$(echo "$SDL_LIBS" | sed -e 's/-lmingw32//' -e 's/-lSDLmain//') diff --git a/packaging/nacl/ports/sdl-gfx/pkg_info b/packaging/nacl/ports/sdl-gfx/pkg_info new file mode 100644 index 000000000..a32b0f393 --- /dev/null +++ b/packaging/nacl/ports/sdl-gfx/pkg_info @@ -0,0 +1,7 @@ +NAME=sdl-gfx +VERSION=2.0.24 +ARCHIVE_ROOT=SDL_gfx-2.0.24 +URL=http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.24.tar.gz +LICENSE=LGPL2 +DEPENDS=(sdl) +SHA1=34e8963188e4845557468a496066a8fa60d5f563 -- cgit v1.2.3-60-g2f50