Mercurial > mxe-octave
annotate src/qt.mk @ 1359:3493585feed0
package qt does not depend on giflib
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Sun, 07 Nov 2010 21:18:57 +0100 |
parents | 138a2ff15e91 |
children | e383210b07fa |
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 := |
1174 | 7 $(PKG)_VERSION := 4.7.0 |
8 $(PKG)_CHECKSUM := a5796c8f468c8f59249e5c696f913864c979f411 | |
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) |
1359
3493585feed0
package qt does not depend on giflib
Mark Brand <mabrand@mabrand.nl>
parents:
1174
diff
changeset
|
13 $(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl libgcrypt zlib libpng jpeg libmng tiff 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 |
786
d3d9a4a2843d
revert openssl hacks in configure and use pg_config in package qt
Mark Brand <mabrand@mabrand.nl>
parents:
785
diff
changeset
|
23 |
1097 | 24 cd '$(1)' && QTDIR='$(1)' ./bin/syncqt |
25 | |
578
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
26 # 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
|
27 # -system-zlib -system-libpng -system-libjpeg -system-libtiff -system-libmng -system-sqlite |
1097 | 28 # There is no -system-gif option. |
29 # | |
821
6d2133800cef
do not add QtCore4 to OPENSSL_LIBS for static builds of package qt
Mark Brand <mabrand@mabrand.nl>
parents:
796
diff
changeset
|
30 # 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
|
31 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
|
32 OPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \ |
1040
0cf0c907b475
improvements for package qt
Mark Brand <mabrand@mabrand.nl>
parents:
1015
diff
changeset
|
33 PSQL_LIBS="-lpq -lsecur32 `'$(TARGET)-pkg-config' --libs-only-l openssl` -lws2_32" \ |
1097 | 34 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
|
35 ./configure \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 -opensource \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 -confirm-license \ |
1015
7997c04d4bef
upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
990
diff
changeset
|
38 -fast \ |
1040
0cf0c907b475
improvements for package qt
Mark Brand <mabrand@mabrand.nl>
parents:
1015
diff
changeset
|
39 -xplatform unsupported/win32-g++-cross \ |
548
08b6c299a522
several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
520
diff
changeset
|
40 -force-pkg-config \ |
486
8eda0b6ec42a
disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
485
diff
changeset
|
41 -release \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
42 -exceptions \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
43 -static \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
44 -prefix '$(PREFIX)/$(TARGET)' \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 -prefix-install \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 -script \ |
470
a07d9f69e2ee
add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
468
diff
changeset
|
47 -opengl desktop \ |
1050
3d74c8e772ad
enable webkit in package qt
Mark Brand <mabrand@mabrand.nl>
parents:
1040
diff
changeset
|
48 -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
|
49 -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
|
50 -no-gstreamer \ |
509
e97947e7d45e
update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
497
diff
changeset
|
51 -no-phonon \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
52 -no-phonon-backend \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
53 -accessibility \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
54 -no-reduce-exports \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
55 -no-rpath \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
56 -make libs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
57 -nomake demos \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
58 -nomake docs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
59 -nomake examples \ |
1097 | 60 -qt-sql-sqlite \ |
61 -qt-sql-odbc \ | |
62 -qt-sql-psql \ | |
63 -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
|
64 -system-zlib \ |
578
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
65 -system-libpng \ |
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
66 -system-libjpeg \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
67 -system-libtiff \ |
578
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
68 -system-libmng \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
69 -system-sqlite \ |
791
4d838a936a8f
fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents:
789
diff
changeset
|
70 -openssl-linked \ |
520
9294e8fad5e9
add ODBC support to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
515
diff
changeset
|
71 -v |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
72 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
73 $(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
|
74 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
|
75 $(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
|
76 $(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
|
77 $(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
|
78 $(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
|
79 $(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
|
80 |
f77810598227
test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
659
diff
changeset
|
81 mkdir '$(1)/test-qt' |
f77810598227
test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
659
diff
changeset
|
82 cp '$(2)'* '$(1)/test-qt/' |
f77810598227
test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
659
diff
changeset
|
83 cd '$(1)/test-qt' && '$(TARGET)-qmake' |
f77810598227
test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
659
diff
changeset
|
84 $(MAKE) -C '$(1)/test-qt' -j '$(JOBS)' |
f77810598227
test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
659
diff
changeset
|
85 $(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
|
86 endef |