2014-07-23 07:31:30 +02:00
|
|
|
PACKAGE=qt
|
2019-07-18 14:13:35 +02:00
|
|
|
$(package)_version=5.9.8
|
2018-06-02 23:45:52 +02:00
|
|
|
$(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules
|
2018-05-19 16:22:47 +02:00
|
|
|
$(package)_suffix=opensource-src-$($(package)_version).tar.xz
|
2015-07-24 01:07:03 +02:00
|
|
|
$(package)_file_name=qtbase-$($(package)_suffix)
|
2019-07-18 14:13:35 +02:00
|
|
|
$(package)_sha256_hash=9b9dec1f67df1f94bce2955c5604de992d529dde72050239154c56352da0907d
|
2019-10-15 23:10:32 +02:00
|
|
|
$(package)_dependencies=zlib
|
2019-07-18 23:43:06 +02:00
|
|
|
$(package)_linux_dependencies=freetype fontconfig libxcb
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_build_subdir=qtbase
|
|
|
|
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
2020-08-18 09:12:56 +02:00
|
|
|
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
|
|
|
|
$(package)_patches+= fix_rcc_determinism.patch fix_riscv64_arch.patch xkb-default.patch no-xlib.patch
|
|
|
|
$(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
|
2020-08-18 09:27:29 +02:00
|
|
|
$(package)_patches+= freetype_back_compat.patch drop_lrelease_dependency.patch
|
2015-07-24 01:07:03 +02:00
|
|
|
|
2020-05-23 12:22:29 +02:00
|
|
|
# Update OSX_QT_TRANSLATIONS when this is updated
|
2015-07-24 01:07:03 +02:00
|
|
|
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
2019-07-18 14:13:35 +02:00
|
|
|
$(package)_qttranslations_sha256_hash=fb5a47799754af73d3bf501fe513342cfe2fc37f64e80df5533f6110e804220c
|
2015-07-24 01:07:03 +02:00
|
|
|
|
|
|
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
2019-07-18 14:13:35 +02:00
|
|
|
$(package)_qttools_sha256_hash=a97556eb7b2f30252cdd8a598c396cfce2b2f79d2bae883af6d3b26a2cdcc63c
|
2015-07-24 01:07:03 +02:00
|
|
|
|
|
|
|
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
|
|
|
$(package)_extra_sources += $($(package)_qttools_file_name)
|
2014-07-23 07:31:30 +02:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2014-09-23 23:41:42 +02:00
|
|
|
$(package)_config_opts_release = -release
|
2017-01-04 14:16:31 +01:00
|
|
|
$(package)_config_opts_debug = -debug
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -bindir $(build_prefix)/bin
|
2017-01-04 14:16:31 +01:00
|
|
|
$(package)_config_opts += -c++std c++11
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -confirm-license
|
|
|
|
$(package)_config_opts += -hostprefix $(build_prefix)
|
2018-11-29 16:38:02 +01:00
|
|
|
$(package)_config_opts += -no-compile-examples
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -no-cups
|
|
|
|
$(package)_config_opts += -no-egl
|
|
|
|
$(package)_config_opts += -no-eglfs
|
|
|
|
$(package)_config_opts += -no-freetype
|
|
|
|
$(package)_config_opts += -no-gif
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts += -no-glib
|
|
|
|
$(package)_config_opts += -no-icu
|
2019-07-10 06:21:40 +02:00
|
|
|
$(package)_config_opts += -no-ico
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts += -no-iconv
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -no-kms
|
|
|
|
$(package)_config_opts += -no-linuxfb
|
2019-07-24 03:09:08 +02:00
|
|
|
$(package)_config_opts += -no-libjpeg
|
2019-12-05 20:11:50 +01:00
|
|
|
$(package)_config_opts += -no-libproxy
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -no-libudev
|
|
|
|
$(package)_config_opts += -no-mtdev
|
2019-10-15 23:10:32 +02:00
|
|
|
$(package)_config_opts += -no-openssl
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -no-openvg
|
|
|
|
$(package)_config_opts += -no-reduce-relocations
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts += -no-qml-debug
|
2019-12-05 20:11:50 +01:00
|
|
|
$(package)_config_opts += -no-sctp
|
2019-10-15 23:10:32 +02:00
|
|
|
$(package)_config_opts += -no-securetransport
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts += -no-sql-db2
|
|
|
|
$(package)_config_opts += -no-sql-ibase
|
|
|
|
$(package)_config_opts += -no-sql-oci
|
|
|
|
$(package)_config_opts += -no-sql-tds
|
|
|
|
$(package)_config_opts += -no-sql-mysql
|
|
|
|
$(package)_config_opts += -no-sql-odbc
|
|
|
|
$(package)_config_opts += -no-sql-psql
|
|
|
|
$(package)_config_opts += -no-sql-sqlite
|
|
|
|
$(package)_config_opts += -no-sql-sqlite2
|
2019-12-05 20:11:50 +01:00
|
|
|
$(package)_config_opts += -no-system-proxies
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -no-use-gold-linker
|
|
|
|
$(package)_config_opts += -no-xinput2
|
|
|
|
$(package)_config_opts += -nomake examples
|
|
|
|
$(package)_config_opts += -nomake tests
|
|
|
|
$(package)_config_opts += -opensource
|
2019-12-05 20:12:21 +01:00
|
|
|
$(package)_config_opts += -optimized-tools
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -pch
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts += -pkg-config
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -prefix $(host_prefix)
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts += -qt-libpng
|
|
|
|
$(package)_config_opts += -qt-pcre
|
2018-10-03 22:49:51 +02:00
|
|
|
$(package)_config_opts += -qt-harfbuzz
|
2017-01-19 23:20:35 +01:00
|
|
|
$(package)_config_opts += -system-zlib
|
2016-06-16 11:29:44 +02:00
|
|
|
$(package)_config_opts += -static
|
|
|
|
$(package)_config_opts += -silent
|
|
|
|
$(package)_config_opts += -v
|
2019-07-10 06:21:40 +02:00
|
|
|
$(package)_config_opts += -no-feature-bearermanagement
|
|
|
|
$(package)_config_opts += -no-feature-colordialog
|
|
|
|
$(package)_config_opts += -no-feature-commandlineparser
|
|
|
|
$(package)_config_opts += -no-feature-concurrent
|
2018-11-29 16:38:02 +01:00
|
|
|
$(package)_config_opts += -no-feature-dial
|
2019-07-10 06:21:40 +02:00
|
|
|
$(package)_config_opts += -no-feature-fontcombobox
|
2018-11-29 16:38:02 +01:00
|
|
|
$(package)_config_opts += -no-feature-ftp
|
2019-12-08 16:28:57 +01:00
|
|
|
$(package)_config_opts += -no-feature-http
|
2019-07-10 06:21:40 +02:00
|
|
|
$(package)_config_opts += -no-feature-image_heuristic_mask
|
|
|
|
$(package)_config_opts += -no-feature-keysequenceedit
|
2018-11-29 16:38:02 +01:00
|
|
|
$(package)_config_opts += -no-feature-lcdnumber
|
2019-12-08 16:28:57 +01:00
|
|
|
$(package)_config_opts += -no-feature-networkdiskcache
|
|
|
|
$(package)_config_opts += -no-feature-networkproxy
|
2018-11-29 16:38:02 +01:00
|
|
|
$(package)_config_opts += -no-feature-pdf
|
2017-01-18 04:37:40 +01:00
|
|
|
$(package)_config_opts += -no-feature-printdialog
|
2019-07-10 06:21:40 +02:00
|
|
|
$(package)_config_opts += -no-feature-printer
|
|
|
|
$(package)_config_opts += -no-feature-printpreviewdialog
|
|
|
|
$(package)_config_opts += -no-feature-printpreviewwidget
|
|
|
|
$(package)_config_opts += -no-feature-regularexpression
|
|
|
|
$(package)_config_opts += -no-feature-sessionmanager
|
2019-12-08 16:28:57 +01:00
|
|
|
$(package)_config_opts += -no-feature-socks5
|
2018-11-29 16:38:02 +01:00
|
|
|
$(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
|
2019-07-10 06:21:40 +02:00
|
|
|
$(package)_config_opts += -no-feature-topleveldomain
|
2018-11-29 16:38:02 +01:00
|
|
|
$(package)_config_opts += -no-feature-udpsocket
|
2019-07-10 06:21:40 +02:00
|
|
|
$(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
|
2018-11-29 16:38:02 +01:00
|
|
|
$(package)_config_opts += -no-feature-wizard
|
2018-05-19 16:22:47 +02:00
|
|
|
$(package)_config_opts += -no-feature-xml
|
2014-07-23 07:31:30 +02:00
|
|
|
|
2019-11-19 18:59:30 +01:00
|
|
|
$(package)_config_opts_darwin = -no-dbus
|
2019-12-05 14:42:03 +01:00
|
|
|
$(package)_config_opts_darwin += -no-opengl
|
2019-11-19 18:59:30 +01:00
|
|
|
|
2014-07-23 07:31:30 +02:00
|
|
|
ifneq ($(build_os),darwin)
|
2019-11-19 18:59:30 +01:00
|
|
|
$(package)_config_opts_darwin += -xplatform macx-clang-linux
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK)
|
2015-07-24 01:07:03 +02:00
|
|
|
$(package)_config_opts_darwin += -device-option MAC_SDK_VERSION=$(OSX_SDK_VERSION)
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts_darwin += -device-option CROSS_COMPILE="$(host)-"
|
|
|
|
$(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSION)
|
|
|
|
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host)
|
2014-07-23 07:31:30 +02:00
|
|
|
endif
|
|
|
|
|
2018-08-18 00:49:53 +02:00
|
|
|
$(package)_config_opts_linux = -qt-xkbcommon-x11
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts_linux += -qt-xcb
|
2019-07-17 22:21:30 +02:00
|
|
|
$(package)_config_opts_linux += -no-xcb-xlib
|
|
|
|
$(package)_config_opts_linux += -no-feature-xlib
|
2015-06-12 19:49:47 +02:00
|
|
|
$(package)_config_opts_linux += -system-freetype
|
|
|
|
$(package)_config_opts_linux += -fontconfig
|
|
|
|
$(package)_config_opts_linux += -no-opengl
|
2019-11-19 18:59:30 +01:00
|
|
|
$(package)_config_opts_linux += -dbus-runtime
|
2018-07-12 01:05:28 +02:00
|
|
|
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
2018-05-19 16:24:37 +02:00
|
|
|
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
|
2018-07-17 23:54:44 +02:00
|
|
|
$(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++
|
2018-08-23 09:27:36 +02:00
|
|
|
$(package)_config_opts_powerpc64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
|
|
$(package)_config_opts_powerpc64le_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
2018-07-19 07:04:00 +02:00
|
|
|
$(package)_config_opts_riscv64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
2019-12-05 18:15:48 +01:00
|
|
|
$(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
2019-11-19 18:59:30 +01:00
|
|
|
|
|
|
|
$(package)_config_opts_mingw32 = -no-opengl
|
|
|
|
$(package)_config_opts_mingw32 += -no-dbus
|
|
|
|
$(package)_config_opts_mingw32 += -xplatform win32-g++
|
|
|
|
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-"
|
2019-10-18 22:03:51 +02:00
|
|
|
|
|
|
|
$(package)_config_opts_android = -xplatform android-clang
|
|
|
|
$(package)_config_opts_android += -android-sdk $(ANDROID_SDK)
|
|
|
|
$(package)_config_opts_android += -android-ndk $(ANDROID_NDK)
|
|
|
|
$(package)_config_opts_android += -android-ndk-platform android-$(ANDROID_API_LEVEL)
|
|
|
|
$(package)_config_opts_android += -device-option CROSS_COMPILE="$(host)-"
|
|
|
|
$(package)_config_opts_android += -egl
|
|
|
|
$(package)_config_opts_android += -qpa xcb
|
|
|
|
$(package)_config_opts_android += -no-eglfs
|
2019-11-19 18:59:30 +01:00
|
|
|
$(package)_config_opts_android += -no-dbus
|
2019-10-18 22:03:51 +02:00
|
|
|
$(package)_config_opts_android += -opengl es2
|
|
|
|
$(package)_config_opts_android += -qt-freetype
|
|
|
|
$(package)_config_opts_android += -no-fontconfig
|
|
|
|
$(package)_config_opts_android += -L $(host_prefix)/lib
|
|
|
|
$(package)_config_opts_android += -I $(host_prefix)/include
|
|
|
|
|
2019-09-23 14:44:49 +02:00
|
|
|
$(package)_config_opts_aarch64_android += -android-arch arm64-v8a
|
2019-10-18 22:03:51 +02:00
|
|
|
$(package)_config_opts_armv7a_android += -android-arch armeabi-v7a
|
|
|
|
$(package)_config_opts_x86_64_android += -android-arch x86_64
|
|
|
|
$(package)_config_opts_i686_android += -android-arch i686
|
|
|
|
|
2014-07-23 07:31:30 +02:00
|
|
|
$(package)_build_env = QT_RCC_TEST=1
|
2018-07-21 08:21:50 +02:00
|
|
|
$(package)_build_env += QT_RCC_SOURCE_DATE_OVERRIDE=1
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
2015-07-24 01:07:03 +02:00
|
|
|
define $(package)_fetch_cmds
|
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_download_file),$($(package)_file_name),$($(package)_sha256_hash)) && \
|
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qttranslations_file_name),$($(package)_qttranslations_file_name),$($(package)_qttranslations_sha256_hash)) && \
|
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qttools_file_name),$($(package)_qttools_file_name),$($(package)_qttools_sha256_hash))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_extract_cmds
|
|
|
|
mkdir -p $($(package)_extract_dir) && \
|
|
|
|
echo "$($(package)_sha256_hash) $($(package)_source)" > $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
2016-04-05 00:20:20 +02:00
|
|
|
echo "$($(package)_qttranslations_sha256_hash) $($(package)_source_dir)/$($(package)_qttranslations_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
|
|
echo "$($(package)_qttools_sha256_hash) $($(package)_source_dir)/$($(package)_qttools_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
2015-07-24 01:07:03 +02:00
|
|
|
$(build_SHA256SUM) -c $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
|
|
mkdir qtbase && \
|
2019-03-11 18:53:10 +01:00
|
|
|
tar --no-same-owner --strip-components=1 -xf $($(package)_source) -C qtbase && \
|
2015-07-24 01:07:03 +02:00
|
|
|
mkdir qttranslations && \
|
2019-03-11 18:53:10 +01:00
|
|
|
tar --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttranslations_file_name) -C qttranslations && \
|
2015-07-24 01:07:03 +02:00
|
|
|
mkdir qttools && \
|
2019-03-11 18:53:10 +01:00
|
|
|
tar --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools
|
2015-07-24 01:07:03 +02:00
|
|
|
endef
|
|
|
|
|
2014-07-23 07:31:30 +02:00
|
|
|
define $(package)_preprocess_cmds
|
2020-08-18 09:20:27 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/freetype_back_compat.patch && \
|
2014-07-23 07:31:30 +02:00
|
|
|
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
2020-08-18 09:27:29 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/drop_lrelease_dependency.patch && \
|
2020-08-18 09:12:56 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/dont_hardcode_pwd.patch &&\
|
2014-07-23 07:31:30 +02:00
|
|
|
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
|
|
|
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.lib qtbase/mkspecs/macx-clang-linux/ &&\
|
|
|
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
|
|
|
|
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
|
|
|
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
2018-07-12 01:05:28 +02:00
|
|
|
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \
|
2018-07-24 13:20:25 +02:00
|
|
|
sed -i.old "s/arm-linux-gnueabi-/$(host)-/g" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
2018-05-19 16:22:47 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch &&\
|
2018-05-19 16:24:37 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_configure_mac.patch &&\
|
2018-05-19 16:22:47 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch &&\
|
2018-07-21 08:21:50 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_rcc_determinism.patch &&\
|
2018-08-18 00:49:53 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/xkb-default.patch &&\
|
2019-09-16 13:34:14 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_android_qmake_conf.patch &&\
|
2019-10-12 12:49:25 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_android_jni_static.patch &&\
|
2017-01-27 18:10:13 +01:00
|
|
|
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 && \
|
2018-07-19 07:04:00 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_riscv64_arch.patch &&\
|
2019-07-18 23:43:06 +02:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch &&\
|
2018-05-19 16:22:47 +02:00
|
|
|
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 &&\
|
2019-09-09 21:12:40 +02:00
|
|
|
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 && \
|
2019-09-16 18:53:52 +02:00
|
|
|
sed -i.old "0,/^QMAKE_LFLAGS_/s|^QMAKE_LFLAGS_|!host_build: QMAKE_LFLAGS = $($(package)_ldflags)\n&|" qtbase/mkspecs/win32-g++/qmake.conf && \
|
2019-11-13 19:12:01 +01:00
|
|
|
sed -i.old "s|QMAKE_CC = clang|QMAKE_CC = $($(package)_cc)|" qtbase/mkspecs/common/clang.conf && \
|
|
|
|
sed -i.old "s|QMAKE_CXX = clang++|QMAKE_CXX = $($(package)_cxx)|" qtbase/mkspecs/common/clang.conf && \
|
2019-07-12 06:28:29 +02:00
|
|
|
sed -i.old "s/LIBRARY_PATH/(CROSS_)?\0/g" qtbase/mkspecs/features/toolchain.prf
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
export PKG_CONFIG_SYSROOT_DIR=/ && \
|
|
|
|
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \
|
|
|
|
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \
|
|
|
|
./configure $($(package)_config_opts) && \
|
2017-01-27 18:10:13 +01:00
|
|
|
echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
|
|
|
|
echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
|
2014-07-23 07:31:30 +02:00
|
|
|
$(MAKE) sub-src-clean && \
|
|
|
|
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
|
2018-05-19 16:22:47 +02:00
|
|
|
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
|
|
|
|
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile && \
|
|
|
|
cd ../lupdate/ && ../../../../qtbase/bin/qmake lupdate.pro -o Makefile && cd ../../../..
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
|
|
|
|
$(MAKE) -C ../qttools/src/linguist/lrelease && \
|
2018-05-19 16:22:47 +02:00
|
|
|
$(MAKE) -C ../qttools/src/linguist/lupdate && \
|
2014-07-23 07:31:30 +02:00
|
|
|
$(MAKE) -C ../qttranslations
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2018-05-19 16:22:47 +02:00
|
|
|
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. && \
|
2014-07-23 07:31:30 +02:00
|
|
|
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \
|
2018-05-19 16:22:47 +02:00
|
|
|
$(MAKE) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package)_staging_dir) install_target && \
|
2014-07-23 07:31:30 +02:00
|
|
|
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \
|
|
|
|
if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \
|
|
|
|
cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package)_staging_prefix_dir)/lib; \
|
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
2015-07-24 01:07:03 +02:00
|
|
|
rm -rf native/mkspecs/ native/lib/ lib/cmake/ && \
|
|
|
|
rm -f lib/lib*.la lib/*.prl plugins/*/*.prl
|
2014-07-23 07:31:30 +02:00
|
|
|
endef
|