#!/bin/bash
# This file is part of BOINC.
# http://boinc.berkeley.edu
# Copyright (C) 2017 University of California
#
# BOINC is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
#
# BOINC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with BOINC. If not, see .
# Script to build a wxWidgets GTK version for BOINC
# Usage:
# cd [path]/wxWidgets-3.0.2/
# source path_to_this_script [--clean] [--debug] [--prefix PATH]
#
# the --clean argument will force a full rebuild.
# the --debug argument will build the debug version of the library
# if --prefix is given as absolute path the library is installed into there
# Patch wxwidgets to work with GCC6
# from https://github.com/wxWidgets/wxWidgets/commit/73e9e18ea09ffffcaac50237def0d9728a213c02
if [ ! -f src/stc/scintilla/src/Editor.cxx.orig ]; then
cat >> /tmp/Editor.cxx.patch << ENDOFFILE
--- Editor.cxx 2014-10-06 23:33:44.000000000 +0200
+++ Editor_patched.cxx 2017-03-20 10:24:14.776685161 +0100
@@ -11,6 +11,7 @@
#include
#include
+#include
#include
#include
#include