# HG changeset patch # User Mark Brand # Date 1287151557 -7200 # Node ID 945e404ad4735c74d1257ab435177fe6b01e8d3b # Parent b34315c4432c9ed77fd7bd6a73fa8dbfec6faf37 package qt: patch file housekeeping diff -r b34315c4432c -r 945e404ad473 src/qt-1-win32.patch --- a/src/qt-1-win32.patch Fri Oct 15 21:47:35 2010 +1100 +++ b/src/qt-1-win32.patch Fri Oct 15 16:05:57 2010 +0200 @@ -1742,7 +1742,105 @@ // ======== duplicated from qcolor_p -commit 9d48a599f8a29067346bc6f257b4e0a767717349 +commit 91396840d9a182a56fec73d9f15f83aad8b88847 +Author: Mark Brand +Date: Sun Oct 10 11:14:20 2010 +0200 + + use specified pkg-config + + Respect the pkg-config tool specified in qmake.conf. This is + useful when crossbuilding. + +diff --git a/mkspecs/features/link_pkgconfig.prf b/mkspecs/features/link_pkgconfig.prf +index 4c528aa..90cc836 100644 +--- a/mkspecs/features/link_pkgconfig.prf ++++ b/mkspecs/features/link_pkgconfig.prf +@@ -1,6 +1,7 @@ + # handle pkg-config files ++isEmpty(PKG_CONFIG):PKG_CONFIG=pkg-config + for(PKGCONFIG_LIB, $$list($$unique(PKGCONFIG))) { +- QMAKE_CXXFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB) +- QMAKE_CFLAGS += $$system(pkg-config --cflags $$PKGCONFIG_LIB) +- LIBS += $$system(pkg-config --libs $$PKGCONFIG_LIB) ++ QMAKE_CXXFLAGS += $$system($$PKG_CONFIG --cflags $$PKGCONFIG_LIB) ++ QMAKE_CFLAGS += $$system($$PKG_CONFIG --cflags $$PKGCONFIG_LIB) ++ LIBS += $$system($$PKG_CONFIG --libs $$PKGCONFIG_LIB) + } + +commit e4db94db6af14a2b9a187b33424c63473cf15391 +Author: Mark Brand +Date: Thu Oct 14 20:55:31 2010 +0200 + + removed obsolete -qt-gif configure option + + Since "-system-gif" is not offered, offering "-qt-gif" is unnecessary + and perhaps misleading. By default the GIF handler is built from code + included with Qt, unless suppressed by "-no-gif". + +diff --git a/configure b/configure +index ea390d5..4d9bb9f 100755 +--- a/configure ++++ b/configure +@@ -1527,8 +1527,7 @@ while [ "$#" -gt 0 ]; do + fi + ;; + gif) +- [ "$VAL" = "qt" ] && VAL=auto +- if [ "$VAL" = "auto" ] || [ "$VAL" = "no" ]; then ++ if [ "$VAL" = "no" ]; then + CFG_GIF="$VAL" + else + UNKNOWN_OPT=yes +@@ -3447,7 +3446,7 @@ Usage: $relconf [-h] [-prefix ] [-prefix-install] [-bindir ] [-libdir + [-accessibility] [-no-stl] [-stl] [-no-sql-] [-sql-] + [-plugin-sql-] [-system-sqlite] [-no-qt3support] [-qt3support] + [-platform] [-D ] [-I ] [-L ] [-help] +- [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff] ++ [-qt-zlib] [-system-zlib] [-no-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff] + [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng] + [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make ] + [-nomake ] [-R ] [-l ] [-no-rpath] [-rpath] [-continue] +@@ -3662,8 +3661,6 @@ Third Party Libraries: + See http://www.gzip.org/zlib + + -no-gif ............ Do not compile GIF reading support. +- * -qt-gif ............ Compile GIF reading support. +- See also src/gui/image/qgifhandler_p.h + + -no-libtiff ........ Do not compile TIFF support. + -qt-libtiff ........ Use the libtiff bundled with Qt. +diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp +index 5b3d714..8c207df 100644 +--- a/tools/configure/configureapp.cpp ++++ b/tools/configure/configureapp.cpp +@@ -581,8 +581,6 @@ void Configure::parseCmdLine() + // Image formats -------------------------------------------- + else if (configCmdLine.at(i) == "-no-gif") + dictionary[ "GIF" ] = "no"; +- else if (configCmdLine.at(i) == "-qt-gif") +- dictionary[ "GIF" ] = "plugin"; + + else if (configCmdLine.at(i) == "-no-libtiff") { + dictionary[ "TIFF"] = "no"; +@@ -1616,7 +1614,7 @@ bool Configure::displayHelp() + "[-no-qmake] [-qmake] [-dont-process] [-process]\n" + "[-no-style-