Changeset View
Changeset View
Standalone View
Standalone View
depends/packages/qt.mk
PACKAGE=qt | package=qt | ||||
$(package)_version=5.12.11 | $(package)_version=5.15.2 | ||||
$(package)_download_path=https://download.qt.io/archive/qt/5.12/$($(package)_version)/submodules | $(package)_download_path=https://download.qt.io/official_releases/qt/5.15/$($(package)_version)/submodules | ||||
$(package)_suffix=everywhere-src-$($(package)_version).tar.xz | $(package)_suffix=everywhere-src-$($(package)_version).tar.xz | ||||
$(package)_file_name=qtbase-$($(package)_suffix) | $(package)_file_name=qtbase-$($(package)_suffix) | ||||
$(package)_sha256_hash=1c1b4e33137ca77881074c140d54c3c9747e845a31338cfe8680f171f0bc3a39 | $(package)_sha256_hash=909fad2591ee367993a75d7e2ea50ad4db332f05e1c38dd7a5a274e156a4e0f8 | ||||
$(package)_dependencies=openssl | $(package)_dependencies=openssl | ||||
$(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon | $(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm | ||||
$(package)_qt_libs=corelib network widgets gui plugins testlib | $(package)_qt_libs=corelib network widgets gui plugins testlib | ||||
$(package)_linguist_tools = lrelease lupdate lconvert | $(package)_linguist_tools = lrelease lupdate lconvert | ||||
$(package)_patches = qt.pro qttools_src.pro | $(package)_patches = qt.pro qttools_src.pro | ||||
$(package)_patches += fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no-xlib.patch | $(package)_patches += fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no-xlib.patch | ||||
$(package)_patches+= dont_hardcode_pwd.patch | $(package)_patches+= dont_hardcode_pwd.patch | ||||
$(package)_patches+= fix_lib_paths.patch | $(package)_patches+= fix_limits_header.patch | ||||
$(package)_patches+= fix_numeric_limits_compile_error.patch | $(package)_patches+= fix_bigsur_style.patch | ||||
# Update OSX_QT_TRANSLATIONS when this is updated | # Update OSX_QT_TRANSLATIONS when this is updated | ||||
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix) | $(package)_qttranslations_file_name=qttranslations-$($(package)_suffix) | ||||
$(package)_qttranslations_sha256_hash=577b0668a777eb2b451c61e8d026d79285371597ce9df06b6dee6c814164b7c3 | $(package)_qttranslations_sha256_hash=d5788e86257b21d5323f1efd94376a213e091d1e5e03b45a95dd052b5f570db8 | ||||
$(package)_qttools_file_name=qttools-$($(package)_suffix) | $(package)_qttools_file_name=qttools-$($(package)_suffix) | ||||
$(package)_qttools_sha256_hash=98b2aaca230458f65996f3534fd471d2ffd038dd58ac997c0589c06dc2385b4f | $(package)_qttools_sha256_hash=c189d0ce1ff7c739db9a3ace52ac3e24cb8fd6dbf234e49f075249b38f43c1cc | ||||
$(package)_extra_sources = $($(package)_qttranslations_file_name) | $(package)_extra_sources = $($(package)_qttranslations_file_name) | ||||
$(package)_extra_sources += $($(package)_qttools_file_name) | $(package)_extra_sources += $($(package)_qttools_file_name) | ||||
define $(package)_set_vars | define $(package)_set_vars | ||||
$(package)_config_opts_release = -release | $(package)_config_opts_release = -release | ||||
$(package)_config_opts_release += -silent | $(package)_config_opts_release += -silent | ||||
$(package)_config_opts_debug = -debug | $(package)_config_opts_debug = -debug | ||||
$(package)_config_opts_debug += -optimized-tools | $(package)_config_opts_debug += -optimized-tools | ||||
$(package)_config_opts += -bindir $(build_prefix)/bin | $(package)_config_opts += -bindir $(build_prefix)/bin | ||||
$(package)_config_opts += -c++std c++1z | $(package)_config_opts += -c++std c++17 | ||||
$(package)_config_opts += -confirm-license | $(package)_config_opts += -confirm-license | ||||
$(package)_config_opts += -hostprefix $(build_prefix) | $(package)_config_opts += -hostprefix $(build_prefix) | ||||
$(package)_config_opts += -no-compile-examples | $(package)_config_opts += -no-compile-examples | ||||
$(package)_config_opts += -no-cups | $(package)_config_opts += -no-cups | ||||
$(package)_config_opts += -no-egl | $(package)_config_opts += -no-egl | ||||
$(package)_config_opts += -no-eglfs | $(package)_config_opts += -no-eglfs | ||||
$(package)_config_opts += -no-freetype | $(package)_config_opts += -no-evdev | ||||
$(package)_config_opts += -no-gif | $(package)_config_opts += -no-gif | ||||
$(package)_config_opts += -no-glib | $(package)_config_opts += -no-glib | ||||
$(package)_config_opts += -no-icu | $(package)_config_opts += -no-icu | ||||
$(package)_config_opts += -no-ico | $(package)_config_opts += -no-ico | ||||
$(package)_config_opts += -no-iconv | $(package)_config_opts += -no-iconv | ||||
$(package)_config_opts += -no-kms | $(package)_config_opts += -no-kms | ||||
$(package)_config_opts += -no-linuxfb | $(package)_config_opts += -no-linuxfb | ||||
$(package)_config_opts += -no-libjpeg | $(package)_config_opts += -no-libjpeg | ||||
$(package)_config_opts += -no-libudev | $(package)_config_opts += -no-libudev | ||||
$(package)_config_opts += -no-mtdev | $(package)_config_opts += -no-mtdev | ||||
$(package)_config_opts += -no-opengl | $(package)_config_opts += -no-opengl | ||||
$(package)_config_opts += -no-openvg | $(package)_config_opts += -no-openvg | ||||
$(package)_config_opts += -no-reduce-relocations | $(package)_config_opts += -no-reduce-relocations | ||||
$(package)_config_opts += -no-schannel | |||||
$(package)_config_opts += -no-sql-db2 | $(package)_config_opts += -no-sql-db2 | ||||
$(package)_config_opts += -no-sql-ibase | $(package)_config_opts += -no-sql-ibase | ||||
$(package)_config_opts += -no-sql-oci | $(package)_config_opts += -no-sql-oci | ||||
$(package)_config_opts += -no-sql-tds | $(package)_config_opts += -no-sql-tds | ||||
$(package)_config_opts += -no-sql-mysql | $(package)_config_opts += -no-sql-mysql | ||||
$(package)_config_opts += -no-sql-odbc | $(package)_config_opts += -no-sql-odbc | ||||
$(package)_config_opts += -no-sql-psql | $(package)_config_opts += -no-sql-psql | ||||
$(package)_config_opts += -no-sql-sqlite | $(package)_config_opts += -no-sql-sqlite | ||||
$(package)_config_opts += -no-sql-sqlite2 | $(package)_config_opts += -no-sql-sqlite2 | ||||
$(package)_config_opts += -no-use-gold-linker | $(package)_config_opts += -no-use-gold-linker | ||||
$(package)_config_opts += -no-zstd | |||||
$(package)_config_opts += -nomake examples | $(package)_config_opts += -nomake examples | ||||
$(package)_config_opts += -nomake tests | $(package)_config_opts += -nomake tests | ||||
$(package)_config_opts += -nomake tools | $(package)_config_opts += -nomake tools | ||||
$(package)_config_opts += -opensource | $(package)_config_opts += -opensource | ||||
$(package)_config_opts += -openssl-linked | $(package)_config_opts += -openssl-linked | ||||
$(package)_config_opts += -pch | $(package)_config_opts += -pch | ||||
$(package)_config_opts += -pkg-config | $(package)_config_opts += -pkg-config | ||||
$(package)_config_opts += -prefix $(host_prefix) | $(package)_config_opts += -prefix $(host_prefix) | ||||
Show All 19 Lines | |||||
$(package)_config_opts += -no-feature-printpreviewdialog | $(package)_config_opts += -no-feature-printpreviewdialog | ||||
$(package)_config_opts += -no-feature-printpreviewwidget | $(package)_config_opts += -no-feature-printpreviewwidget | ||||
$(package)_config_opts += -no-feature-sessionmanager | $(package)_config_opts += -no-feature-sessionmanager | ||||
$(package)_config_opts += -no-feature-sql | $(package)_config_opts += -no-feature-sql | ||||
$(package)_config_opts += -no-feature-sqlmodel | $(package)_config_opts += -no-feature-sqlmodel | ||||
$(package)_config_opts += -no-feature-statemachine | $(package)_config_opts += -no-feature-statemachine | ||||
$(package)_config_opts += -no-feature-syntaxhighlighter | $(package)_config_opts += -no-feature-syntaxhighlighter | ||||
$(package)_config_opts += -no-feature-textbrowser | $(package)_config_opts += -no-feature-textbrowser | ||||
$(package)_config_opts += -no-feature-textmarkdownwriter | |||||
$(package)_config_opts += -no-feature-textodfwriter | $(package)_config_opts += -no-feature-textodfwriter | ||||
$(package)_config_opts += -no-feature-topleveldomain | $(package)_config_opts += -no-feature-topleveldomain | ||||
$(package)_config_opts += -no-feature-udpsocket | $(package)_config_opts += -no-feature-udpsocket | ||||
$(package)_config_opts += -no-feature-undocommand | $(package)_config_opts += -no-feature-undocommand | ||||
$(package)_config_opts += -no-feature-undogroup | $(package)_config_opts += -no-feature-undogroup | ||||
$(package)_config_opts += -no-feature-undostack | $(package)_config_opts += -no-feature-undostack | ||||
$(package)_config_opts += -no-feature-undoview | $(package)_config_opts += -no-feature-undoview | ||||
$(package)_config_opts += -no-feature-vnc | $(package)_config_opts += -no-feature-vnc | ||||
$(package)_config_opts += -no-feature-wizard | $(package)_config_opts += -no-feature-wizard | ||||
$(package)_config_opts += -no-feature-xml | $(package)_config_opts += -no-feature-xml | ||||
$(package)_config_opts_darwin = -no-dbus | $(package)_config_opts_darwin = -no-dbus | ||||
$(package)_config_opts_darwin += QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION) | $(package)_config_opts_darwin += QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION) | ||||
$(package)_config_opts_darwin += -no-freetype | |||||
ifneq ($(build_os),darwin) | ifneq ($(build_os),darwin) | ||||
$(package)_config_opts_darwin += -xplatform macx-clang-linux | $(package)_config_opts_darwin += -xplatform macx-clang-linux | ||||
$(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK) | $(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK) | ||||
$(package)_config_opts_darwin += -device-option MAC_SDK_VERSION=$(OSX_SDK_VERSION) | $(package)_config_opts_darwin += -device-option MAC_SDK_VERSION=$(OSX_SDK_VERSION) | ||||
$(package)_config_opts_darwin += -device-option CROSS_COMPILE="$(host)-" | $(package)_config_opts_darwin += -device-option CROSS_COMPILE="$(host)-" | ||||
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host) | $(package)_config_opts_darwin += -device-option MAC_TARGET=$(host) | ||||
$(package)_config_opts_darwin += -device-option XCODE_VERSION=$(XCODE_VERSION) | $(package)_config_opts_darwin += -device-option XCODE_VERSION=$(XCODE_VERSION) | ||||
endif | endif | ||||
$(package)_config_opts_linux = -qt-xcb | $(package)_config_opts_linux = -xcb | ||||
$(package)_config_opts_linux += -no-xcb-xlib | $(package)_config_opts_linux += -no-xcb-xlib | ||||
$(package)_config_opts_linux += -no-feature-xlib | $(package)_config_opts_linux += -no-feature-xlib | ||||
$(package)_config_opts_linux += -system-freetype | $(package)_config_opts_linux += -system-freetype | ||||
$(package)_config_opts_linux += -fontconfig | $(package)_config_opts_linux += -fontconfig | ||||
$(package)_config_opts_linux += -no-feature-vulkan | $(package)_config_opts_linux += -no-feature-vulkan | ||||
$(package)_config_opts_linux += -dbus-runtime | $(package)_config_opts_linux += -dbus-runtime | ||||
$(package)_config_opts_linux += OPENSSL_LIBS="-lssl -lcrypto -lpthread" | $(package)_config_opts_linux += OPENSSL_LIBS="-lssl -lcrypto -lpthread" | ||||
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++ | $(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++ | ||||
$(package)_config_opts_i686_linux = -xplatform linux-g++-32 | $(package)_config_opts_i686_linux = -xplatform linux-g++-32 | ||||
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64 | $(package)_config_opts_x86_64_linux = -xplatform linux-g++-64 | ||||
$(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++ | $(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++ | ||||
$(package)_config_opts_mingw32 = -no-dbus | $(package)_config_opts_mingw32 = -no-dbus | ||||
$(package)_config_opts_mingw32 += -no-freetype | |||||
$(package)_config_opts_mingw32 += -xplatform win32-g++ | $(package)_config_opts_mingw32 += -xplatform win32-g++ | ||||
$(package)_config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package)_cflags) $($(package)_cppflags)'" | $(package)_config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package)_cflags) $($(package)_cppflags)'" | ||||
$(package)_config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package)_cflags) $($(package)_cppflags)'" | $(package)_config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package)_cflags) $($(package)_cppflags)'" | ||||
$(package)_config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package)_ldflags)'" | $(package)_config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package)_ldflags)'" | ||||
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-" | $(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-" | ||||
$(package)_config_opts_mingw32 += OPENSSL_LIBS="-lssl -lcrypto -lws2_32" | $(package)_config_opts_mingw32 += OPENSSL_LIBS="-lssl -lcrypto -lws2_32" | ||||
endef | endef | ||||
Show All 34 Lines | |||||
# | # | ||||
# 6. In clang.conf, swap out clang & clang++, for our compiler + flags. See #17466. | # 6. In clang.conf, swap out clang & clang++, for our compiler + flags. See #17466. | ||||
# | # | ||||
# 7. Adjust a regex in toolchain.prf, to accomodate Guix's usage of | # 7. Adjust a regex in toolchain.prf, to accomodate Guix's usage of | ||||
# CROSS_LIBRARY_PATH. See core#15277. | # CROSS_LIBRARY_PATH. See core#15277. | ||||
define $(package)_preprocess_cmds | define $(package)_preprocess_cmds | ||||
cp $($(package)_patch_dir)/qt.pro qt.pro && \ | cp $($(package)_patch_dir)/qt.pro qt.pro && \ | ||||
cp $($(package)_patch_dir)/qttools_src.pro qttools/src/src.pro && \ | cp $($(package)_patch_dir)/qttools_src.pro qttools/src/src.pro && \ | ||||
patch -p1 -i $($(package)_patch_dir)/fix_numeric_limits_compile_error.patch && \ | |||||
patch -p1 -i $($(package)_patch_dir)/dont_hardcode_pwd.patch && \ | patch -p1 -i $($(package)_patch_dir)/dont_hardcode_pwd.patch && \ | ||||
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \ | patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \ | ||||
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch && \ | patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch && \ | ||||
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \ | patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \ | ||||
patch -p1 -i $($(package)_patch_dir)/fix_lib_paths.patch && \ | patch -p1 -i $($(package)_patch_dir)/fix_limits_header.patch && \ | ||||
patch -p1 -i $($(package)_patch_dir)/fix_bigsur_style.patch && \ | |||||
mkdir -p qtbase/mkspecs/macx-clang-linux &&\ | mkdir -p qtbase/mkspecs/macx-clang-linux &&\ | ||||
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h 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 && \ | cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \ | ||||
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \ | 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 && \ | sed -i.old "s/arm-linux-gnueabi-/$(host)-/g" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \ | ||||
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \ | 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_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 && \ | ||||
Show All 33 Lines |