Changeset View
Changeset View
Standalone View
Standalone View
depends/packages/qt.mk
PACKAGE=qt | PACKAGE=qt | ||||
$(package)_version=5.12.11 | $(package)_version=5.12.11 | ||||
$(package)_download_path=https://download.qt.io/archive/qt/5.12/$($(package)_version)/submodules | $(package)_download_path=https://download.qt.io/archive/qt/5.12/$($(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=1c1b4e33137ca77881074c140d54c3c9747e845a31338cfe8680f171f0bc3a39 | ||||
$(package)_dependencies=openssl | $(package)_dependencies=openssl | ||||
$(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon | $(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon | ||||
$(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 += dont_hardcode_x86_64.patch | |||||
$(package)_patches+= fix_lib_paths.patch | $(package)_patches+= fix_lib_paths.patch | ||||
$(package)_patches+= fix_numeric_limits_compile_error.patch | $(package)_patches+= fix_numeric_limits_compile_error.patch | ||||
$(package)_patches+= fix_montery_include.patch | $(package)_patches+= fix_montery_include.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=577b0668a777eb2b451c61e8d026d79285371597ce9df06b6dee6c814164b7c3 | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
$(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 | ||||
ifneq ($(build_arch),$(host_arch)) | |||||
$(package)_config_opts_aarch64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64 | |||||
$(package)_config_opts_x86_64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=x86_64 | |||||
endif | |||||
$(package)_config_opts_linux = -qt-xcb | $(package)_config_opts_linux = -qt-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" | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
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)/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)/dont_hardcode_x86_64.patch && \ | |||||
patch -p1 -i $($(package)_patch_dir)/fix_lib_paths.patch && \ | patch -p1 -i $($(package)_patch_dir)/fix_lib_paths.patch && \ | ||||
patch -p1 -i $($(package)_patch_dir)/fix_montery_include.patch && \ | patch -p1 -i $($(package)_patch_dir)/fix_montery_include.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 && \ | ||||
Show All 29 Lines |