annotate src/qtbase.mk @ 4484:0d0e6c8015af

qtbase.mk: Use proper platform option for cross and native windows builds.
author John W. Eaton <jwe@octave.org>
date Tue, 03 Oct 2017 11:27:47 -0400
parents 57600c0c6bdf
children 86176b88d1f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
1 # This file is part of MXE.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
2 # See index.html for further information.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
3
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
4 PKG := qtbase
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
5 $(PKG)_IGNORE :=
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
6 $(PKG)_VERSION := 5.7.1
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
7 $(PKG)_CHECKSUM := a3ddcde8978d3a05bb4342fce364a792472a16e6
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-opensource-src-$($(PKG)_VERSION)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-opensource-src-$($(PKG)_VERSION).tar.xz
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
10 $(PKG)_URL := http://download.qt.io/official_releases/qt/5.7/$($(PKG)_VERSION)/submodules/$($(PKG)_FILE)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
11 $(PKG)_DEPS := dbus freetds freetype fontconfig jpeg libpng pcre postgresql sqlite zlib
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
12
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
13 define $(PKG)_UPDATE
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
14 $(WGET) -q -O- http://download.qt-project.org/official_releases/qt/5.5/ | \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
15 $(SED) -n 's,.*href="\(5\.[0-9]\.[^/]*\)/".*,\1,p' | \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
16 grep -iv -- '-rc' | \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
17 sort |
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
18 tail -1
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
19 endef
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
20
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
21 $(PKG)_CONFIGURE_CROSS_COMPILE_OPTION :=
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
22 $(PKG)_CONFIGURE_DATABASE_OPTION :=
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
23 $(PKG)_CONFIGURE_ENV :=
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
24 $(PKG)_CONFIGURE_INCLUDE_OPTION := -I '$(HOST_INCDIR)/freetype2'
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
25 $(PKG)_CONFIGURE_LIBPATH_OPTION :=
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
26 $(PKG)_CONFIGURE_PLATFORM_OPTION :=
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
27
4484
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
28 ## These are needed whether cross compiling or not.
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
29 ifeq ($(MXE_WINDOWS_BUILD),yes)
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
30 $(PKG)_CONFIGURE_ENV := PSQL_LIBS="-lpq -lsecur32 -lws2_32"
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
31 $(PKG)_CONFIGURE_DATABASE_OPTION += \
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
32 -system-sqlite -plugin-sql-sqlite -plugin-sql-odbc -plugin-sql-psql
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
33 else
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
34 $(PKG)_CONFIGURE_DATABASE_OPTION += -system-sqlite
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
35 endif
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
36
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
37 ifeq ($(MXE_NATIVE_BUILD),yes)
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
38 $(PKG)_CONFIGURE_INCLUDE_OPTION += -I '$(HOST_INCDIR)'
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
39 $(PKG)_CONFIGURE_LIBPATH_OPTION += -L '$(HOST_LIBDIR)'
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
40 ifeq ($(MXE_USE_LIB64_DIRECTORY),yes)
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
41 $(PKG)_CONFIGURE_LIBPATH_OPTION += -L '$(HOST_LIB64DIR)'
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
42 endif
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
43 $(PKG)_CONFIGURE_INCLUDE_OPTION += -I '$(HOST_INCDIR)/dbus-1.0'
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
44 $(PKG)_CONFIGURE_INCLUDE_OPTION += -I '$(HOST_LIBDIR)/dbus-1.0/include'
4484
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
45 ifeq ($(MXE_WINDOWS_BUILD),yes)
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
46 $(PKG)_CONFIGURE_PLATFORM_OPTION := -platform win32-g++
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
47 endif
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
48 else
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
49 $(PKG)_CONFIGURE_CROSS_COMPILE_OPTION := \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
50 -device-option CROSS_COMPILE=$(MXE_TOOL_PREFIX)
4484
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
51 ifeq ($(MXE_WINDOWS_BUILD),yes)
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
52 $(PKG)_CONFIGURE_PLATFORM_OPTION := -xplatform win32-g++
0d0e6c8015af qtbase.mk: Use proper platform option for cross and native windows builds.
John W. Eaton <jwe@octave.org>
parents: 4482
diff changeset
53 endif
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
54 endif
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
55
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
56 define $(PKG)_BUILD
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
57 # ICU is buggy. See #653. TODO: reenable it some time in the future.
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
58 cd '$(1)' && \
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
59 $($(PKG)_CONFIGURE_ENV) \
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
60 ./configure \
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
61 $($(PKG)_CONFIGURE_INCLUDE_OPTION) \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
62 $($(PKG)_CONFIGURE_LIBPATH_OPTION) \
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
63 -opensource \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
64 -c++std c++11 \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
65 -confirm-license \
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
66 $($(PKG)_CONFIGURE_PLATFORM_OPTION) \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
67 $($(PKG)_CONFIGURE_CROSS_COMPILE_OPTION) \
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
68 -device-option PKG_CONFIG='$(MXE_PKG_CONFIG)' \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
69 -force-pkg-config \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
70 -no-use-gold-linker \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
71 -release \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
72 -shared \
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
73 -prefix '$(HOST_PREFIX)' \
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
74 -hostprefix '$(BUILD_TOOLS_PREFIX)' \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
75 -no-icu \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
76 -opengl desktop \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
77 -no-glib \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
78 -accessibility \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
79 -nomake examples \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
80 -nomake tests \
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
81 $($(PKG)_CONFIGURE_DATABASE_OPTION) \
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
82 -system-zlib \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
83 -system-libpng \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
84 -system-libjpeg \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
85 -system-sqlite \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
86 -fontconfig \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
87 -system-freetype \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
88 -system-pcre \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
89 -no-openssl \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
90 -dbus-linked \
4310
2c34ec679fb3 qt5: update to 5.7.1
John D
parents: 4222
diff changeset
91 -no-pch \
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
92 -no-xcb \
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
93 -v \
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
94 $($(PKG)_CONFIGURE_OPTS)
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
95
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
96 $(MAKE) -C '$(1)' -j '$(JOBS)'
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
97 $(MAKE) -C '$(1)' -j 1 install
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
98
4482
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
99 if [ "$(MXE_NATIVE_BUILD)" = "no" ]; then \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
100 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/qmake' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'qmake-qt5; \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
101 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/moc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'moc; \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
102 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/uic' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'uic; \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
103 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/rcc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'rcc; \
57600c0c6bdf allow native linux system builds of qtbase to work again
John W. Eaton <jwe@octave.org>
parents: 4310
diff changeset
104 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/lrelease' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'lrelease; \
4222
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
105 fi
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
106
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
107 endef
44b1a9b2193e qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
diff changeset
108