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