145 # yes this is needed several times to catch nested occurences of '--cflags' |
145 # yes this is needed several times to catch nested occurences of '--cflags' |
146 %{l_shtool} subst \ |
146 %{l_shtool} subst \ |
147 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ |
147 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ |
148 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ |
148 -e 's;\(QT_CFLAGS_[^=][^=]*=.*PKG_CONFIG.*\) --cflags ;\1 --cflags-only-other ;g' \ |
149 configure |
149 configure |
|
150 # Trolltech Bug: |
|
151 # Glib support cannot be enabled due to functionality tests! |
|
152 # Turn on verbose messaging (-v) to ./configure to see the final report. |
|
153 # Trolltech Bug: |
|
154 # In file included from ../../include/QtGui/private/qgtkstyle_p.h:1, |
|
155 # from kernel/qguiplatformplugin.cpp:63: |
|
156 # ....../qgtkstyle_p.h:69:21: error: gtk/gtk.h: No such file or directory |
|
157 # Workaround resolution: |
150 # hack to get back the standard '--cflags' of just Qt_CFLAGS_GLIB |
158 # hack to get back the standard '--cflags' of just Qt_CFLAGS_GLIB |
|
159 # Question: Is this needed? QT_LIBS_QGTKSTYLE=`$PKG_CONFIG --libs gobject-2.0 2>/dev/null` |
151 %{l_shtool} subst \ |
160 %{l_shtool} subst \ |
152 -e 's;\(QT_CFLAGS_GLIB *=.*PKG_CONFIG.*\) --cflags-only-other ;\1 --cflags ;g' \ |
161 -e 's;\(QT_CFLAGS_GLIB *=.*PKG_CONFIG.*\) --cflags-only-other ;\1 --cflags ;g' \ |
|
162 -e 's;\(QT_CFLAGS_QGTKSTYLE *=.*PKG_CONFIG.*\) --cflags-only-other ;\1 --cflags ;g' \ |
153 configure |
163 configure |
154 %{l_shtool} subst \ |
164 # MSvB In R/D: %{l_shtool} subst \ |
155 -e 's;\(TRY_INCLUDEPATHS = \).*\(\$\$INCLUDEPATH\);\1\2;' \ |
165 # MSvB In R/D: -e 's;\(TRY_INCLUDEPATHS = \).*\(\$\$INCLUDEPATH\);\1\2;' \ |
156 -e 's;/freetype2;/freetype;' \ |
166 # MSvB In R/D: -e 's;/freetype2;/freetype;' \ |
157 config.tests/unix/freetype/freetype.pri |
167 # MSvB In R/D: config.tests/unix/freetype/freetype.pri |
|
168 # Trolltech Bug: |
|
169 # /opdv/lib/libmng.a(libmng_cms.o): In function `mnglcms_initlibrary': |
|
170 # libmng_cms.c:(.text+0xa): undefined reference to `cmsErrorAction' |
158 %{l_shtool} subst \ |
171 %{l_shtool} subst \ |
159 -e "s;\(LIBS.*=.*-lmng\);\1 $lcmslibs;" \ |
172 -e "s;\(LIBS.*=.*-lmng\);\1 $lcmslibs;" \ |
160 src/gui/image/qmnghandler.pri |
173 src/gui/image/qmnghandler.pri |
|
174 # Trolltech Bug: |
|
175 # lib/libQtGui.a(qapplication_x11.o): In function |
|
176 # `qt_init(QApplicationPrivate*, int, _XDisplay*, unsigned long, unsigned long)': |
|
177 # qapplication_x11.cpp:(.text+0xec8d): undefined reference to `FcInit' |
161 %{l_shtool} subst \ |
178 %{l_shtool} subst \ |
162 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \ |
179 -e "s;^\(LIBS += \)-lfreetype -lfontconfig;\1$fontconflibs;" \ |
163 config.tests/x11/fontconfig/fontconfig.pro |
180 config.tests/x11/fontconfig/fontconfig.pro |
|
181 echo "LIBS += `%{l_prefix}/bin/pkg-config --libs-only-L fontconfig`" \ |
|
182 >>tools/linguist/linguist/linguist.pro |
164 echo 'INCLUDEPATH += /usr/include/wacomcfg' \ |
183 echo 'INCLUDEPATH += /usr/include/wacomcfg' \ |
165 >>src/gui/kernel/x11.pri |
184 >>src/gui/kernel/x11.pri |
166 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ |
185 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ |
167 >>src/gui/kernel/x11.pri |
186 >>src/gui/kernel/x11.pri |
168 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ |
187 echo "contains(QT_CONFIG, fontconfig) { LIBS += $fontconflibs }" \ |
169 >>src/gui/text/text.pri |
188 >>src/gui/text/text.pri |
|
189 # Trolltech Bug: |
|
190 # The QtDBus module cannot be enabled because libdbus-1 version 0.93 was not found. |
|
191 # Turn on verbose messaging (-v) to ./configure to see the final report. |
170 echo "INCLUDEPATH = `%{l_prefix}/bin/pkg-config --cflags-only-I dbus-1 | %{l_shtool} subst -e 's;\-I;;g'`" \ |
192 echo "INCLUDEPATH = `%{l_prefix}/bin/pkg-config --cflags-only-I dbus-1 | %{l_shtool} subst -e 's;\-I;;g'`" \ |
171 >>config.tests/unix/dbus/dbus.pro |
193 >>config.tests/unix/dbus/dbus.pro |
172 echo "LIBS = `%{l_prefix}/bin/pkg-config --libs-only-l --static dbus-1`" \ |
194 echo "LIBS = `%{l_prefix}/bin/pkg-config --libs-only-l --static dbus-1`" \ |
173 >>config.tests/unix/dbus/dbus.pro |
195 >>config.tests/unix/dbus/dbus.pro |
|
196 # Trolltech Bug: |
|
197 # PostgreSQL support cannot be enabled due to functionality tests! |
|
198 # Turn on verbose messaging (-v) to ./configure to see the final report. |
174 %{l_shtool} subst \ |
199 %{l_shtool} subst \ |
175 -e "s;\(LIBS.*= -lpq\);\1 `%{l_prefix}/bin/pg_config --libs` $loclibs;" \ |
200 -e "s;\(LIBS.*= -lpq\);\1 `%{l_prefix}/bin/pg_config --libs` $loclibs;" \ |
176 config.tests/unix/psql/psql.pro |
201 config.tests/unix/psql/psql.pro |
|
202 # Trolltech Bug: |
|
203 # Iconv support cannot be enabled due to functionality tests! |
|
204 # Turn on verbose messaging (-v) to ./configure to see the final report. |
177 %{l_shtool} subst \ |
205 %{l_shtool} subst \ |
178 -e 's;^mac[^:][^:]*:\(LIBS\);\1;' \ |
206 -e 's;^mac[^:][^:]*:\(LIBS\);\1;' \ |
179 config.tests/unix/iconv/iconv.pro |
207 config.tests/unix/iconv/iconv.pro |
180 uiclibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig lcms` |
208 # MSvB Aktualisierung: The uiclibs line is probably an error, remove... |
181 %{l_shtool} subst \ |
209 # MSvB In R/D: uiclibs=`%{l_prefix}/bin/pkg-config --libs-only-l --static fontconfig lcms` |
182 -e 's;LIBS .*= -lpq$;LIBS += -lpq -lssl -lcrypto;' \ |
210 # MSvB In R/D: %{l_shtool} subst \ |
183 -e "s;LIBS .*= \$\$QT_LFLAGS_MYSQL;LIBS += $mysqllibs;" \ |
211 # MSvB In R/D: -e 's;LIBS .*= -lpq$;LIBS += -lpq -lssl -lcrypto;' \ |
184 src/sql/drivers/drivers.pri |
212 # MSvB In R/D: -e "s;LIBS .*= \$\$QT_LFLAGS_MYSQL;LIBS += $mysqllibs;" \ |
185 %{l_shtool} subst \ |
213 # MSvB In R/D: src/sql/drivers/drivers.pri |
186 -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_GLIB;INCPATH += `pkg-config --cflags-only-I glib-2.0 gthread-2.0 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
214 # MSvB In R/D: %{l_shtool} subst \ |
187 src/corelib/kernel/kernel.pri \ |
215 # MSvB In R/D: -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_GLIB;INCPATH += `pkg-config --cflags-only-I glib-2.0 gthread-2.0 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
188 src/gui/kernel/kernel.pri |
216 # MSvB In R/D: src/corelib/kernel/kernel.pri \ |
189 %{l_shtool} subst \ |
217 # MSvB In R/D: src/gui/kernel/kernel.pri |
190 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_PSQL;INCPATH += `pg_config --includedir 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
218 # MSvB In R/D: %{l_shtool} subst \ |
191 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_MYSQL;INCPATH += `mysql_config --include 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
219 # MSvB In R/D: -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_PSQL;INCPATH += `pg_config --includedir 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
192 -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_SQLITE;INCPATH += `pkg-config --cflags-only-I sqlite3 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
220 # MSvB In R/D: -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_MYSQL;INCPATH += `mysql_config --include 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
193 -e 's;!static:\(!isEmpty(QT_LFLAGS_PSQL)\);\1;' \ |
221 # MSvB In R/D: -e "s;QMAKE_CXXFLAGS \*= \$\$QT_CFLAGS_SQLITE;INCPATH += `pkg-config --cflags-only-I sqlite3 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
194 -e 's;!static:\(LIBS \*= \$\$QT_LFLAGS_PSQL\);\1;' \ |
222 # MSvB In R/D: -e 's;!static:\(!isEmpty(QT_LFLAGS_PSQL)\);\1;' \ |
195 src/plugins/sqldrivers/mysql/mysql.pro \ |
223 # MSvB In R/D: -e 's;!static:\(LIBS \*= \$\$QT_LFLAGS_PSQL\);\1;' \ |
196 src/plugins/sqldrivers/psql/psql.pro \ |
224 # MSvB In R/D: src/plugins/sqldrivers/mysql/mysql.pro \ |
197 src/plugins/sqldrivers/sqlite/sqlite.pro \ |
225 # MSvB In R/D: src/plugins/sqldrivers/psql/psql.pro \ |
198 src/sql/drivers/drivers.pri |
226 # MSvB In R/D: src/plugins/sqldrivers/sqlite/sqlite.pro \ |
|
227 # MSvB In R/D: src/sql/drivers/drivers.pri |
|
228 # Trolltech Bug: |
|
229 # In file included from qdbusconnectioninterface.cpp:52:0: |
|
230 # qdbus_symbols_p.h:58:23: fatal error: dbus/dbus.h: No such file or directoryIn |
|
231 # file included from qdbusconnection_p.h:70:0, from qdbusconnection.cpp:51: |
199 %{l_shtool} subst \ |
232 %{l_shtool} subst \ |
200 -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_DBUS;INCPATH += `pkg-config --cflags-only-I dbus-1 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
233 -e "s;QMAKE_CXXFLAGS += \$\$QT_CFLAGS_DBUS;INCPATH += `pkg-config --cflags-only-I dbus-1 2>/dev/null | %{l_shtool} subst -e 's;-I;;g'`;g" \ |
201 src/dbus/dbus.pro |
234 src/dbus/dbus.pro |
|
235 # Trolltech Bug: |
|
236 # All the OpenGL functionality tests failed! |
|
237 # You might need to modify the include and library search paths by |
|
238 # editing QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in |
|
239 # /home/mschloh/opwrk/tmp/qt-everywhere-opensource-src-4.7.3/mkspecs/linux-g++-64. |
202 %{l_shtool} subst \ |
240 %{l_shtool} subst \ |
203 -e 's;^\(QMAKE_INCDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/include;' \ |
241 -e 's;^\(QMAKE_INCDIR[^a-zA-Z0-9=]*=\).*;\1 %{l_prefix}/include;' \ |
204 -e 's;^\(QMAKE_LIBDIR[^a-zA-Z0-9=]*=\).*;\1;' \ |
242 -e 's;^\(QMAKE_LIBDIR[^a-zA-Z0-9=]*=\).*;\1;' \ |
205 -e "s;^\(QMAKE_INCDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;" \ |
243 -e 's;^\(QMAKE_INCDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/include \2;' \ |
206 -e "s;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2;" \ |
244 -e 's;^\(QMAKE_LIBDIR_OPENGL[^=]*=\) *\(.*\);\1 %{l_prefix}/lib \2;' \ |
207 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \ |
245 -e 's;^\(QMAKE_LFLAGS_RELEASE.*\);\1 -s;' \ |
208 mkspecs/qws/*/qmake.conf \ |
246 mkspecs/qws/*/qmake.conf \ |
209 mkspecs/*/*.conf |
247 mkspecs/*/*.conf |
210 %{l_shtool} subst \ |
248 # MSvB In R/D: %{l_shtool} subst \ |
211 -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \ |
249 # MSvB In R/D: -e 's;^\(QMAKE_LIBS +=.*\);\1 -liconv;' \ |
212 src/corelib/corelib.pro |
250 # MSvB In R/D: src/corelib/corelib.pro |
|
251 # Trolltech Bug: |
|
252 # In file included from ../JavaScriptCore/runtime/RegExp.h:29:0, |
|
253 # ../JavaScriptCore/yarr/RegexJIT.h: In destructor 'JSC::Yarr::RegexCodeBlock::~RegexCodeBlock()': |
|
254 # ../JavaScriptCore/yarr/RegexJIT.h:63:36: error: 'jsRegExpFree' was not declared in this scope |
213 %{l_shtool} subst \ |
255 %{l_shtool} subst \ |
214 -e 's;\(DESTDIR *=\) *\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;' \ |
256 -e 's;\(DESTDIR *=\) *\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;' \ |
215 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro |
257 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pro |
|
258 # Trolltech Bug: |
|
259 # In file included from ../JavaScriptCore/runtime/RegExp.h:29:0, |
|
260 # ../JavaScriptCore/yarr/RegexJIT.h: In destructor 'JSC::Yarr::RegexCodeBlock::~RegexCodeBlock()': |
|
261 # ../JavaScriptCore/yarr/RegexJIT.h:63:36: error: 'jsRegExpFree' was not declared in this scope |
216 %{l_shtool} subst \ |
262 %{l_shtool} subst \ |
217 -e 's;\(pathToJavaScriptCoreOutput *=\) *\$\$ARGS/\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;g' \ |
263 -e 's;\(pathToJavaScriptCoreOutput *=\) *\$\$ARGS/\$\$JAVASCRIPTCORE_DESTDIR;\1 $$QMAKE_LIBDIR_QT;g' \ |
218 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pri |
264 src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pri |
219 %{l_shtool} subst \ |
265 # MSvB In R/D: %{l_shtool} subst \ |
220 -e "s;^\(QMAKE_INCDIR_X11[^=]*=\).*;\1 %{l_prefix}/include $x11_incdir;" \ |
266 # MSvB In R/D: -e "s;^\(QMAKE_INCDIR_X11[^=]*=\).*;\1 %{l_prefix}/include $x11_incdir;" \ |
221 -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\).*;\1 %{l_prefix}/lib $x11_libdir;" \ |
267 # MSvB In R/D: -e "s;^\(QMAKE_LIBDIR_X11[^=]*=\).*;\1 %{l_prefix}/lib $x11_libdir;" \ |
222 mkspecs/qws/solaris*/qmake.conf \ |
268 # MSvB In R/D: mkspecs/qws/solaris*/qmake.conf \ |
223 mkspecs/solaris*/qmake.conf |
269 # MSvB In R/D: mkspecs/solaris*/qmake.conf |
224 echo "QMAKE_LIBDIR += %{l_prefix}/lib/qt/dynamic" \ |
270 # MSvB In R/D: echo "QMAKE_LIBDIR += %{l_prefix}/lib/qt/dynamic" \ |
225 >>mkspecs/features/shared.prf |
271 # MSvB In R/D: >>mkspecs/features/shared.prf |
226 %{l_shtool} subst \ |
272 # MSvB In R/D: %{l_shtool} subst \ |
227 -e 's; *\.\./3rdparty/freetype/.*;;g' \ |
273 # MSvB In R/D: -e 's; *\.\./3rdparty/freetype/.*;;g' \ |
228 -e 's;^\( *contains(QT_CONFIG, freetype) {\);\1 LIBS += -lfreetype;' \ |
274 # MSvB In R/D: -e 's;^\( *contains(QT_CONFIG, freetype) {\);\1 LIBS += -lfreetype;' \ |
229 src/gui/text/text.pri |
275 # MSvB In R/D: src/gui/text/text.pri |
|
276 # Trolltech Bug: |
|
277 # image/qtiffhandler.cpp:48:20: fatal error: tiffio.h: No such file or directory |
|
278 # compilation terminated. |
|
279 # make[1]: *** [.obj/release-static/qtiffhandler.o] Error 1 |
230 %{l_shtool} subst \ |
280 %{l_shtool} subst \ |
231 -e 's;\(#include *"\)\(tiffio.h"\);\1tiff/\2;' \ |
281 -e 's;\(#include *"\)\(tiffio.h"\);\1tiff/\2;' \ |
232 src/gui/image/qtiffhandler.cpp |
282 src/gui/image/qtiffhandler.cpp |
233 %{l_shtool} subst \ |
283 # MSvB In R/D: %{l_shtool} subst \ |
234 -e 's;\(CONFIG[\t ]*+=[\t ]*qt\);\1 x11;' \ |
284 # MSvB In R/D: -e 's;\(CONFIG[\t ]*+=[\t ]*qt\);\1 x11;' \ |
235 tools/qtconfig/qtconfig.pro |
285 # MSvB In R/D: tools/qtconfig/qtconfig.pro |
236 %{l_shtool} subst \ |
286 # MSvB In R/D: %{l_shtool} subst \ |
237 -e 's;webkit;web-broken-kit;g' \ |
287 # MSvB In R/D: -e 's;webkit;web-broken-kit;g' \ |
238 tools/assistant/tools/assistant/assistant.pro |
288 # MSvB In R/D: tools/assistant/tools/assistant/assistant.pro |
239 echo "DEFINES += QT_NO_WEBKIT" \ |
289 # MSvB In R/D: echo "DEFINES += QT_NO_WEBKIT" \ |
240 >>tools/assistant/tools/assistant/assistant.pro |
290 # MSvB In R/D: >>tools/assistant/tools/assistant/assistant.pro |
241 %{l_shtool} subst \ |
291 # MSvB In R/D: %{l_shtool} subst \ |
242 -e "s;Qt.s Classes;All Classes;" \ |
292 # MSvB In R/D: -e "s;Qt.s Classes;All Classes;" \ |
243 tools/assistant/tools/assistant/doc/assistant.qdoc \ |
293 # MSvB In R/D: tools/assistant/tools/assistant/doc/assistant.qdoc \ |
244 tools/qdoc3/doc/qdoc-manual.qdoc \ |
294 # MSvB In R/D: tools/qdoc3/doc/qdoc-manual.qdoc \ |
245 tools/qdoc3/doc/files/qt.qdocconf \ |
295 # MSvB In R/D: tools/qdoc3/doc/files/qt.qdocconf \ |
246 tools/qdoc3/test/qt-build-docs.qdocconf \ |
296 # MSvB In R/D: tools/qdoc3/test/qt-build-docs.qdocconf \ |
247 tools/qdoc3/test/qt.qdocconf |
297 # MSvB In R/D: tools/qdoc3/test/qt.qdocconf |
248 |
298 |
249 %build |
299 %build |
250 # protect against sloppy code inclusion of all unused subprojects |
300 # protect against sloppy code inclusion of all unused subprojects |
|
301 # MSvB In R/D: ce-compat clucene des easing harfbuzz javascriptcore md4 md5 s60 sha1 webkit xorg zlib_dependency.pri |
251 (cd src/3rdparty && rm -rf [^cdehjmswxz]* sql* win* zlib zlib.pri) || exit $? |
302 (cd src/3rdparty && rm -rf [^cdehjmswxz]* sql* win* zlib zlib.pri) || exit $? |
252 |
303 |
253 # detect which platform for which to build |
304 # detect which platform for which to build |
254 case "%{l_platform -t}" in |
305 case "%{l_platform -t}" in |
255 sun4[uv]-sunos* | amd64-sunos* ) platcomp="solaris-g++-64" ;; |
306 sun4[uv]-sunos* | amd64-sunos* ) platcomp="solaris-g++-64" ;; |