Mercurial > mxe-octave
annotate src/qt.mk @ 2525:4d0f3a9da57e
all packages: use $(WGET) portability variable
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 09 May 2012 01:16:05 +1000 |
parents | 42295c6227c2 |
children | be6a32dfbaea |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2179
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See 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 PKG := qt |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
2361 | 6 $(PKG)_CHECKSUM := a074d0f605f009e23c63e0a4cb9b71c978146ffc |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION) |
2179
e1d7c2b4f285
update packages: lcms libpng qt suitesparse
Mark Brand <mabrand@mabrand.nl>
parents:
2170
diff
changeset
|
8 $(PKG)_FILE := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION).tar.gz |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_URL := http://get.qt.nokia.com/qt/source/$($(PKG)_FILE) |
1910
ce3b84b9514f
package qt: build with -no-iconv
Nikos Chantziaras <realnc@arcor.de>
parents:
1909
diff
changeset
|
10 $(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite dbus |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2446
diff
changeset
|
13 $(WGET) -q -O- 'http://qt.gitorious.org/qt/qt/commits' | \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 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
|
15 $(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
|
16 tail -1 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
2013 | 20 cd '$(1)' && QTDIR='$(1)' ./bin/syncqt |
21 | |
791
4d838a936a8f
fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents:
789
diff
changeset
|
22 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
|
23 OPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \ |
1040
0cf0c907b475
improvements for package qt
Mark Brand <mabrand@mabrand.nl>
parents:
1015
diff
changeset
|
24 PSQL_LIBS="-lpq -lsecur32 `'$(TARGET)-pkg-config' --libs-only-l openssl` -lws2_32" \ |
2170
2ecab9e467a9
package qt: improve order of SYBASE_LIBS
Mark Brand <mabrand@mabrand.nl>
parents:
2103
diff
changeset
|
25 SYBASE_LIBS="-lsybdb `'$(TARGET)-pkg-config' --libs-only-l gnutls` -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
|
26 ./configure \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 -opensource \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 -confirm-license \ |
1015
7997c04d4bef
upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
990
diff
changeset
|
29 -fast \ |
2103
855b32e713a2
package qt: use new mkspec for gcc 4.6
Mark Brand <mabrand@mabrand.nl>
parents:
2076
diff
changeset
|
30 -xplatform unsupported/win32-g++-4.6-cross \ |
548
08b6c299a522
several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
520
diff
changeset
|
31 -force-pkg-config \ |
486
8eda0b6ec42a
disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
485
diff
changeset
|
32 -release \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 -exceptions \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 -static \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 -prefix '$(PREFIX)/$(TARGET)' \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
36 -prefix-install \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 -script \ |
1910
ce3b84b9514f
package qt: build with -no-iconv
Nikos Chantziaras <realnc@arcor.de>
parents:
1909
diff
changeset
|
38 -no-iconv \ |
470
a07d9f69e2ee
add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
468
diff
changeset
|
39 -opengl desktop \ |
2445
328cf3f5c63c
package qt: stop building static qtwebkit
Mark Brand <mabrand@mabrand.nl>
parents:
2428
diff
changeset
|
40 -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
|
41 -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
|
42 -no-gstreamer \ |
509
e97947e7d45e
update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
497
diff
changeset
|
43 -no-phonon \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
44 -no-phonon-backend \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 -accessibility \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 -no-reduce-exports \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
47 -no-rpath \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
48 -make libs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 -nomake demos \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 -nomake docs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
51 -nomake examples \ |
1097 | 52 -qt-sql-sqlite \ |
53 -qt-sql-odbc \ | |
54 -qt-sql-psql \ | |
55 -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
|
56 -system-zlib \ |
578
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
57 -system-libpng \ |
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
58 -system-libjpeg \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
59 -system-libtiff \ |
1380
a21aabc31b87
package qt: improved handling of liblcms dependency
Mark Brand <mabrand@mabrand.nl>
parents:
1363
diff
changeset
|
60 -system-libmng \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
61 -system-sqlite \ |
791
4d838a936a8f
fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents:
789
diff
changeset
|
62 -openssl-linked \ |
1531
3d2a35555fd3
package qt: added dbus support
Mark Brand <mabrand@mabrand.nl>
parents:
1380
diff
changeset
|
63 -dbus-linked \ |
520
9294e8fad5e9
add ODBC support to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
515
diff
changeset
|
64 -v |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
65 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
66 $(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
|
67 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
|
68 $(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
|
69 $(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
|
70 $(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
|
71 $(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
|
72 $(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
|
73 |
2446
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
74 cd '$(1)/tools/assistant' && '$(1)/bin/qmake' assistant.pro |
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
75 $(MAKE) -C '$(1)/tools/assistant' -j '$(JOBS)' install |
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
76 |
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
77 cd '$(1)/tools/designer' && '$(1)/bin/qmake' designer.pro |
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
78 $(MAKE) -C '$(1)/tools/designer' -j '$(JOBS)' install |
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
79 |
1538
c6b5e37cf4cb
package qt: build and install qdbus tools
Mark Brand <mabrand@mabrand.nl>
parents:
1532
diff
changeset
|
80 # 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
|
81 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
|
82 $(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
|
83 |
660
f77810598227
test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
659
diff
changeset
|
84 mkdir '$(1)/test-qt' |
2070 | 85 cd '$(1)/test-qt' && '$(TARGET)-qmake' '$(PWD)/$(2).pro' |
660
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 |