comparison src/qtbase.mk @ 4222:44b1a9b2193e

qt5: add initial qt5 to mxe-octave, based on mxe.cc * src/qt5.mk: new file * src/qtbase-1-fixes.patch: new file * src/qtbase.mk: new file * src/qtimageformats-1.patch: new file * src/qtimageformats.mk: new file * src/qtsvg.mk: new file * src/qttools-1.patch: new file * added src/qttools.mk: new file * changed Makefile.in: added ENABLE_QT5 option * configure.ac: added enable-qt5 option * index.html: added new files to packages * installer-files/octave-firsttime.vbs: added setup of qt5 bin, plugin path * installer-files/octave.vbs: added setup of qt5 bin, plugin path * installer-files/octave.bat: added setup of qt5 bin path * src/default-octave.mk: added settig fot qt5 usage * src/qscintilla.mk: added qt5 path
author John D
date Thu, 29 Sep 2016 11:22:51 -0400
parents
children 2c34ec679fb3
comparison
equal deleted inserted replaced
4221:1cac12604314 4222:44b1a9b2193e
1 # This file is part of MXE.
2 # See index.html for further information.
3
4 PKG := qtbase
5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 5.7.0
7 $(PKG)_CHECKSUM := ba835ff158932eebbf1ed9f678414923dfd7cce4
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
21 define $(PKG)_BUILD
22 # ICU is buggy. See #653. TODO: reenable it some time in the future.
23 cd '$(1)' && \
24 PSQL_LIBS="-lpq -lsecur32 -lws2_32" \
25 ./configure \
26 -opensource \
27 -c++std c++11 \
28 -confirm-license \
29 -xplatform win32-g++ \
30 -device-option CROSS_COMPILE=$(MXE_TOOL_PREFIX) \
31 -device-option PKG_CONFIG='$(MXE_PKG_CONFIG)' \
32 -force-pkg-config \
33 -no-use-gold-linker \
34 -release \
35 -shared \
36 -prefix '$(HOST_PREFIX)/qt5' \
37 -hostprefix '$(BUILD_TOOLS_PREFIX)' \
38 -no-icu \
39 -opengl desktop \
40 -no-glib \
41 -accessibility \
42 -nomake examples \
43 -nomake tests \
44 -plugin-sql-sqlite \
45 -plugin-sql-odbc \
46 -plugin-sql-psql \
47 -system-zlib \
48 -system-libpng \
49 -system-libjpeg \
50 -system-sqlite \
51 -fontconfig \
52 -system-freetype \
53 -system-pcre \
54 -no-openssl \
55 -dbus-linked \
56 -v \
57 $($(PKG)_CONFIGURE_OPTS)
58
59 $(MAKE) -C '$(1)' -j '$(JOBS)'
60 rm -rf '$(HOST_PREFIX)/qt5'
61 $(MAKE) -C '$(1)' -j 1 install
62
63 # remove this
64 if [ "$(MXE_NATIVE_BUILD)" = "xxno" ]; then \
65 for f in moc qdbuscpp2xml qdbusxml2cpp qlalr qmake rcc uic; do \
66 mv "$(HOST_PREFIX)/qt5/bin/$$f" "$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)$$f-qt5"; \
67 done; \
68 fi
69
70 #ln -sf '$(HOST_PREFIX)/qt5/bin/qmake' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'qmake-qt5
71 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/qmake' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'qmake-qt5
72 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/moc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'moc
73 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/uic' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'uic
74 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/rcc' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'rcc
75 ln -sf '$(BUILD_TOOLS_PREFIX)/bin/lrelease' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)'lrelease
76
77 # setup cmake toolchain
78 #echo 'set(CMAKE_SYSTEM_PREFIX_PATH "$(PREFIX)/$(TARGET)/qt5" ${CMAKE_SYSTEM_PREFIX_PATH})' > '$(CMAKE_TOOLCHAIN_DIR)/$(PKG).cmake'
79
80 endef
81