summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild_mingw_cross_env.sh (renamed from build_static_win32_libs.sh)47
1 files changed, 41 insertions, 6 deletions
diff --git a/build_static_win32_libs.sh b/build_mingw_cross_env.sh
index 0bc251c..223099e 100755
--- a/build_static_win32_libs.sh
+++ b/build_mingw_cross_env.sh
@@ -1,16 +1,51 @@
#!/bin/bash
-
set -e
#---
-# Configuration
+# Build a MinGW cross compiling environment
+#
+# Version: -alpha-
+# Homepage: http://www.profv.de/mingw_cross_env/
+# File name: build_mingw_cross_env.sh
+# Project start: 2007-06-12
+#
+# This script compiles a MinGW cross compiler and cross compiles
+# many free libraries such as GD and SDL. Thus, it provides you
+# a nice MinGW cross compiling environment. All necessary source
+# packages are downloaded automatically.
+#---
+
+
#---
+# Copyright (c) Volker Grabsch <vog@notjusthosting.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject
+# to the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#---
+
-#TARGET=`gcc -dumpmachine` # native compiler (win32/MinGW, Cygwin)
-#TARGET="i386-mingw32msvc" # MinGW cross compiler (http://www.libsdl.org/extras/win32/cross/README.txt)
-TARGET="i586-mingw32msvc" # MinGW cross compiler of Debian (package mingw32)
+#---
+# Configuration
+#---
+TARGET="i386-mingw32msvc"
BUILD=`gcc -dumpmachine`
ROOT=`pwd`
PREFIX="$ROOT/usr"
@@ -745,7 +780,7 @@ case "$1" in
--build)
cd "$PREFIX"
- tar cv bin include lib | bzip2 -9 >"$ROOT/static_win32_libs.tar.bz2"
+ tar cv bin include lib | gzip -9 >"$ROOT/mingw_cross_env.tar.gz"
;;
esac