diff options
author | Mark Brand <mabrand@mabrand.nl> | 2010-05-21 07:41:30 (GMT) |
---|---|---|
committer | Mark Brand <mabrand@mabrand.nl> | 2010-05-21 07:41:30 (GMT) |
commit | de262df289d0a9455ae3b568c888028f4fa3e8a0 (patch) | |
tree | cffbe79c4aac20e5f008c9f4f8a2cb780d6bdbc2 /src/qt-1-win32.patch | |
parent | faf79ea7e159d21fb1da626d66d36268a4a626ff (diff) | |
download | mxe-de262df289d0a9455ae3b568c888028f4fa3e8a0.zip mxe-de262df289d0a9455ae3b568c888028f4fa3e8a0.tar.gz mxe-de262df289d0a9455ae3b568c888028f4fa3e8a0.tar.bz2 |
fix configure script so "windows" is not a Mac architecture in package qt
Diffstat (limited to 'src/qt-1-win32.patch')
-rw-r--r-- | src/qt-1-win32.patch | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/src/qt-1-win32.patch b/src/qt-1-win32.patch index 92955db..c065d5e 100644 --- a/src/qt-1-win32.patch +++ b/src/qt-1-win32.patch @@ -184,7 +184,7 @@ index 432bd8d..94faf15 100644 +win32-g++:LIBS += -lopengl32 +else:LIBS += -lGL -lGLU diff --git a/configure b/configure -index ed5891f..2a43afa 100755 +index ed5891f..646cb73 100755 --- a/configure +++ b/configure @@ -178,6 +178,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown @@ -212,7 +212,18 @@ index ed5891f..2a43afa 100755 CFG_REDUCE_RELOCATIONS=no CFG_IPV6=auto CFG_NAS=no -@@ -1602,6 +1604,13 @@ while [ "$#" -gt 0 ]; do +@@ -1304,7 +1306,9 @@ while [ "$#" -gt 0 ]; do + fi + ;; + arch) +- if [ "$PLATFORM_MAC" = "yes" ]; then ++ # if this is a Mac then "windows" probably means ++ # we are cross-compiling for MinGW ++ if [ "$PLATFORM_MAC" = "yes" ] && [ "$VAL" != "windows" ]; then + CFG_MAC_ARCHS="$CFG_MAC_ARCHS $VAL" + else + CFG_ARCH=$VAL +@@ -1602,6 +1606,13 @@ while [ "$#" -gt 0 ]; do UNKNOWN_OPT=yes fi ;; @@ -226,7 +237,7 @@ index ed5891f..2a43afa 100755 iwmmxt) CFG_IWMMXT="yes" ;; -@@ -2827,6 +2836,9 @@ elif [ "$PLATFORM_MAC" = "yes" ] || [ -z "$CFG_ARCH" ]; then +@@ -2827,6 +2838,9 @@ elif [ "$PLATFORM_MAC" = "yes" ] || [ -z "$CFG_ARCH" ]; then CFG_ARCH=$CFG_HOST_ARCH fi @@ -236,7 +247,7 @@ index ed5891f..2a43afa 100755 if [ -d "$relpath/src/corelib/arch/$CFG_ARCH" ]; then if [ "$OPT_VERBOSE" = "yes" ]; then echo " '$CFG_ARCH' is supported" -@@ -3482,6 +3494,7 @@ cat << EOF +@@ -3482,6 +3496,7 @@ cat << EOF -no-3dnow .......... Do not compile with use of 3DNOW instructions. -no-sse ............ Do not compile with use of SSE instructions. -no-sse2 ........... Do not compile with use of SSE2 instructions. @@ -244,7 +255,7 @@ index ed5891f..2a43afa 100755 -qtnamespace <name> Wraps all Qt library code in 'namespace <name> {...}'. -qtlibinfix <infix> Renames all libQt*.so to libQt*<infix>.so. -@@ -4508,6 +4521,17 @@ if [ "${CFG_SSE2}" = "auto" ]; then +@@ -4508,6 +4523,17 @@ if [ "${CFG_SSE2}" = "auto" ]; then fi fi @@ -262,7 +273,7 @@ index ed5891f..2a43afa 100755 # check iWMMXt support if [ "$CFG_IWMMXT" = "yes" ]; then "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/iwmmxt "iwmmxt" $L_FLAGS $I_FLAGS $l_FLAGS "-mcpu=iwmmxt" -@@ -4683,6 +4707,7 @@ for _SQLDR in $CFG_SQL_AVAILABLE; do +@@ -4683,6 +4709,7 @@ for _SQLDR in $CFG_SQL_AVAILABLE; do if "$WHICH" pg_config >/dev/null 2>&1; then QT_CFLAGS_PSQL=`pg_config --includedir 2>/dev/null` QT_LFLAGS_PSQL=`pg_config --libdir 2>/dev/null` @@ -270,7 +281,7 @@ index ed5891f..2a43afa 100755 fi [ -z "$QT_CFLAGS_PSQL" ] || QT_CFLAGS_PSQL="-I$QT_CFLAGS_PSQL" [ -z "$QT_LFLAGS_PSQL" ] || QT_LFLAGS_PSQL="-L$QT_LFLAGS_PSQL" -@@ -4707,7 +4732,7 @@ for _SQLDR in $CFG_SQL_AVAILABLE; do +@@ -4707,7 +4734,7 @@ for _SQLDR in $CFG_SQL_AVAILABLE; do ;; odbc) if [ "$CFG_SQL_odbc" != "no" ]; then @@ -279,7 +290,7 @@ index ed5891f..2a43afa 100755 if [ "$CFG_SQL_odbc" = "auto" ]; then CFG_SQL_odbc=plugin fi -@@ -5002,7 +5027,10 @@ if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then +@@ -5002,7 +5029,10 @@ if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then fi if [ "$CFG_PHONON" != "no" ]; then @@ -291,7 +302,7 @@ index ed5891f..2a43afa 100755 if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then if [ -n "$PKG_CONFIG" ]; then QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null` -@@ -5060,8 +5088,9 @@ if [ "$PLATFORM_X11" = "yes" ]; then +@@ -5060,8 +5090,9 @@ if [ "$PLATFORM_X11" = "yes" ]; then fi # Check we actually have X11 :-) @@ -303,7 +314,7 @@ index ed5891f..2a43afa 100755 echo "Basic XLib functionality test failed!" echo " You might need to modify the include and library search paths by editing" echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}." -@@ -6141,6 +6170,7 @@ fi +@@ -6141,6 +6172,7 @@ fi [ "$CFG_3DNOW" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG 3dnow" [ "$CFG_SSE" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse" [ "$CFG_SSE2" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG sse2" @@ -311,7 +322,7 @@ index ed5891f..2a43afa 100755 [ "$CFG_IWMMXT" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG iwmmxt" [ "$CFG_NEON" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG neon" [ "$PLATFORM_MAC" = "yes" ] && QMAKE_CONFIG="$QMAKE_CONFIG $CFG_MAC_ARCHS" -@@ -6222,7 +6252,7 @@ else +@@ -6222,7 +6254,7 @@ else QT_CONFIG="$QT_CONFIG freetype" fi @@ -320,7 +331,7 @@ index ed5891f..2a43afa 100755 #On Mac we implicitly link against libz, so we #never use the 3rdparty stuff. [ "$CFG_ZLIB" = "yes" ] && CFG_ZLIB="system" -@@ -7161,7 +7191,7 @@ fi +@@ -7161,7 +7193,7 @@ fi cat >>"$QTCONFIG.tmp" <<EOF #configuration @@ -329,7 +340,7 @@ index ed5891f..2a43afa 100755 QT_ARCH = $CFG_ARCH QT_EDITION = $Edition QT_CONFIG += $QT_CONFIG -@@ -7434,7 +7464,7 @@ fi +@@ -7434,7 +7466,7 @@ fi echo "Declarative module .. $CFG_DECLARATIVE" echo "STL support ......... $CFG_STL" echo "PCH support ......... $CFG_PRECOMPILE" @@ -338,7 +349,7 @@ index ed5891f..2a43afa 100755 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then echo "iWMMXt support ...... ${CFG_IWMMXT}" echo "NEON support ........ ${CFG_NEON}" -@@ -7752,7 +7782,11 @@ for file in .projects .projects.3; do +@@ -7752,7 +7784,11 @@ for file in .projects .projects.3; do [ "$IN_ROOT" = "no" ] && continue case $a in |