Changeset View
Changeset View
Standalone View
Standalone View
depends/packages/qt.mk
PACKAGE=qt | PACKAGE=qt | ||||
$(package)_version=5.9.7 | $(package)_version=5.9.7 | ||||
$(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules | $(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules | ||||
$(package)_suffix=opensource-src-$($(package)_version).tar.xz | $(package)_suffix=opensource-src-$($(package)_version).tar.xz | ||||
$(package)_file_name=qtbase-$($(package)_suffix) | $(package)_file_name=qtbase-$($(package)_suffix) | ||||
$(package)_sha256_hash=36dd9574f006eaa1e5af780e4b33d11fe39d09fd7c12f3b9d83294174bd28f00 | $(package)_sha256_hash=36dd9574f006eaa1e5af780e4b33d11fe39d09fd7c12f3b9d83294174bd28f00 | ||||
$(package)_dependencies=openssl zlib | $(package)_dependencies=openssl zlib | ||||
$(package)_linux_dependencies=freetype fontconfig libxcb libX11 xproto libXext | $(package)_linux_dependencies=freetype fontconfig libxcb | ||||
$(package)_build_subdir=qtbase | $(package)_build_subdir=qtbase | ||||
$(package)_qt_libs=corelib network widgets gui plugins testlib | $(package)_qt_libs=corelib network widgets gui plugins testlib | ||||
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch fix_rcc_determinism.patch xkb-default.patch | $(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch fix_rcc_determinism.patch xkb-default.patch no-xlib.patch | ||||
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix) | $(package)_qttranslations_file_name=qttranslations-$($(package)_suffix) | ||||
$(package)_qttranslations_sha256_hash=b36da7d93c3ab6fca56b32053bb73bc619c8b192bb89b74e3bcde2705f1c2a14 | $(package)_qttranslations_sha256_hash=b36da7d93c3ab6fca56b32053bb73bc619c8b192bb89b74e3bcde2705f1c2a14 | ||||
$(package)_qttools_file_name=qttools-$($(package)_suffix) | $(package)_qttools_file_name=qttools-$($(package)_suffix) | ||||
$(package)_qttools_sha256_hash=d62e0f70d99645d6704dbb8976fb2222443061743689943d40970c52c49367a1 | $(package)_qttools_sha256_hash=d62e0f70d99645d6704dbb8976fb2222443061743689943d40970c52c49367a1 | ||||
$(package)_extra_sources = $($(package)_qttranslations_file_name) | $(package)_extra_sources = $($(package)_qttranslations_file_name) | ||||
▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
$(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_MIN_VERSION=$(OSX_MIN_VERSION) | $(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSION) | ||||
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host) | $(package)_config_opts_darwin += -device-option MAC_TARGET=$(host) | ||||
endif | endif | ||||
$(package)_config_opts_linux = -qt-xkbcommon-x11 | $(package)_config_opts_linux = -qt-xkbcommon-x11 | ||||
$(package)_config_opts_linux += -qt-xcb | $(package)_config_opts_linux += -qt-xcb | ||||
$(package)_config_opts_linux += -no-xcb-xlib | |||||
$(package)_config_opts_linux += -no-feature-xlib | |||||
$(package)_config_opts_linux += -system-freetype | $(package)_config_opts_linux += -system-freetype | ||||
$(package)_config_opts_linux += -no-feature-sessionmanager | $(package)_config_opts_linux += -no-feature-sessionmanager | ||||
$(package)_config_opts_linux += -fontconfig | $(package)_config_opts_linux += -fontconfig | ||||
$(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 = -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-" | $(package)_config_opts_mingw32 = -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-" | ||||
Show All 38 Lines | define $(package)_preprocess_cmds | ||||
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_configure_mac.patch &&\ | patch -p1 -i $($(package)_patch_dir)/fix_configure_mac.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)/fix_rcc_determinism.patch &&\ | patch -p1 -i $($(package)_patch_dir)/fix_rcc_determinism.patch &&\ | ||||
patch -p1 -i $($(package)_patch_dir)/xkb-default.patch &&\ | patch -p1 -i $($(package)_patch_dir)/xkb-default.patch &&\ | ||||
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 && \ | ||||
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_MAX = 10" >> qtbase/mkspecs/win32-g++/qmake.conf &&\ | ||||
echo "QMAKE_LINK_OBJECT_SCRIPT = object_script" >> 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_CFLAGS = |!host_build: QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \ | ||||
sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package)_ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \ | sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package)_ldflags) |" 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 "s|QMAKE_CXXFLAGS = |!host_build: QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf | ||||
endef | endef | ||||
define $(package)_config_cmds | define $(package)_config_cmds | ||||
Show All 38 Lines |