2022-06-02 12:50:33 +00:00
|
|
|
package=qt
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_version=6.8.1
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_download_path=https://download.qt.io/official_releases/qt/6.8/$($(package)_version)/submodules
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_suffix=everywhere-src-$($(package)_version).tar.xz
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_file_name=qtbase-$($(package)_suffix)
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_sha256_hash=40b14562ef3bd779bc0e0418ea2ae08fa28235f8ea6e8c0cb3bce1d6ad58dcaf
|
2024-11-02 16:33:59 +00:00
|
|
|
$(package)_darwin_dependencies=openssl native_qt
|
2023-07-02 16:07:04 +00:00
|
|
|
$(package)_mingw32_dependencies=openssl native_qt
|
2024-11-03 16:42:34 +00:00
|
|
|
$(package)_linux_dependencies=openssl native_qt freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm libxcb_util_cursor dbus wayland native_wayland
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_patches += fast_fixed_dtoa_no_optimize.patch
|
|
|
|
$(package)_patches += guix_cross_lib_path.patch
|
2022-12-27 11:55:49 +00:00
|
|
|
$(package)_patches += qtbase-moc-ignore-gcc-macro.patch
|
|
|
|
$(package)_patches += qtmultimedia-fixes.patch
|
|
|
|
$(package)_patches += rcc_hardcode_timestamp.patch
|
|
|
|
$(package)_patches += root_CMakeLists.txt
|
2023-01-03 12:48:32 +00:00
|
|
|
$(package)_patches += v4l2.patch
|
2022-12-27 11:55:49 +00:00
|
|
|
$(package)_patches += windows_func_fix.patch
|
2023-06-28 10:50:32 +00:00
|
|
|
$(package)_patches += xcb-util-image-fix.patch
|
|
|
|
$(package)_patches += libxau-fix.patch
|
2023-07-19 12:55:48 +00:00
|
|
|
$(package)_patches += toolchain.cmake
|
2023-11-27 22:40:07 +00:00
|
|
|
$(package)_patches += revert-macOS-Silence-warning-about-supporting-secure.patch
|
2023-12-10 13:33:29 +00:00
|
|
|
$(package)_patches += no-resonance-audio.patch
|
2024-03-12 18:29:10 +00:00
|
|
|
$(package)_patches += fix_static_qt_darwin_camera_permissions.patch
|
2024-05-21 08:22:12 +00:00
|
|
|
$(package)_patches += revert-f67ee7c39.patch
|
2024-11-02 16:33:59 +00:00
|
|
|
$(package)_patches += macos-available-qtbase.patch
|
|
|
|
$(package)_patches += macos-available-qtmultimedia.patch
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_patches += qtwayland-tabletevent-fix.patch
|
2023-05-06 11:48:11 +00:00
|
|
|
#$(package)_patches += fix-static-fontconfig-static-linking.patch
|
2023-05-24 16:03:00 +00:00
|
|
|
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_qttools_sha256_hash=9d43d409be08b8681a0155a9c65114b69c9a3fc11aef6487bb7fdc5b283c432d
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
$(package)_qtsvg_file_name=qtsvg-$($(package)_suffix)
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_qtsvg_sha256_hash=3d0de73596e36b2daa7c48d77c4426bb091752856912fba720215f756c560dd0
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
$(package)_qtwebsockets_file_name=qtwebsockets-$($(package)_suffix)
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_qtwebsockets_sha256_hash=e4cfdae8760bedd1c2b00429a6c9bf88cc11c5018dcb46bde277fb1edf341e3f
|
2022-06-02 12:50:33 +00:00
|
|
|
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_qtmultimedia_file_name=qtmultimedia-$($(package)_suffix)
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_qtmultimedia_sha256_hash=75fa87134f9afab7f0a62c55a4744799ac79519560d19c8e1d4c32bdd173f953
|
2022-12-21 15:15:22 +00:00
|
|
|
|
|
|
|
$(package)_qtshadertools_file_name=qtshadertools-$($(package)_suffix)
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_qtshadertools_sha256_hash=55b70cd632473a8043c74ba89310f7ba9c5041d253bc60e7ae1fa789169c4846
|
2022-06-02 12:50:33 +00:00
|
|
|
|
2024-11-03 16:42:34 +00:00
|
|
|
$(package)_qtwayland_file_name=qtwayland-$($(package)_suffix)
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_qtwayland_sha256_hash=2226fbde4e2ddd12f8bf4b239c8f38fd706a54e789e63467dfddc77129eca203
|
2024-11-03 16:42:34 +00:00
|
|
|
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_extra_sources += $($(package)_qttools_file_name)
|
|
|
|
$(package)_extra_sources += $($(package)_qtsvg_file_name)
|
|
|
|
$(package)_extra_sources += $($(package)_qtwebsockets_file_name)
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_extra_sources += $($(package)_qtmultimedia_file_name)
|
|
|
|
$(package)_extra_sources += $($(package)_qtshadertools_file_name)
|
2024-11-03 16:42:34 +00:00
|
|
|
$(package)_extra_sources += $($(package)_qtwayland_file_name)
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2023-07-19 12:55:48 +00:00
|
|
|
$(package)_config_opts += -DQT_HOST_PATH=$(build_prefix)/qt-host
|
|
|
|
$(package)_config_opts += -DCMAKE_LIBRARY_PATH=/home/user/.guix-profile/lib
|
|
|
|
$(package)_config_opts += -DBUILD_SHARED_LIBS=OFF
|
|
|
|
$(package)_config_opts += -DCMAKE_INSTALL_PREFIX=$(host_prefix)
|
|
|
|
$(package)_config_opts += -DINSTALL_LIBEXECDIR=$(build_prefix)/bin
|
|
|
|
$(package)_config_opts += -DQT_BUILD_EXAMPLES=FALSE
|
|
|
|
$(package)_config_opts += -DQT_BUILD_TESTS=FALSE
|
2024-12-07 15:54:42 +00:00
|
|
|
$(package)_config_opts += -DQT_GENERATE_SBOM=OFF
|
2023-07-19 12:55:48 +00:00
|
|
|
$(package)_config_opts += -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_config_opts += -DQT_FEATURE_cups=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_qmake=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_egl=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_egl_x11=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_xcb_egl_plugin=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_xcb_glx_plugin=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_eglfs=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_evdev=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_gif=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_glib=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_icu=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_ico=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_kms=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_linuxfb=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_libudev=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_mtdev=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_openssl=ON
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_openssl_linked=ON
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_openvg=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_permissions=ON
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_reduce_relocations=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_schannel=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_sctp=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_securetransport=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_system_proxies=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_use_gold_linker_alias=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_zstd=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_pkg_config=ON
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_system_png=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_system_pcre2=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_system_harfbuzz=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_system_zlib=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_colordialog=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_dial=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_fontcombobox=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_image_heuristic_mask=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_keysequenceedit=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_lcdnumber=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_networkdiskcache=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_pdf=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_printdialog=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_printer=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_printpreviewdialog=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_printpreviewwidget=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_printsupport=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_sessionmanager=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_spatialaudio=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_sql=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_syntaxhighlighter=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_tabletevent=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_textmarkdownwriter=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_textodfwriter=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_topleveldomain=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_undocommand=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_undogroup=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_undostack=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_undoview=OFF
|
|
|
|
$(package)_config_opts += -DQT_FEATURE_vnc=OFF
|
2023-07-19 12:55:48 +00:00
|
|
|
|
|
|
|
$(package)_config_opts_linux += -DQT_QMAKE_TARGET_MKSPEC=linux-g++
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_xcb=ON
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_xcb_xlib=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_xlib=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_freetype=ON
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_system_freetype=ON
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_fontconfig=ON
|
2023-07-19 12:55:48 +00:00
|
|
|
$(package)_config_opts_linux += -DINPUT_opengl=no
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_opengl=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_opengles2=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_opengles3=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_opengles31=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_opengles32=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_opengl_desktop=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_vulkan=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_backtrace=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_dbus=ON
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_dbus_linked=ON
|
2024-11-03 16:42:34 +00:00
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland_client=ON
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland_server=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland_drm_egl_server_buffer=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland-shm-emulation-server-buffer=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland-client-fullscreen-shell-v1=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland-client-ivi-shell=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland-client-wl-shell=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland-client-xdg-shell-v5=OFF
|
|
|
|
$(package)_config_opts_linux += -DQT_FEATURE_wayland-client-xdg-shell-v6=OFF
|
2023-07-19 12:55:48 +00:00
|
|
|
$(package)_config_opts_linux += -DBUILD_WITH_PCH=OFF
|
|
|
|
|
|
|
|
$(package)_config_opts_mingw32 += -DQT_QMAKE_TARGET_MKSPEC=win32-g++
|
|
|
|
$(package)_config_opts_mingw32 += -DINPUT_opengl=no
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_config_opts_mingw32 += -DQT_FEATURE_dbus=OFF
|
|
|
|
$(package)_config_opts_mingw32 += -DQT_FEATURE_freetype=OFF
|
|
|
|
$(package)_config_opts_mingw32 += -DQT_FEATURE_ffmpeg=OFF
|
|
|
|
$(package)_config_opts_mingw32 += -DQT_FEATURE_wmf=ON
|
2023-07-19 12:55:48 +00:00
|
|
|
$(package)_config_opts_mingw32 += -DBUILD_WITH_PCH=ON
|
|
|
|
|
|
|
|
$(package)_config_opts_darwin += -DQT_QMAKE_TARGET_MKSPEC=macx-clang
|
2023-12-14 15:37:15 +00:00
|
|
|
# see #138
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_config_opts_darwin += -DQT_FEATURE_accessibility=OFF
|
|
|
|
$(package)_config_opts_darwin += -DQT_FEATURE_dbus=OFF
|
|
|
|
$(package)_config_opts_darwin += -DQT_FEATURE_freetype=OFF
|
|
|
|
$(package)_config_opts_darwin += -DQT_FEATURE_ffmpeg=OFF
|
2023-07-19 12:55:48 +00:00
|
|
|
$(package)_config_opts_darwin += -DQMAKE_MACOSX_DEPLOYMENT_TARGET=11.0
|
|
|
|
$(package)_config_opts_darwin += -DBUILD_WITH_PCH=OFF
|
|
|
|
$(package)_config_opts_darwin += '-DQT_QMAKE_DEVICE_OPTIONS=MAC_SDK_PATH=$(host_prefix)/native/SDK;MAC_SDK_VERSION=$(OSX_SDK_VERSION);CROSS_COMPILE=$(host)-;MAC_TARGET=$(host);XCODE_VERSION=$(XCODE_VERSION)'
|
2024-02-14 13:08:50 +00:00
|
|
|
$(package)_config_opts_darwin += -DQT_NO_APPLE_SDK_AND_XCODE_CHECK=ON
|
2024-04-02 19:17:11 +00:00
|
|
|
# work around a build issue in qfutex_mac_p.h
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_config_opts_darwin += -DQT_FEATURE_appstore_compliant=ON
|
2023-07-19 12:55:48 +00:00
|
|
|
|
|
|
|
$(package)_config_opts += -G Ninja
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
$(package)_openssl_flags_$(host_os)="-lssl -lcrypto -lpthread -ldl"
|
|
|
|
$(package)_openssl_flags_mingw32="-lssl -lcrypto -lws2_32"
|
|
|
|
endef
|
|
|
|
|
|
|
|
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)_qttools_file_name),$($(package)_qttools_file_name),$($(package)_qttools_sha256_hash)) && \
|
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qtsvg_file_name),$($(package)_qtsvg_file_name),$($(package)_qtsvg_sha256_hash)) && \
|
2022-12-21 15:15:22 +00:00
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qtwebsockets_file_name),$($(package)_qtwebsockets_file_name),$($(package)_qtwebsockets_sha256_hash)) && \
|
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qtmultimedia_file_name),$($(package)_qtmultimedia_file_name),$($(package)_qtmultimedia_sha256_hash)) && \
|
2024-11-03 16:42:34 +00:00
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qtshadertools_file_name),$($(package)_qtshadertools_file_name),$($(package)_qtshadertools_sha256_hash)) && \
|
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qtwayland_file_name),$($(package)_qtwayland_file_name),$($(package)_qtwayland_sha256_hash))
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_extract_cmds
|
|
|
|
mkdir -p $($(package)_extract_dir) && \
|
|
|
|
echo "$($(package)_sha256_hash) $($(package)_source)" > $($(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 && \
|
|
|
|
echo "$($(package)_qtsvg_sha256_hash) $($(package)_source_dir)/$($(package)_qtsvg_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
|
|
echo "$($(package)_qtwebsockets_sha256_hash) $($(package)_source_dir)/$($(package)_qtwebsockets_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
2022-12-21 15:15:22 +00:00
|
|
|
echo "$($(package)_qtmultimedia_sha256_hash) $($(package)_source_dir)/$($(package)_qtmultimedia_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
|
|
echo "$($(package)_qtshadertools_sha256_hash) $($(package)_source_dir)/$($(package)_qtshadertools_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
2024-11-03 16:42:34 +00:00
|
|
|
echo "$($(package)_qtwayland_sha256_hash) $($(package)_source_dir)/$($(package)_qtwayland_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
2022-06-02 12:50:33 +00:00
|
|
|
$(build_SHA256SUM) -c $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
|
|
mkdir qtbase && \
|
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source) -C qtbase && \
|
|
|
|
mkdir qttools && \
|
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools && \
|
|
|
|
mkdir qtsvg && \
|
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qtsvg_file_name) -C qtsvg && \
|
|
|
|
mkdir qtwebsockets && \
|
2022-12-21 15:15:22 +00:00
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qtwebsockets_file_name) -C qtwebsockets && \
|
|
|
|
mkdir qtmultimedia && \
|
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qtmultimedia_file_name) -C qtmultimedia && \
|
|
|
|
mkdir qtshadertools && \
|
2024-11-03 16:42:34 +00:00
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qtshadertools_file_name) -C qtshadertools && \
|
|
|
|
mkdir qtwayland && \
|
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qtwayland_file_name) -C qtwayland
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2022-12-21 15:15:22 +00:00
|
|
|
cp $($(package)_patch_dir)/root_CMakeLists.txt CMakeLists.txt && \
|
2022-06-02 12:50:33 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/qtbase-moc-ignore-gcc-macro.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/rcc_hardcode_timestamp.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/fast_fixed_dtoa_no_optimize.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/guix_cross_lib_path.patch && \
|
2022-12-21 15:15:22 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/windows_func_fix.patch && \
|
2023-07-19 12:55:48 +00:00
|
|
|
mv $($(package)_patch_dir)/toolchain.cmake . && \
|
|
|
|
sed -i -e 's|@cmake_system_name@|$($(host_os)_cmake_system)|' \
|
|
|
|
-e 's|@target@|$(host)|' \
|
|
|
|
-e 's|@host_prefix@|$(host_prefix)|' \
|
|
|
|
-e 's|@cmake_c_flags@|$(darwin_CC_)|' \
|
|
|
|
-e 's|@cmake_cxx_flags@|$(darwin_CXX_)|' \
|
2024-11-02 16:33:59 +00:00
|
|
|
-e 's|@cmake_ld_flags@|$(darwin_LDFLAGS)|'\
|
2023-07-19 19:20:18 +00:00
|
|
|
-e 's|@wmf_libs@|$(WMF_LIBS)|' \
|
2023-07-19 12:55:48 +00:00
|
|
|
toolchain.cmake && \
|
2023-05-24 16:03:00 +00:00
|
|
|
cd qtbase && \
|
2023-06-28 10:50:32 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/xcb-util-image-fix.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/libxau-fix.patch && \
|
2023-11-27 22:40:07 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/revert-macOS-Silence-warning-about-supporting-secure.patch && \
|
2024-03-12 18:29:10 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix_static_qt_darwin_camera_permissions.patch && \
|
2024-11-02 16:33:59 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/macos-available-qtbase.patch && \
|
2023-05-24 16:03:00 +00:00
|
|
|
cd ../qtmultimedia && \
|
2022-12-27 11:55:49 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/qtmultimedia-fixes.patch && \
|
2023-12-10 13:33:29 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/v4l2.patch && \
|
2024-11-02 16:33:59 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/revert-f67ee7c39.patch && \
|
2024-12-07 15:54:42 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/macos-available-qtmultimedia.patch && \
|
|
|
|
cd ../qtwayland && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/qtwayland-tabletevent-fix.patch
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
2024-11-02 18:03:44 +00:00
|
|
|
|
2022-06-02 12:50:33 +00:00
|
|
|
define $(package)_config_cmds
|
|
|
|
export OPENSSL_LIBS=${$(package)_openssl_flags_$(host_os)} \
|
|
|
|
export PKG_CONFIG_SYSROOT_DIR=/ && \
|
|
|
|
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \
|
|
|
|
export QT_MAC_SDK_NO_VERSION_CHECK=1 && \
|
2024-11-02 16:33:59 +00:00
|
|
|
$($(package)_cmake)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2023-03-30 09:48:09 +00:00
|
|
|
export LD_LIBRARY_PATH="${build_prefix}/lib/:$(QT_LIBS_LIBS)" && \
|
2023-05-27 19:26:43 +00:00
|
|
|
env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH -u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH -u LIBRARY_PATH cmake --build . --parallel
|
2022-12-21 15:15:22 +00:00
|
|
|
endef
|
2022-06-02 12:50:33 +00:00
|
|
|
|
2022-12-21 15:15:22 +00:00
|
|
|
define $(package)_stage_cmds
|
|
|
|
DESTDIR=$($(package)_staging_dir) cmake --install .
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|