Mercurial > mxe-octave
annotate src/qt.mk @ 2988:aca8511e7751
qt.mk: link to correct files in bin directory
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 May 2013 13:32:57 -0400 |
parents | e6ba75a96089 |
children | 4f9b72cf7ee7 |
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 := |
2734 | 6 $(PKG)_CHECKSUM := bc352a283610e0cd2fe0dbedbc45613844090fcb |
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 |
2541 | 9 $(PKG)_URL := http://releases.qt-project.org/qt4/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 |
791
4d838a936a8f
fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents:
789
diff
changeset
|
21 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
|
22 OPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \ |
1040
0cf0c907b475
improvements for package qt
Mark Brand <mabrand@mabrand.nl>
parents:
1015
diff
changeset
|
23 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
|
24 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
|
25 ./configure \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 -opensource \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 -confirm-license \ |
1015
7997c04d4bef
upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
990
diff
changeset
|
28 -fast \ |
2735
485231b507aa
package qt: use new unified mkspec for cross building
Mark Brand <mabrand@mabrand.nl>
parents:
2734
diff
changeset
|
29 -xplatform win32-g++-4.6 \ |
485231b507aa
package qt: use new unified mkspec for cross building
Mark Brand <mabrand@mabrand.nl>
parents:
2734
diff
changeset
|
30 -device-option CROSS_COMPILE=$(TARGET)- \ |
2740
61643b8b5122
package qt: improve pkg-config setting
Mark Brand <mabrand@mabrand.nl>
parents:
2735
diff
changeset
|
31 -device-option PKG_CONFIG='$(TARGET)-pkg-config' \ |
548
08b6c299a522
several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
520
diff
changeset
|
32 -force-pkg-config \ |
486
8eda0b6ec42a
disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
485
diff
changeset
|
33 -release \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 -exceptions \ |
2927 | 35 -shared \ |
36 -prefix '$(PREFIX)/$(TARGET)' \ | |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 -prefix-install \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
38 -script \ |
1910
ce3b84b9514f
package qt: build with -no-iconv
Nikos Chantziaras <realnc@arcor.de>
parents:
1909
diff
changeset
|
39 -no-iconv \ |
470
a07d9f69e2ee
add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
468
diff
changeset
|
40 -opengl desktop \ |
2445
328cf3f5c63c
package qt: stop building static qtwebkit
Mark Brand <mabrand@mabrand.nl>
parents:
2428
diff
changeset
|
41 -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
|
42 -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
|
43 -no-gstreamer \ |
509
e97947e7d45e
update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
497
diff
changeset
|
44 -no-phonon \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
45 -no-phonon-backend \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
46 -accessibility \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
47 -no-reduce-exports \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
48 -no-rpath \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
49 -make libs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
50 -nomake demos \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
51 -nomake docs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
52 -nomake examples \ |
1097 | 53 -qt-sql-sqlite \ |
54 -qt-sql-odbc \ | |
55 -qt-sql-psql \ | |
56 -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
|
57 -system-zlib \ |
578
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
58 -system-libpng \ |
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
59 -system-libjpeg \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
60 -system-libtiff \ |
1380
a21aabc31b87
package qt: improved handling of liblcms dependency
Mark Brand <mabrand@mabrand.nl>
parents:
1363
diff
changeset
|
61 -system-libmng \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
62 -system-sqlite \ |
791
4d838a936a8f
fixed compile tests in ./configure of package qt
Mark Brand <mabrand@mabrand.nl>
parents:
789
diff
changeset
|
63 -openssl-linked \ |
1531
3d2a35555fd3
package qt: added dbus support
Mark Brand <mabrand@mabrand.nl>
parents:
1380
diff
changeset
|
64 -dbus-linked \ |
2927 | 65 -no-sse2 -no-ssse3 \ |
520
9294e8fad5e9
add ODBC support to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
515
diff
changeset
|
66 -v |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
67 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
68 $(MAKE) -C '$(1)' -j '$(JOBS)' |
659
c96eeb56f5de
improved escaping in the build rules of package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
648
diff
changeset
|
69 $(MAKE) -C '$(1)' -j 1 install |
2988
aca8511e7751
qt.mk: link to correct files in bin directory
John W. Eaton <jwe@octave.org>
parents:
2985
diff
changeset
|
70 ln -fs '$(PREFIX)/$(TARGET)/bin/moc' '$(PREFIX)/bin/$(TARGET)-moc' |
aca8511e7751
qt.mk: link to correct files in bin directory
John W. Eaton <jwe@octave.org>
parents:
2985
diff
changeset
|
71 ln -fs '$(PREFIX)/$(TARGET)/bin/rcc' '$(PREFIX)/bin/$(TARGET)-roc' |
aca8511e7751
qt.mk: link to correct files in bin directory
John W. Eaton <jwe@octave.org>
parents:
2985
diff
changeset
|
72 ln -fs '$(PREFIX)/$(TARGET)/bin/uic' '$(PREFIX)/bin/$(TARGET)-uic' |
aca8511e7751
qt.mk: link to correct files in bin directory
John W. Eaton <jwe@octave.org>
parents:
2985
diff
changeset
|
73 ln -fs '$(PREFIX)/$(TARGET)/bin/qmake' '$(PREFIX)/bin/$(TARGET)-qmake' |
660
f77810598227
test program for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
659
diff
changeset
|
74 |
2927 | 75 # cd '$(1)/tools/assistant' && '$(1)/bin/qmake' assistant.pro |
76 # $(MAKE) -C '$(1)/tools/assistant' -j '$(JOBS)' install | |
2446
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
77 |
2927 | 78 # cd '$(1)/tools/designer' && '$(1)/bin/qmake' designer.pro |
79 # $(MAKE) -C '$(1)/tools/designer' -j '$(JOBS)' install | |
2446
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
80 |
2927 | 81 # # at least some of the qdbus tools are useful on target |
82 # cd '$(1)/tools/qdbus' && '$(1)/bin/qmake' qdbus.pro | |
83 # $(MAKE) -C '$(1)/tools/qdbus' -j '$(JOBS)' install | |
2985
e6ba75a96089
Fix to install lrelease from the linquist tools.
John Donoghue <john.onoghue@ieee.org>
parents:
2927
diff
changeset
|
84 |
e6ba75a96089
Fix to install lrelease from the linquist tools.
John Donoghue <john.onoghue@ieee.org>
parents:
2927
diff
changeset
|
85 # lrelease (from linguist) needed by octave for GUI build |
e6ba75a96089
Fix to install lrelease from the linquist tools.
John Donoghue <john.onoghue@ieee.org>
parents:
2927
diff
changeset
|
86 $(MAKE) -C '$(1)/tools/linguist/lrelease' -j '$(JOBS)' install |
e6ba75a96089
Fix to install lrelease from the linquist tools.
John Donoghue <john.onoghue@ieee.org>
parents:
2927
diff
changeset
|
87 ln -fs '$(PREFIX)/$(TARGET)/bin/lrelease' '$(PREFIX)/bin/$(TARGET)-lrelease' |
1538
c6b5e37cf4cb
package qt: build and install qdbus tools
Mark Brand <mabrand@mabrand.nl>
parents:
1532
diff
changeset
|
88 |
2927 | 89 # mkdir '$(1)/test-qt' |
90 # cd '$(1)/test-qt' && '$(TARGET)-qmake' '$(PWD)/$(2).pro' | |
91 # $(MAKE) -C '$(1)/test-qt' -j '$(JOBS)' | |
92 # $(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
|
93 endef |