{
PATCH_FILE=${SCRIPT_DIR}/patches/$1; shift
- if patch -f -p0 "$@" >patch.log < ${PATCH_FILE}
+ if patch -f -p0 "$@" >>patch.log < ${PATCH_FILE}
then
:
else
if get_source "${URL_ZLIB}" "${DIR_ZLIB}"
then
echo Patching zlib
+ >patch.log
do_patch zlib.patch
fi
echo Building zlib
if get_source "${URL_PCRE}" "${DIR_PCRE}"
then
echo Patching PCRE
+ >patch.log
do_patch pcre.patch
fi
echo Configuring PCRE
if get_source "${URL_PTHREADS}" "${DIR_PTHREADS}"
then
echo Patching pthreads
+ >patch.log
do_patch pthreads.patch
fi
echo Building pthreads
if get_source "${URL_OPENSSL}" "${DIR_OPENSSL}"
then
echo Patching openssl
+ >patch.log
do_patch openssl.patch
fi
echo Configuring openssl
if get_source "${URL_POSTGRESQL}" "${DIR_POSTGRESQL}"
then
echo Patching postgreSQL
+ >patch.log
do_patch postgresql.patch
fi
echo Configuring postgreSQL
if get_source "${URL_SQLITE}" "${DIR_SQLITE}"
then
echo Patching SQLite
+ >patch.log
do_patch sqlite.patch
fi
echo Configuring SQLite
if get_source "${URL_WX}" "${DIR_WX}"
then
echo Patching wxWidgets
- do_patch wx.patch -o build/msw/config.mingw32
+ >patch.log
+ do_patch wx1.patch -o build/msw/config.mingw32
+ do_patch wx2.patch
find . -name makefile.gcc -exec sh -c "sed -f ${SCRIPT_DIR}/patches/wx.sed {} > \`echo {} | sed s/\.gcc$/\.mingw32/\`" \;
fi
echo Building wxWidgets
if get_source "${URL_NSIS_SRC}" "${DIR_NSIS_SRC}"
then
echo Patching nsis
+ >patch.log
do_patch nsis.patch
fi
echo Building nsis
cp -f config.h.in config.h
cp -f Makefile.in Makefile
rm -f configure
+ >patch.log
do_patch mtx.patch
fi
echo Building mtx
if get_source "${URL_MT}" "${DIR_MT}"
then
echo Patching mt
+ >patch.log
do_patch mt.patch
fi
echo Building mt
+++ /dev/null
---- build/msw/config.gcc Sun Feb 5 13:37:26 2006
-+++ build/msw/config.mingw32 Mon Jun 26 16:54:42 2006
-@@ -11,10 +11,10 @@
- # -------------------------------------------------------------------------
-
- # C compiler
--CC = gcc
-+CC = mingw32-gcc
-
- # C++ compiler
--CXX = g++
-+CXX = mingw32-g++
-
- # Standard flags for CC
- CFLAGS =
-@@ -23,10 +23,10 @@
- CXXFLAGS =
-
- # Standard preprocessor flags (common for CC and CXX)
--CPPFLAGS =
-+CPPFLAGS = -I../../../zlib
-
- # Standard linker flags
--LDFLAGS =
-+LDFLAGS = -L../../../zlib
-
- # The C preprocessor
- CPP = $(CC) -E
-@@ -44,7 +44,7 @@
- MSLU = 0
-
- # Type of compiled binaries [debug,release]
--BUILD = debug
-+BUILD = release
-
- # Should debugging info be included in the executables? The default value
- # "default" means that debug info will be included if BUILD=debug
---- ../release/wxWidgets-2.6.3/include/wx/string.h 2005-12-15 11:26:27.000000000 -0800
-+++ ./include/wx/string.h 2006-07-31 20:50:32.000000000 -0700
-@@ -229,7 +229,7 @@
- #endif
- // VC++ free must take place in same DLL as allocation when using non dll
- // run-time library (e.g. Multithreaded instead of Multithreaded DLL)
--#if defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
-+#if 1 || defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
- void Unlock() { if ( !IsEmpty() && --nRefs == 0) Free(); }
- // we must not inline deallocation since allocation is not inlined
- void Free();
---- ../release/wxWidgets-2.6.3/src/common/string.cpp 2005-11-30 05:30:08.000000000 -0800
-+++ ./src/common/string.cpp 2006-07-31 20:48:53.000000000 -0700
-@@ -172,7 +172,7 @@
- // wxStringData class deallocation
- // ===========================================================================
-
--#if defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
-+#if 1 || defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
- # pragma message (__FILE__ ": building with Multithreaded non DLL runtime has a performance impact on wxString!")
- void wxStringData::Free()
- {
--- /dev/null
+--- build/msw/config.gcc Sun Feb 5 13:37:26 2006
++++ build/msw/config.mingw32 Mon Jun 26 16:54:42 2006
+@@ -11,10 +11,10 @@
+ # -------------------------------------------------------------------------
+
+ # C compiler
+-CC = gcc
++CC = mingw32-gcc
+
+ # C++ compiler
+-CXX = g++
++CXX = mingw32-g++
+
+ # Standard flags for CC
+ CFLAGS =
+@@ -23,10 +23,10 @@
+ CXXFLAGS =
+
+ # Standard preprocessor flags (common for CC and CXX)
+-CPPFLAGS =
++CPPFLAGS = -I../../../zlib
+
+ # Standard linker flags
+-LDFLAGS =
++LDFLAGS = -L../../../zlib
+
+ # The C preprocessor
+ CPP = $(CC) -E
+@@ -44,7 +44,7 @@
+ MSLU = 0
+
+ # Type of compiled binaries [debug,release]
+-BUILD = debug
++BUILD = release
+
+ # Should debugging info be included in the executables? The default value
+ # "default" means that debug info will be included if BUILD=debug
--- /dev/null
+--- ../release/wxWidgets-2.6.3/include/wx/string.h 2005-12-15 11:26:27.000000000 -0800
++++ ./include/wx/string.h 2006-07-31 20:50:32.000000000 -0700
+@@ -229,7 +229,7 @@
+ #endif
+ // VC++ free must take place in same DLL as allocation when using non dll
+ // run-time library (e.g. Multithreaded instead of Multithreaded DLL)
+-#if defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
++#if 1 || defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
+ void Unlock() { if ( !IsEmpty() && --nRefs == 0) Free(); }
+ // we must not inline deallocation since allocation is not inlined
+ void Free();
+--- ../release/wxWidgets-2.6.3/src/common/string.cpp 2005-11-30 05:30:08.000000000 -0800
++++ ./src/common/string.cpp 2006-07-31 20:48:53.000000000 -0700
+@@ -172,7 +172,7 @@
+ // wxStringData class deallocation
+ // ===========================================================================
+
+-#if defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
++#if 1 || defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
+ # pragma message (__FILE__ ": building with Multithreaded non DLL runtime has a performance impact on wxString!")
+ void wxStringData::Free()
+ {