Mercurial > mxe-octave
annotate src/qt.mk @ 3409:5e77c5fc91ed
qt: build translations in cross build and install
* src/qt.mk: in cross compile configure options, set translate path and -make option.
* makeinst-script.sh: Add createion and removal of libexec\octave\octave-version\qt.conf
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Fri, 10 Jan 2014 21:22:39 -0500 |
parents | 41645c0a134c |
children | 7901815035d6 |
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 |
3233
4b7210094782
qt.mk: update download location
John W. Eaton <jwe@octave.org>
parents:
3231
diff
changeset
|
9 $(PKG)_URL := http://download.qt-project.org/archives/qt/4.8/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
10 $(PKG)_DEPS := openssl zlib libpng jpeg libmng tiff dbus |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
11 |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
12 $(PKG)_CONFIGURE_CMD := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
13 $(PKG)_CONFIGURE_CROSS_COMPILE_OPTION := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
14 $(PKG)_CONFIGURE_DATABASE_OPTION := |
3145
fae248a5b181
Qt: generalize the use of pkg-config to get dbus compilation flags
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3129
diff
changeset
|
15 $(PKG)_CONFIGURE_ENV := PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
16 $(PKG)_CONFIGURE_EXTRA_OPTION := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
17 $(PKG)_CONFIGURE_INCLUDE_OPTION := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
18 $(PKG)_CONFIGURE_LIBPATH_OPTION := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
19 $(PKG)_CONFIGURE_PLATFORM_OPTION := |
3312
3e66ccaeff02
Qt: use INSTALL_ROOT instead of DESTDIR
John Donoghue <john.donoghue@ieee.org>
parents:
3309
diff
changeset
|
20 $(PKG)_PREFIX := $(HOST_PREFIX) |
3e66ccaeff02
Qt: use INSTALL_ROOT instead of DESTDIR
John Donoghue <john.donoghue@ieee.org>
parents:
3309
diff
changeset
|
21 $(PKG)_MKSPECS := $($(PKG)_PREFIX) |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
22 |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
23 ifneq ($(filter mingw msvc,$(MXE_SYSTEM)),) |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
24 ifeq ($(MXE_NATIVE_BUILD),yes) |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
25 ifeq ($(MXE_SYSTEM),msvc) |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
26 # NMAKE is perturbed by the values of MAKE and MAKEFLAGS defined by GNU |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
27 # make. These need to be unset even when running configure script, as |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
28 # this will run NMAKE to compile QMAKE. |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
29 $(PKG)_CONFIGURE_ENV += MAKE= MAKEFLAGS= |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
30 endif |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
31 else |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
32 $(PKG)_CONFIGURE_ENV := \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
33 OPENSSL_LIBS="`'$(MXE_PKG_CONFIG)' --libs-only-l openssl`" \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
34 PSQL_LIBS="-lpq -lsecur32 `'$(MXE_PKG_CONFIG)' --libs-only-l openssl` -lws2_32" \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
35 SYBASE_LIBS="-lsybdb `'$(MXE_PKG_CONFIG)' --libs-only-l gnutls` -liconv -lws2_32" |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
36 endif |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
37 # compile-in generic ODBC driver under Windows |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
38 $(PKG)_CONFIGURE_DATABASE_OPTION += -plugin-sql-odbc |
2997 | 39 else |
3145
fae248a5b181
Qt: generalize the use of pkg-config to get dbus compilation flags
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3129
diff
changeset
|
40 $(PKG)_CONFIGURE_ENV += \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
41 LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)' |
2997 | 42 endif |
43 | |
3066
23e3e2955cf5
Change Qt CONFIGURE_INCLUDE/LIBPATH_OPTION variable to be native only
John Donoghue <john.donoghue@ieee.org>
parents:
3059
diff
changeset
|
44 ifeq ($(MXE_NATIVE_BUILD),yes) |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
45 $(PKG)_CONFIGURE_INCLUDE_OPTION += -I '$(HOST_INCDIR)' |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
46 $(PKG)_CONFIGURE_LIBPATH_OPTION += -L '$(HOST_LIBDIR)' |
3066
23e3e2955cf5
Change Qt CONFIGURE_INCLUDE/LIBPATH_OPTION variable to be native only
John Donoghue <john.donoghue@ieee.org>
parents:
3059
diff
changeset
|
47 endif |
3057
7ed3b62fa3ae
qt.mk: always set configure include and lib path options
John W. Eaton <jwe@octave.org>
parents:
3055
diff
changeset
|
48 |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
49 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
50 $(PKG)_CONFIGURE_CMD := configure.exe |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
51 ifeq ($(MXE_SYSTEM),msvc) |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
52 # FIXME: the "2010" suffix should be computed dynamically |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
53 $(PKG)_CONFIGURE_PLATFORM_OPTION := -platform win32-msvc2010 |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
54 # mimic typical Linux installation |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
55 $(PKG)_CONFIGURE_EXTRA_OPTION += \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
56 -docdir '$(HOST_LIBDIR)/qt4/doc' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
57 -plugindir '$(HOST_LIBDIR)/qt4/plugins' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
58 -importdir '$(HOST_LIBDIR)/qt4/imports' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
59 -datadir '$(HOST_LIBDIR)/qt4' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
60 -translationdir '$(HOST_LIBDIR)/qt4/translations' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
61 -examplesdir '$(HOST_LIBDIR)/qt4/examples' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
62 -demosdir '$(HOST_LIBDIR)/qt4/demos' |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
63 $(PKG)_MKSPECS := '$(HOST_LIBDIR)/qt4' |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
64 else |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
65 $(PKG)_CONFIGURE_PLATFORM_OPTION := -platform win32-g++ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
66 endif |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
67 # OPENSSL_LIBS needs to be specified here, specifying it as environment |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
68 # variables *before* "configure.exe" doesn't work. Also compile-in D-BUS |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
69 # support, for what it's worth... |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
70 $(PKG)_CONFIGURE_EXTRA_OPTION += \ |
3145
fae248a5b181
Qt: generalize the use of pkg-config to get dbus compilation flags
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3129
diff
changeset
|
71 OPENSSL_LIBS="`PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' '$(MXE_PKG_CONFIG)' --libs-only-l openssl`" |
2997 | 72 else |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
73 $(PKG)_CONFIGURE_CMD := configure |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
74 $(PKG)_CONFIGURE_EXTRA_OPTION := \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
75 -prefix-install \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
76 -make libs \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
77 -no-glib \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
78 -no-gstreamer \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
79 -no-reduce-exports \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
80 -no-ssse3 \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
81 -no-rpath \ |
3409
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3322
diff
changeset
|
82 -make translations \ |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3322
diff
changeset
|
83 -translationdir '$($(PKG)_PREFIX)/translations' \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
84 -device-option PKG_CONFIG='$(MXE_PKG_CONFIG)' \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
85 -force-pkg-config \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
86 -v |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
87 |
2997 | 88 ifeq ($(MXE_SYSTEM),mingw) |
3041
622b49d8b178
don't set qt CROSS_COMPILE device option for native builds
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
89 $(PKG)_CONFIGURE_CROSS_COMPILE_OPTION := \ |
622b49d8b178
don't set qt CROSS_COMPILE device option for native builds
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
90 -device-option CROSS_COMPILE=$(MXE_TOOL_PREFIX) |
2997 | 91 $(PKG)_CONFIGURE_PLATFORM_OPTION := -xplatform win32-g++-4.6 |
92 endif | |
93 endif | |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
94 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
95 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2446
diff
changeset
|
96 $(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
|
97 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
|
98 $(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
|
99 tail -1 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
100 endef |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
101 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
102 define $(PKG)_BUILD |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
103 ## syncqt needs QTDIR set to find the sources |
2013 | 104 cd '$(1)' && QTDIR='$(1)' ./bin/syncqt |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
105 cd '$(1)' && QTDIR='$(1)' \ |
2997 | 106 $($(PKG)_CONFIGURE_ENV) \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
107 ./$($(PKG)_CONFIGURE_CMD) \ |
2997 | 108 $($(PKG)_CONFIGURE_INCLUDE_OPTION) \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
109 $($(PKG)_CONFIGURE_LIBPATH_OPTION) \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
110 -opensource \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
111 -confirm-license \ |
3145
fae248a5b181
Qt: generalize the use of pkg-config to get dbus compilation flags
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3129
diff
changeset
|
112 -dbus-linked \ |
1015
7997c04d4bef
upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
990
diff
changeset
|
113 -fast \ |
2997 | 114 $($(PKG)_CONFIGURE_PLATFORM_OPTION) \ |
3041
622b49d8b178
don't set qt CROSS_COMPILE device option for native builds
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
115 $($(PKG)_CONFIGURE_CROSS_COMPILE_OPTION) \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
116 $($(PKG)_CONFIGURE_EXTRA_OPTION) \ |
486
8eda0b6ec42a
disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
485
diff
changeset
|
117 -release \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
118 -exceptions \ |
2927 | 119 -shared \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
120 -prefix $($(PKG)_PREFIX) \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
121 -script \ |
1910
ce3b84b9514f
package qt: build with -no-iconv
Nikos Chantziaras <realnc@arcor.de>
parents:
1909
diff
changeset
|
122 -no-iconv \ |
470
a07d9f69e2ee
add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
468
diff
changeset
|
123 -opengl desktop \ |
3145
fae248a5b181
Qt: generalize the use of pkg-config to get dbus compilation flags
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3129
diff
changeset
|
124 -openssl-linked \ |
3259
33ab5eb4fed6
Undo qt no-webkit changeset 3258:db4c94cfc651
John Donoghue <john.donoghue@ieee.org>
parents:
3258
diff
changeset
|
125 -no-webkit \ |
509
e97947e7d45e
update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
497
diff
changeset
|
126 -no-phonon \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
127 -no-phonon-backend \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
128 -accessibility \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
129 -nomake demos \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
130 -nomake docs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
131 -nomake examples \ |
2997 | 132 $($(PKG)_CONFIGURE_DATABASE_OPTION) \ |
548
08b6c299a522
several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
520
diff
changeset
|
133 -system-zlib \ |
578
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
134 -system-libpng \ |
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
135 -system-libjpeg \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
136 -system-libtiff \ |
1380
a21aabc31b87
package qt: improved handling of liblcms dependency
Mark Brand <mabrand@mabrand.nl>
parents:
1363
diff
changeset
|
137 -system-libmng \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
138 -no-sse2 |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
139 |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
140 if test x$(MXE_SYSTEM) = xmsvc; then \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
141 for f in $(1)/mkspecs/win32-msvc*/qmake.conf; do \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
142 sed -i -e 's/@@LIBRARY_PREFIX@@/$(LIBRARY_PREFIX)/g' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
143 -e 's/@@LIBRARY_SUFFIX@@/$(LIBRARY_SUFFIX)/g' $$f; \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
144 done; \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
145 fi |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
146 |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
147 # need to 'install' mkspecs for the native mingw to build during its build |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
148 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes ]; then \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
149 mkdir -p '$($(PKG)_MKSPECS)'; \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
150 cp -r '$(1)/mkspecs' '$($(PKG)_MKSPECS)'; \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
151 fi |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
152 |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
153 # compilation under MSVC requires the use of NMAKE, which does not |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
154 # support the -j option flag and is perturbed by GNU make values for |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
155 # MAKE and MAKEFLAGS; also remove unnecessary DLL installed in lib/ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
156 if test x$(MXE_SYSTEM) = xmsvc; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
157 mkdir -p '$(3)' && \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
158 cd '$(1)' && \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
159 env -u MAKE -u MAKEFLAGS PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' nmake && \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
160 env -u MAKE -u MAKEFLAGS PKG_CONFIG_PATH='$(HOST_PREFIX)/lib/pkgconfig' nmake \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
161 INSTALL_ROOT=`cd $(3) && pwd -W | sed -e 's,^[a-zA-Z]:,,' -e 's,/,\\\\,g'` install && \ |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
162 rm -f $(3)$(CMAKE_HOST_PREFIX)/lib/$(LIBRARY_PREFIX)Qt*.dll; \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
163 else \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
164 make -C '$(1)' -j '$(JOBS)' && \ |
3312
3e66ccaeff02
Qt: use INSTALL_ROOT instead of DESTDIR
John Donoghue <john.donoghue@ieee.org>
parents:
3309
diff
changeset
|
165 make -C '$(1)' -j 1 install INSTALL_ROOT='$(3)'; \ |
3322
41645c0a134c
Remove *.dll files placed by Qt in lib directory, put them in bin directory instead.
Rik <rik@octave.org>
parents:
3312
diff
changeset
|
166 if [ "$(MXE_SYSTEM)" = mingw ]; then \ |
41645c0a134c
Remove *.dll files placed by Qt in lib directory, put them in bin directory instead.
Rik <rik@octave.org>
parents:
3312
diff
changeset
|
167 rm -f $(3)$(HOST_LIBDIR)/$(LIBRARY_PREFIX)Qt*$(LIBRARY_SUFFIX).dll; \ |
41645c0a134c
Remove *.dll files placed by Qt in lib directory, put them in bin directory instead.
Rik <rik@octave.org>
parents:
3312
diff
changeset
|
168 fi \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
169 fi |
3051
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
170 |
3322
41645c0a134c
Remove *.dll files placed by Qt in lib directory, put them in bin directory instead.
Rik <rik@octave.org>
parents:
3312
diff
changeset
|
171 # native build doesn't seem to succeed when installing pkgconfig files to prefix |
3051
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
172 # in addition, .pc files have the wrong paths, mangled lib names |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
173 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes -a "$(MXE_SYSTEM)" != msvc ]; then \ |
3051
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
174 find $(1)/lib/pkgconfig/*.pc -exec $(SED) -i \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
175 -e 's,\(.*\)_location=.*,\1_location=$${prefix}/bin/\1,g' \ |
3051
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
176 -e 's,\(Libs:.* -l\).*[\\/]\([A-Za-z0-9]*\),\1\2,g' \ |
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
177 '{}' ';' ; \ |
3312
3e66ccaeff02
Qt: use INSTALL_ROOT instead of DESTDIR
John Donoghue <john.donoghue@ieee.org>
parents:
3309
diff
changeset
|
178 $(INSTALL) -d '$(3)$(HOST_LIBDIR)/pkgconfig'; \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
179 cp -f '$(1)/lib/pkgconfig/'*.pc '$(3)$(HOST_LIBDIR)/pkgconfig/'; \ |
3051
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
180 fi |
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
181 |
3218
8ede5874e2f1
qt.mk: use make conditional
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
182 $(if $(filter-out msvc, $(MXE_SYSTEM)), |
8ede5874e2f1
qt.mk: use make conditional
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
183 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)), |
3309
7b9b5cf1fb92
qt: create build tools bin director before install
John Donoghue <john.donoghue@ieee.org>
parents:
3293
diff
changeset
|
184 $(INSTALL) -d '$(3)$(BUILD_TOOLS_PREFIX)/bin' |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
185 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/moc' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)moc' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
186 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/rcc' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)rcc' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
187 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/uic' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)uic' |
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
188 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/qmake' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)qmake' |
3231
ed6444cc0dcb
Fix typo from commit 3218:8ede5874e2f1
John Donoghue <john.donoghue@ieee.org>
parents:
3218
diff
changeset
|
189 ) |
2446
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
190 |
3216
11f8ec654cd4
Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents:
3145
diff
changeset
|
191 # lrelease (from linguist) needed by octave for GUI build |
3312
3e66ccaeff02
Qt: use INSTALL_ROOT instead of DESTDIR
John Donoghue <john.donoghue@ieee.org>
parents:
3309
diff
changeset
|
192 $(MAKE) -C '$(1)/tools/linguist/lrelease' -j '$(JOBS)' install INSTALL_ROOT='$(3)' |
3218
8ede5874e2f1
qt.mk: use make conditional
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
193 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)), |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3259
diff
changeset
|
194 $(INSTALL) -m755 '$(3)$($(PKG)_PREFIX)/bin/lrelease' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)lrelease')) |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
195 endef |