annotate src/qt.mk @ 1538:c6b5e37cf4cb

package qt: build and install qdbus tools
author Mark Brand <mabrand@mabrand.nl>
date Thu, 06 Jan 2011 10:49:44 +0100
parents a5b9c0c7835a
children 81169b06f296
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 :=
1360
e383210b07fa upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1359
diff changeset
7 $(PKG)_VERSION := 4.7.1
e383210b07fa upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1359
diff changeset
8 $(PKG)_CHECKSUM := fcf764d39d982c7f84703821582bd10c3192e341
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)
1532
a5b9c0c7835a package qt: added missing dependency
Mark Brand <mabrand@mabrand.nl>
parents: 1531
diff changeset
13 $(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl libgcrypt zlib libpng jpeg libmng tiff sqlite libiconv dbus
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
578
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
23 # 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
24 # -system-zlib -system-libpng -system-libjpeg -system-libtiff -system-libmng -system-sqlite
1097
93745bdf9745 upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1069
diff changeset
25 # There is no -system-gif option.
93745bdf9745 upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1069
diff changeset
26 #
821
6d2133800cef do not add QtCore4 to OPENSSL_LIBS for static builds of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 796
diff changeset
27 # For shared Qt with qt-zlib, add -lQtCore4 to end of OPENSSL_LIBS to satisfy zlib dependency.
791
4d838a936a8f fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 789
diff changeset
28 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
29 OPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
1040
0cf0c907b475 improvements for package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1015
diff changeset
30 PSQL_LIBS="-lpq -lsecur32 `'$(TARGET)-pkg-config' --libs-only-l openssl` -lws2_32" \
1097
93745bdf9745 upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1069
diff changeset
31 SYBASE_LIBS="-lsybdb -liconv -lws2_32" \
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
32 ./configure \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 -opensource \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 -confirm-license \
1015
7997c04d4bef upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 990
diff changeset
35 -fast \
1040
0cf0c907b475 improvements for package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1015
diff changeset
36 -xplatform unsupported/win32-g++-cross \
548
08b6c299a522 several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 520
diff changeset
37 -force-pkg-config \
486
8eda0b6ec42a disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 485
diff changeset
38 -release \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 -exceptions \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 -static \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 -prefix '$(PREFIX)/$(TARGET)' \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 -prefix-install \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 -script \
470
a07d9f69e2ee add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents: 468
diff changeset
44 -opengl desktop \
1050
3d74c8e772ad enable webkit in package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1040
diff changeset
45 -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
46 -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
47 -no-gstreamer \
509
e97947e7d45e update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 497
diff changeset
48 -no-phonon \
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 -no-phonon-backend \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 -accessibility \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 -no-reduce-exports \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 -no-rpath \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 -make libs \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 -nomake demos \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 -nomake docs \
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 -nomake examples \
1097
93745bdf9745 upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1069
diff changeset
57 -qt-sql-sqlite \
93745bdf9745 upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1069
diff changeset
58 -qt-sql-odbc \
93745bdf9745 upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1069
diff changeset
59 -qt-sql-psql \
93745bdf9745 upgrade package qt
Mark Brand <mabrand@mabrand.nl>
parents: 1069
diff changeset
60 -qt-sql-tds -D Q_USE_SYBASE \
548
08b6c299a522 several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 520
diff changeset
61 -system-zlib \
578
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
62 -system-libpng \
41c0ac9326f2 improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 576
diff changeset
63 -system-libjpeg \
573
57166e6490d2 use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 570
diff changeset
64 -system-libtiff \
1380
a21aabc31b87 package qt: improved handling of liblcms dependency
Mark Brand <mabrand@mabrand.nl>
parents: 1363
diff changeset
65 -system-libmng \
573
57166e6490d2 use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 570
diff changeset
66 -system-sqlite \
791
4d838a936a8f fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents: 789
diff changeset
67 -openssl-linked \
1531
3d2a35555fd3 package qt: added dbus support
Mark Brand <mabrand@mabrand.nl>
parents: 1380
diff changeset
68 -dbus-linked \
520
9294e8fad5e9 add ODBC support to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 515
diff changeset
69 -v
452
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
70
ade2c475c772 new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
71 $(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
72 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
73 $(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
74 $(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
75 $(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
76 $(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
77 $(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
78
1538
c6b5e37cf4cb package qt: build and install qdbus tools
Mark Brand <mabrand@mabrand.nl>
parents: 1532
diff changeset
79 # at least some of the qdbus tools are useful on target
c6b5e37cf4cb package qt: build and install qdbus tools
Mark Brand <mabrand@mabrand.nl>
parents: 1532
diff changeset
80 cd '$(1)/tools/qdbus' && '$(1)/bin/qmake' qdbus.pro
c6b5e37cf4cb package qt: build and install qdbus tools
Mark Brand <mabrand@mabrand.nl>
parents: 1532
diff changeset
81 $(MAKE) -C '$(1)/tools/qdbus' -j '$(JOBS)' install
c6b5e37cf4cb package qt: build and install qdbus tools
Mark Brand <mabrand@mabrand.nl>
parents: 1532
diff changeset
82
660
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
83 mkdir '$(1)/test-qt'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
84 cp '$(2)'* '$(1)/test-qt/'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
85 cd '$(1)/test-qt' && '$(TARGET)-qmake'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
86 $(MAKE) -C '$(1)/test-qt' -j '$(JOBS)'
f77810598227 test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents: 659
diff changeset
87 $(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
88 endef