Mercurial > mxe-octave
annotate src/qt.mk @ 4676:3edbea625ba8
build-cmake: depend on build-gcc if not using system GCC
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 20 Apr 2018 13:51:05 -0400 |
parents | e8da760989bc |
children | e2349691d6ae |
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 := |
3984 | 6 $(PKG)_VERSION := 4.8.7 |
7 $(PKG)_CHECKSUM := 76aef40335c0701e5be7bb3a9101df5d22fe3666 | |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(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
|
9 $(PKG)_FILE := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION).tar.gz |
3984 | 10 $(PKG)_URL := http://download.qt.io/official_releases/qt/4.8/$($(PKG)_VERSION)/$($(PKG)_FILE) |
4219 | 11 $(PKG)_DEPS := postgresql freetds zlib libpng jpeg libmng tiff sqlite dbus |
3865
4e204ea06bc8
qt.mk: only depend on fontconfig if $(USE_SYSTEM_FONTCONFIG) is set to "no"
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
12 ifeq ($(USE_SYSTEM_FONTCONFIG),no) |
4e204ea06bc8
qt.mk: only depend on fontconfig if $(USE_SYSTEM_FONTCONFIG) is set to "no"
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
13 $(PKG)_FONTCONFIG := fontconfig |
4e204ea06bc8
qt.mk: only depend on fontconfig if $(USE_SYSTEM_FONTCONFIG) is set to "no"
John W. Eaton <jwe@octave.org>
parents:
3830
diff
changeset
|
14 endif |
3743
4f58c4b4dee0
build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
3698
diff
changeset
|
15 ifeq ($(MXE_WINDOWS_BUILD),no) |
3830
c2abfa00fca5
qt.mk, gl2ps.mk: make X11 dependencies optional
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
16 ifeq ($(USE_SYSTEM_X11_LIBS),no) |
4505
e8da760989bc
qt: Update X11 deps; disable icu, xinerama, and xrandr.
John W. Eaton <jwe@octave.org>
parents:
4354
diff
changeset
|
17 $(PKG)_DEPS += xdamage xdmcp xext xfixes xi xrender xt xxf86vm x11 xcb xcb-util xcb-util-cursor xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm |
3830
c2abfa00fca5
qt.mk, gl2ps.mk: make X11 dependencies optional
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
18 endif |
3743
4f58c4b4dee0
build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
3698
diff
changeset
|
19 endif |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
20 |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
21 $(PKG)_CONFIGURE_CMD := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
22 $(PKG)_CONFIGURE_CROSS_COMPILE_OPTION := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
23 $(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
|
24 $(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
|
25 $(PKG)_CONFIGURE_EXTRA_OPTION := |
3612 | 26 $(PKG)_CONFIGURE_INCLUDE_OPTION := -I '$(HOST_INCDIR)/freetype2' |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
27 $(PKG)_CONFIGURE_LIBPATH_OPTION := |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
28 $(PKG)_CONFIGURE_PLATFORM_OPTION := |
3312
3e66ccaeff02
Qt: use INSTALL_ROOT instead of DESTDIR
John Donoghue <john.donoghue@ieee.org>
parents:
3309
diff
changeset
|
29 $(PKG)_PREFIX := $(HOST_PREFIX) |
3e66ccaeff02
Qt: use INSTALL_ROOT instead of DESTDIR
John Donoghue <john.donoghue@ieee.org>
parents:
3309
diff
changeset
|
30 $(PKG)_MKSPECS := $($(PKG)_PREFIX) |
3612 | 31 $(PKG)_INSTALL_ROOT := $(3) |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
32 |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
33 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
|
34 ifeq ($(MXE_NATIVE_BUILD),yes) |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
35 ifeq ($(MXE_SYSTEM),msvc) |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
36 # 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
|
37 # 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
|
38 # this will run NMAKE to compile QMAKE. |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
39 $(PKG)_CONFIGURE_ENV += MAKE= MAKEFLAGS= |
3612 | 40 else |
41 # native mingw doesnt like using install root mixed with prefix | |
42 # and instead attempts to install to c:\INSTALL_ROOT\prefix | |
43 # so dont use it if compiling native mingw | |
44 $(PKG)_INSTALL_ROOT := | |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
45 endif |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
46 else |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
47 $(PKG)_CONFIGURE_ENV := \ |
4219 | 48 PSQL_LIBS="-lpq -lsecur32 `'$(MXE_PKG_CONFIG)'` -lws2_32" \ |
4354 | 49 SYBASE_LIBS="-lsybdb `'$(MXE_PKG_CONFIG)' --libs-only-l gnutls` -liconv -lws2_32" \ |
50 CXXFLAGS="-std=gnu++98" | |
3612 | 51 $(PKG)_CONFIGURE_DATABASE_OPTION += -system-sqlite |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
52 endif |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
53 # compile-in generic ODBC driver under Windows |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
54 $(PKG)_CONFIGURE_DATABASE_OPTION += -plugin-sql-odbc |
2997 | 55 else |
3654 | 56 ifeq ($(MXE_USE_LIB64_DIRECTORY),yes) |
57 $(PKG)_CONFIGURE_ENV += \ | |
58 LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR) -Wl,-rpath-link,$(HOST_LIB64DIR) -L$(HOST_LIB64DIR)' | |
59 else | |
60 $(PKG)_CONFIGURE_ENV += \ | |
61 LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)' | |
62 endif | |
3612 | 63 $(PKG)_CONFIGURE_DATABASE_OPTION += -system-sqlite |
2997 | 64 endif |
65 | |
3066
23e3e2955cf5
Change Qt CONFIGURE_INCLUDE/LIBPATH_OPTION variable to be native only
John Donoghue <john.donoghue@ieee.org>
parents:
3059
diff
changeset
|
66 ifeq ($(MXE_NATIVE_BUILD),yes) |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
67 $(PKG)_CONFIGURE_INCLUDE_OPTION += -I '$(HOST_INCDIR)' |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
68 $(PKG)_CONFIGURE_LIBPATH_OPTION += -L '$(HOST_LIBDIR)' |
3654 | 69 ifeq ($(MXE_USE_LIB64_DIRECTORY),yes) |
70 $(PKG)_CONFIGURE_LIBPATH_OPTION += -L '$(HOST_LIB64DIR)' | |
71 endif | |
3612 | 72 $(PKG)_CONFIGURE_INCLUDE_OPTION += -I '$(HOST_INCDIR)/dbus-1.0' |
73 $(PKG)_CONFIGURE_INCLUDE_OPTION += -I '$(HOST_LIBDIR)/dbus-1.0/include' | |
3066
23e3e2955cf5
Change Qt CONFIGURE_INCLUDE/LIBPATH_OPTION variable to be native only
John Donoghue <john.donoghue@ieee.org>
parents:
3059
diff
changeset
|
74 endif |
3057
7ed3b62fa3ae
qt.mk: always set configure include and lib path options
John W. Eaton <jwe@octave.org>
parents:
3055
diff
changeset
|
75 |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
76 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
77 $(PKG)_CONFIGURE_CMD := configure.exe |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
78 ifeq ($(MXE_SYSTEM),msvc) |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
79 # FIXME: the "2010" suffix should be computed dynamically |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
80 $(PKG)_CONFIGURE_PLATFORM_OPTION := -platform win32-msvc2010 |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
81 # mimic typical Linux installation |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
82 $(PKG)_CONFIGURE_EXTRA_OPTION += \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
83 -docdir '$(HOST_LIBDIR)/qt4/doc' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
84 -plugindir '$(HOST_LIBDIR)/qt4/plugins' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
85 -importdir '$(HOST_LIBDIR)/qt4/imports' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
86 -datadir '$(HOST_LIBDIR)/qt4' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
87 -translationdir '$(HOST_LIBDIR)/qt4/translations' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
88 -examplesdir '$(HOST_LIBDIR)/qt4/examples' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
89 -demosdir '$(HOST_LIBDIR)/qt4/demos' |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
90 $(PKG)_MKSPECS := '$(HOST_LIBDIR)/qt4' |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
91 else |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
92 $(PKG)_CONFIGURE_PLATFORM_OPTION := -platform win32-g++ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
93 endif |
2997 | 94 else |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
95 $(PKG)_CONFIGURE_CMD := configure |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
96 $(PKG)_CONFIGURE_EXTRA_OPTION := \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
97 -prefix-install \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
98 -make libs \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
99 -no-glib \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
100 -no-gstreamer \ |
3660
695c90731c85
qt: dont use -no-javascript-jit if native mingw build.
John Donoghue <john.donoghue@ieee.org>
parents:
3654
diff
changeset
|
101 -no-javascript-jit \ |
4219 | 102 -no-openssl \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
103 -no-reduce-exports \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
104 -no-rpath \ |
3409
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3322
diff
changeset
|
105 -make translations \ |
5e77c5fc91ed
qt: build translations in cross build and install
John Donoghue <john.donoghue@ieee.org>
parents:
3322
diff
changeset
|
106 -translationdir '$($(PKG)_PREFIX)/translations' \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
107 -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
|
108 -force-pkg-config \ |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
109 -v |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
110 |
2997 | 111 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
|
112 $(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
|
113 -device-option CROSS_COMPILE=$(MXE_TOOL_PREFIX) |
2997 | 114 $(PKG)_CONFIGURE_PLATFORM_OPTION := -xplatform win32-g++-4.6 |
115 endif | |
3660
695c90731c85
qt: dont use -no-javascript-jit if native mingw build.
John Donoghue <john.donoghue@ieee.org>
parents:
3654
diff
changeset
|
116 |
2997 | 117 endif |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
118 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
119 define $(PKG)_UPDATE |
3561
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
120 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; |
ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
121 echo $($(PKG)_VERSION) |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
122 endef |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
123 |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
124 define $(PKG)_BUILD |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
125 ## syncqt needs QTDIR set to find the sources |
2013 | 126 cd '$(1)' && QTDIR='$(1)' ./bin/syncqt |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
127 cd '$(1)' && QTDIR='$(1)' \ |
2997 | 128 $($(PKG)_CONFIGURE_ENV) \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
129 ./$($(PKG)_CONFIGURE_CMD) \ |
2997 | 130 $($(PKG)_CONFIGURE_INCLUDE_OPTION) \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
131 $($(PKG)_CONFIGURE_LIBPATH_OPTION) \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
132 -opensource \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
133 -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
|
134 -dbus-linked \ |
1015
7997c04d4bef
upgrade package qt to 4.7.0-beta1 (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
990
diff
changeset
|
135 -fast \ |
2997 | 136 $($(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
|
137 $($(PKG)_CONFIGURE_CROSS_COMPILE_OPTION) \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
138 $($(PKG)_CONFIGURE_EXTRA_OPTION) \ |
486
8eda0b6ec42a
disable debug information for package qt
Volker Grabsch <vog@notjusthosting.com>
parents:
485
diff
changeset
|
139 -release \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
140 -exceptions \ |
2927 | 141 -shared \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
142 -prefix $($(PKG)_PREFIX) \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
143 -script \ |
1910
ce3b84b9514f
package qt: build with -no-iconv
Nikos Chantziaras <realnc@arcor.de>
parents:
1909
diff
changeset
|
144 -no-iconv \ |
4505
e8da760989bc
qt: Update X11 deps; disable icu, xinerama, and xrandr.
John W. Eaton <jwe@octave.org>
parents:
4354
diff
changeset
|
145 -no-icu \ |
470
a07d9f69e2ee
add OpenGL support to package qt (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
468
diff
changeset
|
146 -opengl desktop \ |
3259
33ab5eb4fed6
Undo qt no-webkit changeset 3258:db4c94cfc651
John Donoghue <john.donoghue@ieee.org>
parents:
3258
diff
changeset
|
147 -no-webkit \ |
4305
17f36188049d
use -no-pch for qt build (from MXE project).
John W. Eaton <jwe@octave.org>
parents:
4219
diff
changeset
|
148 -no-pch \ |
509
e97947e7d45e
update version of package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
497
diff
changeset
|
149 -no-phonon \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
150 -no-phonon-backend \ |
4505
e8da760989bc
qt: Update X11 deps; disable icu, xinerama, and xrandr.
John W. Eaton <jwe@octave.org>
parents:
4354
diff
changeset
|
151 -no-xinerama \ |
e8da760989bc
qt: Update X11 deps; disable icu, xinerama, and xrandr.
John W. Eaton <jwe@octave.org>
parents:
4354
diff
changeset
|
152 -no-xrandr \ |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
153 -accessibility \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
154 -nomake demos \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
155 -nomake docs \ |
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
156 -nomake examples \ |
2997 | 157 $($(PKG)_CONFIGURE_DATABASE_OPTION) \ |
548
08b6c299a522
several improvements to package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
520
diff
changeset
|
158 -system-zlib \ |
578
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
159 -system-libpng \ |
41c0ac9326f2
improvements for package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
576
diff
changeset
|
160 -system-libjpeg \ |
573
57166e6490d2
use more external libraries in package qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
570
diff
changeset
|
161 -system-libtiff \ |
3612 | 162 -system-libmng |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
163 |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
164 if test x$(MXE_SYSTEM) = xmsvc; then \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
165 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
|
166 sed -i -e 's/@@LIBRARY_PREFIX@@/$(LIBRARY_PREFIX)/g' \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
167 -e 's/@@LIBRARY_SUFFIX@@/$(LIBRARY_SUFFIX)/g' $$f; \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
168 done; \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
169 fi |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
170 |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
171 # need to 'install' mkspecs for the native mingw to build during its build |
3612 | 172 # also need build tools qmake |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
173 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes ]; then \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
174 mkdir -p '$($(PKG)_MKSPECS)'; \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
175 cp -r '$(1)/mkspecs' '$($(PKG)_MKSPECS)'; \ |
4209
5f6f60e3db31
qt: on native build, install mkspec and qmake files
John D
parents:
3984
diff
changeset
|
176 $(INSTALL) -d '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin'; \ |
3612 | 177 $(INSTALL) -m755 '$(1)/bin/qmake.exe' '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin/'; \ |
4209
5f6f60e3db31
qt: on native build, install mkspec and qmake files
John D
parents:
3984
diff
changeset
|
178 elif [ "$(MXE_NATIVE_BUILD)" = "yes" ]; then \ |
5f6f60e3db31
qt: on native build, install mkspec and qmake files
John D
parents:
3984
diff
changeset
|
179 mkdir -p '$($(PKG)_MKSPECS)'; \ |
5f6f60e3db31
qt: on native build, install mkspec and qmake files
John D
parents:
3984
diff
changeset
|
180 cp -r '$(1)/mkspecs' '$($(PKG)_MKSPECS)'; \ |
5f6f60e3db31
qt: on native build, install mkspec and qmake files
John D
parents:
3984
diff
changeset
|
181 $(INSTALL) -d '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin'; \ |
5f6f60e3db31
qt: on native build, install mkspec and qmake files
John D
parents:
3984
diff
changeset
|
182 $(INSTALL) $(1)/bin/qmake '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin/'; \ |
3047
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
183 fi |
e7b7b0f663d3
Update qt.mk for native mingw buiild
John Donoghue <john.donoghue@ieee.org>
parents:
3041
diff
changeset
|
184 |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
185 # 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
|
186 # 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
|
187 # 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
|
188 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
|
189 mkdir -p '$(3)' && \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
190 cd '$(1)' && \ |
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
191 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
|
192 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
|
193 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
|
194 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
|
195 else \ |
3612 | 196 make -C '$(1)' -j '$(JOBS)'; \ |
197 make -C '$(1)' -j 1 install INSTALL_ROOT=$($(PKG)_INSTALL_ROOT); \ | |
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
|
198 if [ "$(MXE_SYSTEM)" = mingw ]; then \ |
3612 | 199 rm -f $($(PKG)_INSTALL_ROOT)$(HOST_LIBDIR)/$(LIBRARY_PREFIX)Qt*$(LIBRARY_SUFFIX).dll; \ |
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
|
200 fi \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
201 fi |
3051
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
202 |
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
|
203 # 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
|
204 # 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
|
205 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
|
206 find $(1)/lib/pkgconfig/*.pc -exec $(SED) -i \ |
3129
d24828818d36
[MSVC] enable Qt compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3066
diff
changeset
|
207 -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
|
208 -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
|
209 '{}' ';' ; \ |
3612 | 210 $(INSTALL) -d '$($(PKG)_INSTALL_ROOT)$(HOST_LIBDIR)/pkgconfig'; \ |
211 cp -f '$(1)/lib/pkgconfig/'*.pc '$($(PKG)_INSTALL_ROOT)$(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
|
212 fi |
9cb1ce8082a4
Update qt.mk to install .pc files in native mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
213 |
3218
8ede5874e2f1
qt.mk: use make conditional
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
214 $(if $(filter-out msvc, $(MXE_SYSTEM)), |
8ede5874e2f1
qt.mk: use make conditional
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
215 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)), |
3612 | 216 $(INSTALL) -d '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin' |
3746
0ef36efbd9cd
qt: for cross compile, move the native binaries to the builkd directory
John Donoghue
parents:
3698
diff
changeset
|
217 mv '$($(PKG)_INSTALL_ROOT)$($(PKG)_PREFIX)/bin/moc' '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)moc' |
0ef36efbd9cd
qt: for cross compile, move the native binaries to the builkd directory
John Donoghue
parents:
3698
diff
changeset
|
218 mv '$($(PKG)_INSTALL_ROOT)$($(PKG)_PREFIX)/bin/rcc' '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)rcc' |
0ef36efbd9cd
qt: for cross compile, move the native binaries to the builkd directory
John Donoghue
parents:
3698
diff
changeset
|
219 mv '$($(PKG)_INSTALL_ROOT)$($(PKG)_PREFIX)/bin/uic' '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)uic' |
0ef36efbd9cd
qt: for cross compile, move the native binaries to the builkd directory
John Donoghue
parents:
3698
diff
changeset
|
220 mv '$($(PKG)_INSTALL_ROOT)$($(PKG)_PREFIX)/bin/qmake' '$($(PKG)_INSTALL_ROOT)$(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
|
221 ) |
2446
42295c6227c2
package qt: build more tools
Mark Brand <mabrand@mabrand.nl>
parents:
2445
diff
changeset
|
222 |
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
|
223 # lrelease (from linguist) needed by octave for GUI build |
3612 | 224 $(MAKE) -C '$(1)/tools/linguist/lrelease' -j '$(JOBS)' |
225 $(MAKE) -C '$(1)/tools/linguist/lrelease' -j 1 install INSTALL_ROOT='$($(PKG)_INSTALL_ROOT)' | |
3218
8ede5874e2f1
qt.mk: use make conditional
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
226 $(if $(filter-out yes, $(MXE_NATIVE_BUILD)), |
3746
0ef36efbd9cd
qt: for cross compile, move the native binaries to the builkd directory
John Donoghue
parents:
3698
diff
changeset
|
227 mv '$($(PKG)_INSTALL_ROOT)$($(PKG)_PREFIX)/bin/lrelease' '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)lrelease')) |
3612 | 228 |
3959
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
229 # if mingw cross compiling, and want devel tools, create cross compiles uic, moc, rcc and lrelease |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
230 if [ "$(MXE_NATIVE_BUILD)" = "no" -a "$(MXE_SYSTEM)" = "mingw" ]; then \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
231 if [ "$(ENABLE_DEVEL_TOOLS)" = "yes" ]; then \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
232 for f in bootstrap moc uic rcc; do \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
233 echo "do make in $$f"; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
234 make -C "$(1)/src/tools/$$f" distclean; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
235 cd "$(1)/src/tools/$$f" && $(MXE_QMAKE) -makefile -spec '$(1)/mkspecs/win32-g++'; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
236 make -C "$(1)/src/tools/$$f"; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
237 make -C "$(1)/src/tools/$$f" -j 1 install INSTALL_ROOT='$($(PKG)_INSTALL_ROOT)'; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
238 done; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
239 make -C '$(1)/tools/linguist/lrelease' distclean; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
240 cd '$(1)/tools/linguist/lrelease' && $(MXE_QMAKE) -makefile -spec '$(1)/mkspecs/win32-g++'; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
241 make -C '$(1)/tools/linguist/lrelease'; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
242 make -C '$(1)/tools/linguist/lrelease' -j 1 install INSTALL_ROOT='$($(PKG)_INSTALL_ROOT)'; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
243 fi; \ |
6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
John D
parents:
3865
diff
changeset
|
244 fi |
452
ade2c475c772
new package: qt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
245 endef |