annotate src/qt.mk @ 1015:7997c04d4bef

upgrade package qt to 4.7.0-beta1 (by Mark Brand)
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 31 May 2010 11:04:18 +0000
parents 37e7bea19863
children 0cf0c907b475
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 578
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 660
diff changeset
2 # See doc/index.html for further information.
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # Qt
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := qt
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
7 $(PKG)_VERSION := 4.7.0-beta1
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
8 $(PKG)_CHECKSUM := ccb3126e64ce0a0142970a8898625fe5e84c7361
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION)
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION).tar.gz
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://qt.nokia.com/
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://get.qt.nokia.com/qt/source/$($(PKG)_FILE)
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
13 $(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl libgcrypt zlib libpng jpeg libmng tiff giflib sqlite libiconv
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://qt.gitorious.org/qt/qt/commits' | \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep '<li><a href="/qt/qt/commit/' | \
840
77ecd36317c2 corrected version recognition regexes of many packages
Volker Grabsch <vog@notjusthosting.com>
parents: 822
diff changeset
18 $(SED) -n 's,.*<a[^>]*>v\([0-9][^<-]*\)<.*,\1,p' | \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 tail -1
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
23 # Adjust the makespec defs that contain the TARGET platform prefix.
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
24 $(SED) -i 's,/usr/i686-pc-mingw32/,$(PREFIX)/$(TARGET)/,g' '$(1)/mkspecs/win32-g++-cross/qmake.conf'
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
25 $(SED) -i 's,i686-pc-mingw32-,$(TARGET)-,g' '$(1)/mkspecs/win32-g++-cross/qmake.conf'
578
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
26
786
d3d9a4a2843d revert openssl hacks in configure and use pg_config in package qt
Mark Brand <mabrand@mabrand.nl>
parents: 785
diff changeset
27 # Use the correct pg_config tool
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
28 $(SED) -i 's,pg_config,$(TARGET)-pg_config,g;' '$(1)/configure'
786
d3d9a4a2843d revert openssl hacks in configure and use pg_config in package qt
Mark Brand <mabrand@mabrand.nl>
parents: 785
diff changeset
29
578
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
30 # We prefer static mingw-cross-env system libs for static build:
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
31 # -system-zlib -system-libpng -system-libjpeg -system-libtiff -system-libmng -system-sqlite
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
32 # There is no -system-gif option. NB -system-libmng will not link in shared build.
821
6d2133800cef do not add QtCore4 to OPENSSL_LIBS for static builds of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 796
diff changeset
33 # Linking QtNetwork4.dll requires OPENSSL_LIBS as does linking apps with static Qt.
6d2133800cef do not add QtCore4 to OPENSSL_LIBS for static builds of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 796
diff changeset
34 # Linking qsqlpsql4.dll plugin requires PSQL_LIBS as does linking apps with static Qt.
6d2133800cef do not add QtCore4 to OPENSSL_LIBS for static builds of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 796
diff changeset
35 # For shared Qt with qt-zlib, add -lQtCore4 to end of OPENSSL_LIBS to satisfy zlib dependency.
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
36 # -no-largefile does not really disable large file support, it just prevents defining
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
37 # QT_LARGEFILE_SUPPORT 64 which is not intended for win32.
791
4d838a936a8f fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 789
diff changeset
38 cd '$(1)' && \
821
6d2133800cef do not add QtCore4 to OPENSSL_LIBS for static builds of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 796
diff changeset
39 OPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
40 PSQL_LIBS="-lpq -lsecur32 `'$(TARGET)-pkg-config' --libs-only-l openssl`" \
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
41 ./configure \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 -opensource \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 -confirm-license \
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
44 -fast \
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
45 -xplatform win32-g++-cross \
548
08b6c299a522 several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 520
diff changeset
46 -force-pkg-config \
486
8eda0b6ec42a disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 485
diff changeset
47 -release \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 -exceptions \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 -static \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 -prefix '$(PREFIX)/$(TARGET)' \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 -prefix-install \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 -script \
470
a07d9f69e2ee add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 468
diff changeset
53 -opengl desktop \
509
e97947e7d45e update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 497
diff changeset
54 -no-webkit \
822
4a0fe1fd4abc bugfix: phonon backend does not depend on glib and gstreamer in package qt
Mark Brand <mabrand@mabrand.nl>
parents: 821
diff changeset
55 -no-glib \
4a0fe1fd4abc bugfix: phonon backend does not depend on glib and gstreamer in package qt
Mark Brand <mabrand@mabrand.nl>
parents: 821
diff changeset
56 -no-gstreamer \
509
e97947e7d45e update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 497
diff changeset
57 -no-phonon \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 -no-phonon-backend \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
59 -accessibility \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
60 -no-reduce-exports \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
61 -no-rpath \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
62 -make libs \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
63 -nomake demos \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
64 -nomake docs \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
65 -nomake examples \
510
6c10ecfc3774 enable sqlite support in package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 509
diff changeset
66 -plugin-sql-sqlite \
520
9294e8fad5e9 add ODBC support to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 515
diff changeset
67 -plugin-sql-odbc \
548
08b6c299a522 several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 520
diff changeset
68 -plugin-sql-psql \
08b6c299a522 several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 520
diff changeset
69 -plugin-sql-tds \
08b6c299a522 several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 520
diff changeset
70 -system-zlib \
578
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
71 -system-libpng \
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
72 -system-libjpeg \
573
57166e6490d2 use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 570
diff changeset
73 -system-libtiff \
578
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
74 -system-libmng \
573
57166e6490d2 use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 570
diff changeset
75 -system-sqlite \
791
4d838a936a8f fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 789
diff changeset
76 -openssl-linked \
520
9294e8fad5e9 add ODBC support to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 515
diff changeset
77 -v
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
78
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
79 $(MAKE) -C '$(1)' -j '$(JOBS)'
464
0174ea97b91d several bugfixes for package qt to ensure that "i686-pc-mingw32-qmake ; make" will work
Volker Grabsch <vog@notjusthosting.com>
parents: 455
diff changeset
80 rm -rf '$(PREFIX)/$(TARGET)/mkspecs'
659
c96eeb56f5de improved escaping in the build rules of package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 648
diff changeset
81 $(MAKE) -C '$(1)' -j 1 install
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
82 $(INSTALL) -m755 '$(1)/bin/moc' '$(PREFIX)/bin/$(TARGET)-moc'
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
83 $(INSTALL) -m755 '$(1)/bin/rcc' '$(PREFIX)/bin/$(TARGET)-rcc'
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
84 $(INSTALL) -m755 '$(1)/bin/uic' '$(PREFIX)/bin/$(TARGET)-uic'
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
85 $(INSTALL) -m755 '$(1)/bin/qmake' '$(PREFIX)/bin/$(TARGET)-qmake'
660
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
86
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
87 mkdir '$(1)/test-qt'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
88 cp '$(2)'* '$(1)/test-qt/'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
89 cd '$(1)/test-qt' && '$(TARGET)-qmake'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
90 $(MAKE) -C '$(1)/test-qt' -j '$(JOBS)'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
91 $(INSTALL) -m755 '$(1)/test-qt/release/test-qt.exe' '$(PREFIX)/$(TARGET)/bin/'
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
92 endef