|
|
|
@ -1,18 +1,18 @@
|
|
|
|
|
PACKAGE=qt
|
|
|
|
|
$(package)_version=5.7.1
|
|
|
|
|
$(package)_download_path=http://linorg.usp.br/Qt/archive/qt/5.7/5.7.1/submodules
|
|
|
|
|
$(package)_suffix=opensource-src-$($(package)_version).tar.gz
|
|
|
|
|
$(package)_version=5.15.1
|
|
|
|
|
$(package)_download_path=https://download.qt.io/official_releases/qt/5.15/$($(package)_version)/submodules
|
|
|
|
|
$(package)_suffix=everywhere-src-$($(package)_version).tar.xz
|
|
|
|
|
$(package)_file_name=qtbase-$($(package)_suffix)
|
|
|
|
|
$(package)_sha256_hash=95f83e532d23b3ddbde7973f380ecae1bac13230340557276f75f2e37984e410
|
|
|
|
|
$(package)_sha256_hash=33960404d579675b7210de103ed06a72613bfc4305443e278e2d32a3eb1f3d8c
|
|
|
|
|
$(package)_build_subdir=qtbase
|
|
|
|
|
$(package)_qt_libs=corelib
|
|
|
|
|
$(package)_patches=pidlist_absolute.patch fix_qt_pkgconfig.patch qfixed-coretext.patch
|
|
|
|
|
$(package)_patches=fix_qt_pkgconfig.patch fix_no_printer.patch fix_rcc_determinism.patch no-xlib.patch
|
|
|
|
|
|
|
|
|
|
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
|
|
|
|
$(package)_qttranslations_sha256_hash=3a15aebd523c6d89fb97b2d3df866c94149653a26d27a00aac9b6d3020bc5a1d
|
|
|
|
|
$(package)_qttranslations_sha256_hash=46e0c0e3a511fbcc803a4146204062e47f6ed43b34d98a3c27372a03b8746bd8
|
|
|
|
|
|
|
|
|
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
|
|
|
|
$(package)_qttools_sha256_hash=22d67de915cb8cd93e16fdd38fa006224ad9170bd217c2be1e53045a8dd02f0f
|
|
|
|
|
$(package)_qttools_sha256_hash=c98ee5f0f980bf68cbf0c94d62434816a92441733de50bd9adbe9b9055f03498
|
|
|
|
|
|
|
|
|
|
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
|
|
|
|
$(package)_extra_sources += $($(package)_qttools_file_name)
|
|
|
|
@ -24,28 +24,26 @@ $(package)_config_opts += -bindir $(build_prefix)/bin
|
|
|
|
|
$(package)_config_opts += -c++std c++11
|
|
|
|
|
$(package)_config_opts += -confirm-license
|
|
|
|
|
$(package)_config_opts += -dbus-runtime
|
|
|
|
|
$(package)_config_opts += -no-alsa
|
|
|
|
|
$(package)_config_opts += -no-audio-backend
|
|
|
|
|
$(package)_config_opts += -hostprefix $(build_prefix)
|
|
|
|
|
$(package)_config_opts += -no-compile-examples
|
|
|
|
|
$(package)_config_opts += -no-cups
|
|
|
|
|
$(package)_config_opts += -no-egl
|
|
|
|
|
$(package)_config_opts += -no-eglfs
|
|
|
|
|
$(package)_config_opts += -no-feature-style-windowsmobile
|
|
|
|
|
$(package)_config_opts += -no-feature-style-windowsce
|
|
|
|
|
$(package)_config_opts += -no-evdev
|
|
|
|
|
$(package)_config_opts += -no-gui
|
|
|
|
|
$(package)_config_opts += -no-freetype
|
|
|
|
|
$(package)_config_opts += -no-gif
|
|
|
|
|
$(package)_config_opts += -no-glib
|
|
|
|
|
$(package)_config_opts += -no-gstreamer
|
|
|
|
|
$(package)_config_opts += -no-icu
|
|
|
|
|
$(package)_config_opts += -no-ico
|
|
|
|
|
$(package)_config_opts += -no-iconv
|
|
|
|
|
$(package)_config_opts += -no-kms
|
|
|
|
|
$(package)_config_opts += -no-linuxfb
|
|
|
|
|
$(package)_config_opts += -no-libjpeg
|
|
|
|
|
$(package)_config_opts += -no-libudev
|
|
|
|
|
$(package)_config_opts += -no-mitshm
|
|
|
|
|
$(package)_config_opts += -no-mtdev
|
|
|
|
|
$(package)_config_opts += -no-pulseaudio
|
|
|
|
|
$(package)_config_opts += -no-openvg
|
|
|
|
|
$(package)_config_opts += -no-reduce-relocations
|
|
|
|
|
$(package)_config_opts += -no-qml-debug
|
|
|
|
|
$(package)_config_opts += -no-sql-db2
|
|
|
|
|
$(package)_config_opts += -no-sql-ibase
|
|
|
|
|
$(package)_config_opts += -no-sql-oci
|
|
|
|
@ -56,8 +54,6 @@ $(package)_config_opts += -no-sql-psql
|
|
|
|
|
$(package)_config_opts += -no-sql-sqlite
|
|
|
|
|
$(package)_config_opts += -no-sql-sqlite2
|
|
|
|
|
$(package)_config_opts += -no-use-gold-linker
|
|
|
|
|
$(package)_config_opts += -no-xinput2
|
|
|
|
|
$(package)_config_opts += -no-xrender
|
|
|
|
|
$(package)_config_opts += -nomake examples
|
|
|
|
|
$(package)_config_opts += -nomake tests
|
|
|
|
|
$(package)_config_opts += -opensource
|
|
|
|
@ -65,25 +61,46 @@ $(package)_config_opts += -no-openssl
|
|
|
|
|
$(package)_config_opts += -optimized-qmake
|
|
|
|
|
$(package)_config_opts += -pch
|
|
|
|
|
$(package)_config_opts += -pkg-config
|
|
|
|
|
$(package)_config_opts += -prefix $(host_prefix)
|
|
|
|
|
$(package)_config_opts += -no-libpng
|
|
|
|
|
$(package)_config_opts += -no-libjpeg
|
|
|
|
|
$(package)_config_opts += -qt-pcre
|
|
|
|
|
$(package)_config_opts += -qt-harfbuzz
|
|
|
|
|
$(package)_config_opts += -no-zlib
|
|
|
|
|
$(package)_config_opts += -reduce-exports
|
|
|
|
|
$(package)_config_opts += -static
|
|
|
|
|
$(package)_config_opts += -silent
|
|
|
|
|
$(package)_config_opts += -v
|
|
|
|
|
$(package)_config_opts += -no-feature-printer
|
|
|
|
|
$(package)_config_opts += -no-feature-bearermanagement
|
|
|
|
|
$(package)_config_opts += -no-feature-colordialog
|
|
|
|
|
$(package)_config_opts += -no-feature-dial
|
|
|
|
|
$(package)_config_opts += -no-feature-filesystemwatcher
|
|
|
|
|
$(package)_config_opts += -no-feature-fontcombobox
|
|
|
|
|
$(package)_config_opts += -no-feature-ftp
|
|
|
|
|
$(package)_config_opts += -no-feature-image_heuristic_mask
|
|
|
|
|
$(package)_config_opts += -no-feature-keysequenceedit
|
|
|
|
|
$(package)_config_opts += -no-feature-lcdnumber
|
|
|
|
|
$(package)_config_opts += -no-feature-pdf
|
|
|
|
|
$(package)_config_opts += -no-feature-printdialog
|
|
|
|
|
$(package)_config_opts += -no-gui
|
|
|
|
|
$(package)_config_opts += -no-freetype
|
|
|
|
|
$(package)_config_opts += -no-sm
|
|
|
|
|
$(package)_config_opts += -no-fontconfig
|
|
|
|
|
$(package)_config_opts += -no-opengl
|
|
|
|
|
$(package)_config_opts += -no-xkb
|
|
|
|
|
$(package)_config_opts += -no-xcb
|
|
|
|
|
$(package)_config_opts += -no-xshape
|
|
|
|
|
$(package)_build_env = QT_RCC_TEST=1
|
|
|
|
|
$(package)_config_opts += -no-feature-printer
|
|
|
|
|
$(package)_config_opts += -no-feature-printpreviewdialog
|
|
|
|
|
$(package)_config_opts += -no-feature-printpreviewwidget
|
|
|
|
|
$(package)_config_opts += -no-feature-sessionmanager
|
|
|
|
|
$(package)_config_opts += -no-feature-sql
|
|
|
|
|
$(package)_config_opts += -no-feature-statemachine
|
|
|
|
|
$(package)_config_opts += -no-feature-syntaxhighlighter
|
|
|
|
|
$(package)_config_opts += -no-feature-textbrowser
|
|
|
|
|
$(package)_config_opts += -no-feature-textodfwriter
|
|
|
|
|
$(package)_config_opts += -no-feature-topleveldomain
|
|
|
|
|
$(package)_config_opts += -no-feature-udpsocket
|
|
|
|
|
$(package)_config_opts += -no-feature-undocommand
|
|
|
|
|
$(package)_config_opts += -no-feature-undogroup
|
|
|
|
|
$(package)_config_opts += -no-feature-undostack
|
|
|
|
|
$(package)_config_opts += -no-feature-undoview
|
|
|
|
|
$(package)_config_opts += -no-feature-vnc
|
|
|
|
|
$(package)_config_opts += -no-feature-wizard
|
|
|
|
|
$(package)_config_opts_linux = -no-fontconfig
|
|
|
|
|
$(package)_config_opts_linux += -no-opengl
|
|
|
|
|
$(package)_config_opts_linux += -no-xcb
|
|
|
|
|
$(package)_config_opts_linux += -no-feature-xlib
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define $(package)_fetch_cmds
|
|
|
|
@ -108,14 +125,24 @@ endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
|
|
|
|
sed -i.old "s|FT_Get_Font_Format|FT_Get_X11_Font_Format|" qtbase/src/platformsupport/fontdatabases/freetype/qfontengine_ft.cpp && \
|
|
|
|
|
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
|
|
|
|
sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
|
|
|
|
|
patch -p1 < $($(package)_patch_dir)/pidlist_absolute.patch && \
|
|
|
|
|
patch -p1 < $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
|
|
|
|
|
patch -p1 < $($(package)_patch_dir)/qfixed-coretext.patch && \
|
|
|
|
|
sed -i.old "s/src_plugins.depends = src_sql src_network/src_plugins.depends = src_network/" qtbase/src/src.pro && \
|
|
|
|
|
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \
|
|
|
|
|
sed -i.old "s/arm-linux-gnueabi-/$(host)-/g" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
|
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch && \
|
|
|
|
|
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|
|
|
|
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|
|
|
|
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf
|
|
|
|
|
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \
|
|
|
|
|
echo "QMAKE_LINK_OBJECT_MAX = 10" >> qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
|
|
|
echo "QMAKE_LINK_OBJECT_SCRIPT = object_script" >> qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
|
|
|
sed -i.old "s|QMAKE_CFLAGS += |!host_build: QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
|
|
|
sed -i.old "s|QMAKE_CXXFLAGS += |!host_build: QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
|
|
|
sed -i.old "0,/^QMAKE_LFLAGS_/s|^QMAKE_LFLAGS_|!host_build: QMAKE_LFLAGS = $($(package)_ldflags)\n&|" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
|
|
|
sed -i.old "s/LIBRARY_PATH/(CROSS_)?\0/g" qtbase/mkspecs/features/toolchain.prf
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
|