2022-06-02 12:50:33 +00:00
|
|
|
package=qt
|
2023-02-24 16:16:48 +00:00
|
|
|
$(package)_version=6.5.0-beta3
|
2023-01-03 12:48:32 +00:00
|
|
|
$(package)_download_path=https://download.qt.io/development_releases/qt/6.5/$($(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)
|
2023-02-24 16:16:48 +00:00
|
|
|
$(package)_sha256_hash=0cf7498b34900a1d9f6c070a44495f7171eb4a4cb66a7ceea53e8721c8812701
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_darwin_dependencies=native_cctools native_qt openssl
|
2023-03-24 15:40:37 +00:00
|
|
|
$(package)_mingw32_dependencies=openssl native_qt native_libxkbcommon
|
2023-01-03 12:48:32 +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
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
|
|
|
$(package)_linguist_tools = lrelease lupdate lconvert
|
2022-12-27 11:55:49 +00:00
|
|
|
$(package)_patches = aarch64Toolchain.cmake
|
2023-03-23 19:10:01 +00:00
|
|
|
$(package)_patches += arm64-apple-toolchain.cmake
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_patches += dont_hardcode_pwd.patch
|
|
|
|
$(package)_patches += fast_fixed_dtoa_no_optimize.patch
|
2022-12-27 11:55:49 +00:00
|
|
|
$(package)_patches += gnueabihfToolchain.cmake
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_patches += guix_cross_lib_path.patch
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_patches += MacToolchain.cmake
|
2022-12-27 11:55:49 +00:00
|
|
|
$(package)_patches += no_pthread_cond_clockwait.patch
|
|
|
|
$(package)_patches += no-renameat2.patch
|
|
|
|
$(package)_patches += no-statx.patch
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_patches += no_wraprt_on_apple.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
|
2023-03-15 15:42:47 +00:00
|
|
|
$(package)_patches += riscvToolchain.cmake
|
2022-12-27 11:55:49 +00:00
|
|
|
$(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
|
|
|
|
$(package)_patches += WindowsToolchain.cmake
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
2023-02-24 16:16:48 +00:00
|
|
|
$(package)_qttools_sha256_hash=f959d0e91616ee16ca8bb843307214c4c90ebcd1283854f24c7b33eb88bbb418
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
$(package)_qtsvg_file_name=qtsvg-$($(package)_suffix)
|
2023-02-24 16:16:48 +00:00
|
|
|
$(package)_qtsvg_sha256_hash=0bb327206418384d6fd6cfe52d4350041982816847cdbbea74681582117de6a8
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
$(package)_qtwebsockets_file_name=qtwebsockets-$($(package)_suffix)
|
2023-02-24 16:16:48 +00:00
|
|
|
$(package)_qtwebsockets_sha256_hash=8051d793cf4a8890c516217f3ef95dfa9ff950430fd3fb721b26807a3a95e852
|
2022-06-02 12:50:33 +00:00
|
|
|
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_qtmultimedia_file_name=qtmultimedia-$($(package)_suffix)
|
2023-02-24 16:16:48 +00:00
|
|
|
$(package)_qtmultimedia_sha256_hash=873473fe7150082993dad04bec4c993f7a24af9449696150b24ab784494871df
|
2022-12-21 15:15:22 +00:00
|
|
|
|
|
|
|
$(package)_qtshadertools_file_name=qtshadertools-$($(package)_suffix)
|
2023-02-24 16:16:48 +00:00
|
|
|
$(package)_qtshadertools_sha256_hash=e238b3494e25db4841cfa06db27ddd30e8241f25cbeeface6d7916fb34d1ee51
|
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)
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts_release = -release
|
|
|
|
$(package)_config_opts_debug = -debug
|
|
|
|
$(package)_config_opts_debug += -optimized-tools
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_config_opts += -libexecdir $(build_prefix)/bin
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -confirm-license
|
|
|
|
$(package)_config_opts += -no-cups
|
|
|
|
$(package)_config_opts += -no-egl
|
|
|
|
$(package)_config_opts += -no-eglfs
|
|
|
|
$(package)_config_opts += -no-evdev
|
|
|
|
$(package)_config_opts += -no-gif
|
|
|
|
$(package)_config_opts += -no-glib
|
|
|
|
$(package)_config_opts += -no-icu
|
|
|
|
$(package)_config_opts += -no-ico
|
|
|
|
$(package)_config_opts += -no-kms
|
|
|
|
$(package)_config_opts += -no-linuxfb
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts += -no-libjpeg # Needed
|
2022-06-02 12:50:33 +00:00
|
|
|
#$(package)_config_opts += -no-libproxy # Needed
|
|
|
|
$(package)_config_opts += -no-libudev
|
|
|
|
$(package)_config_opts += -no-mtdev
|
2023-02-11 23:23:53 +00:00
|
|
|
$(package)_config_opts += -no-openssl # Needed
|
|
|
|
$(package)_config_opts += -openssl-linked
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -no-openvg
|
|
|
|
$(package)_config_opts += -no-reduce-relocations
|
|
|
|
$(package)_config_opts += -no-schannel
|
|
|
|
$(package)_config_opts += -no-sctp
|
|
|
|
$(package)_config_opts += -no-securetransport
|
|
|
|
$(package)_config_opts += -no-system-proxies
|
|
|
|
$(package)_config_opts += -no-use-gold-linker
|
|
|
|
$(package)_config_opts += -no-zstd
|
|
|
|
$(package)_config_opts += -nomake examples
|
|
|
|
$(package)_config_opts += -nomake tests
|
|
|
|
$(package)_config_opts += -opensource
|
|
|
|
$(package)_config_opts += -pkg-config
|
|
|
|
$(package)_config_opts += -prefix $(host_prefix)
|
|
|
|
$(package)_config_opts += -qt-libpng
|
|
|
|
$(package)_config_opts += -qt-pcre
|
|
|
|
$(package)_config_opts += -qt-harfbuzz
|
|
|
|
$(package)_config_opts += -qt-zlib
|
|
|
|
$(package)_config_opts += -static
|
|
|
|
$(package)_config_opts += -no-feature-colordialog
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts += -no-feature-concurrent # Needed
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -no-feature-dial
|
|
|
|
$(package)_config_opts += -no-feature-fontcombobox
|
2023-01-07 14:54:09 +00:00
|
|
|
#$(package)_config_opts += -no-feature-http # Needed
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -no-feature-image_heuristic_mask
|
|
|
|
$(package)_config_opts += -no-feature-keysequenceedit
|
|
|
|
$(package)_config_opts += -no-feature-lcdnumber
|
|
|
|
$(package)_config_opts += -no-feature-networkdiskcache
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts += -no-feature-networkproxy # Needed
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -no-feature-pdf
|
|
|
|
$(package)_config_opts += -no-feature-printdialog
|
|
|
|
$(package)_config_opts += -no-feature-printer
|
|
|
|
$(package)_config_opts += -no-feature-printpreviewdialog
|
|
|
|
$(package)_config_opts += -no-feature-printpreviewwidget
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_config_opts += -no-feature-printsupport
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -no-feature-sessionmanager
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts += -no-feature-socks5 # Needed
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -no-feature-sql
|
|
|
|
$(package)_config_opts += -no-feature-syntaxhighlighter
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts += -no-feature-textbrowser # Needed
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts += -no-feature-textmarkdownwriter
|
|
|
|
$(package)_config_opts += -no-feature-textodfwriter
|
|
|
|
$(package)_config_opts += -no-feature-topleveldomain
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts += -no-feature-udpsocket # Neede
|
2022-06-02 12:50:33 +00: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
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts += -no-feature-wizard # Needed
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
$(package)_config_opts_darwin = -no-dbus
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_config_opts_darwin += -no-pch
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts_darwin += -no-freetype
|
|
|
|
$(package)_config_opts_darwin += QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION)
|
|
|
|
|
|
|
|
ifneq ($(build_os),darwin)
|
2023-02-12 00:14:02 +00:00
|
|
|
$(package)_config_opts_darwin += -xplatform macx-clang
|
2023-03-16 01:44:40 +00:00
|
|
|
$(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(host_prefix)/native/SDK
|
2022-06-02 12:50:33 +00:00
|
|
|
$(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 MAC_TARGET=$(host)
|
|
|
|
$(package)_config_opts_darwin += -device-option XCODE_VERSION=$(XCODE_VERSION)
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_config_opts_darwin += -qt-host-path $(build_prefix)/qt-host
|
2022-06-02 12:50:33 +00:00
|
|
|
endif
|
|
|
|
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_config_opts_darwin += -no-feature-ffmpeg
|
2023-03-23 19:10:01 +00:00
|
|
|
$(package)_config_opts_aarch64_darwin += -- -DCMAKE_TOOLCHAIN_FILE=arm64-apple-toolchain.cmake -DCMAKE_LIBRARY_PATH=$(HOME)/.guix-profile/lib
|
|
|
|
$(package)_config_opts_x86_64_darwin += -- -DCMAKE_TOOLCHAIN_FILE=MacToolchain.cmake -DCMAKE_LIBRARY_PATH=$(HOME)/.guix-profile/lib
|
2022-12-21 15:15:22 +00:00
|
|
|
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts_linux = -xcb
|
|
|
|
$(package)_config_opts_linux += -no-xcb-xlib
|
|
|
|
$(package)_config_opts_linux += -no-feature-xlib
|
2022-12-21 15:15:22 +00:00
|
|
|
#$(package)_config_opts_linux += -feature-ffmpeg
|
|
|
|
#$(package)_config_opts_linux += -feature-pulseaudio
|
|
|
|
|
|
|
|
# https://bugreports.qt.io/browse/QTBUG-99957
|
|
|
|
$(package)_config_opts_linux += -no-pch
|
|
|
|
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts_linux += -system-freetype
|
|
|
|
$(package)_config_opts_linux += -fontconfig
|
|
|
|
$(package)_config_opts_linux += -no-opengl
|
|
|
|
$(package)_config_opts_linux += -no-feature-vulkan
|
|
|
|
$(package)_config_opts_linux += -dbus-runtime
|
|
|
|
ifneq ($(LTO),)
|
|
|
|
$(package)_config_opts_linux += -ltcg
|
|
|
|
endif
|
2023-02-12 00:14:02 +00:00
|
|
|
$(package)_config_opts_linux += -platform linux-g++ -xplatform linux-g++
|
2022-06-02 12:50:33 +00:00
|
|
|
ifneq (,$(findstring -stdlib=libc++,$($(1)_cxx)))
|
|
|
|
$(package)_config_opts_x86_64_linux = -xplatform linux-clang-libc++
|
|
|
|
endif
|
|
|
|
|
2022-12-23 15:43:34 +00:00
|
|
|
$(package)_config_opts_arm_linux += -qt-host-path $(build_prefix)/qt-host
|
|
|
|
$(package)_config_opts_arm_linux += -- -DCMAKE_TOOLCHAIN_FILE=gnueabihfToolchain.cmake -DCMAKE_LIBRARY_PATH=$(HOME)/.guix-profile/lib
|
|
|
|
|
|
|
|
$(package)_config_opts_aarch64_linux += -qt-host-path $(build_prefix)/qt-host
|
|
|
|
$(package)_config_opts_aarch64_linux += -- -DCMAKE_TOOLCHAIN_FILE=aarch64Toolchain.cmake -DCMAKE_LIBRARY_PATH=$(HOME)/.guix-profile/lib
|
|
|
|
|
2023-03-15 15:42:47 +00:00
|
|
|
$(package)_config_opts_riscv64_linux += -qt-host-path $(build_prefix)/qt-host
|
|
|
|
$(package)_config_opts_riscv64_linux += -- -DCMAKE_TOOLCHAIN_FILE=riscvToolchain.cmake -DCMAKE_LIBRARY_PATH=$(HOME)/.guix-profile/lib
|
|
|
|
|
2023-01-05 23:55:33 +00:00
|
|
|
$(package)_config_opts_mingw32 += -no-opengl
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts_mingw32 += -no-dbus
|
|
|
|
$(package)_config_opts_mingw32 += -no-freetype
|
|
|
|
$(package)_config_opts_mingw32 += -xplatform win32-g++
|
|
|
|
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-"
|
|
|
|
$(package)_config_opts_mingw32 += -pch
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_config_opts_mingw32 += -qt-host-path $(build_prefix)/qt-host
|
|
|
|
$(package)_config_opts_mingw32 += -no-feature-ffmpeg
|
|
|
|
$(package)_config_opts_mingw32 += -wmf
|
|
|
|
$(package)_config_opts_mingw32 += -- -DCMAKE_TOOLCHAIN_FILE=WindowsToolchain.cmake -DCMAKE_LIBRARY_PATH=$(HOME)/.guix-profile/lib
|
2022-06-02 12:50:33 +00: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 += -egl
|
|
|
|
$(package)_config_opts_android += -no-dbus
|
|
|
|
$(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
|
|
|
|
$(package)_config_opts_android += -pch
|
|
|
|
$(package)_config_opts_android += -no-feature-vulkan
|
|
|
|
|
|
|
|
$(package)_config_opts_aarch64_android += -android-arch arm64-v8a
|
|
|
|
$(package)_config_opts_armv7a_android += -android-arch armeabi-v7a
|
|
|
|
$(package)_config_opts_x86_64_android += -android-arch x86_64
|
|
|
|
|
|
|
|
$(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)) && \
|
|
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qtshadertools_file_name),$($(package)_qtshadertools_file_name),$($(package)_qtshadertools_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 && \
|
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 && \
|
|
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qtshadertools_file_name) -C qtshadertools
|
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)/dont_hardcode_pwd.patch && \
|
|
|
|
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)/no-statx.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/no-renameat2.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/no_pthread_cond_clockwait.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/windows_func_fix.patch && \
|
|
|
|
patch -p1 -i $($(package)_patch_dir)/no_wraprt_on_apple.patch && \
|
|
|
|
mv $($(package)_patch_dir)/WindowsToolchain.cmake . && \
|
|
|
|
mv $($(package)_patch_dir)/MacToolchain.cmake . && \
|
2022-12-23 15:43:34 +00:00
|
|
|
mv $($(package)_patch_dir)/aarch64Toolchain.cmake . && \
|
2023-03-23 19:10:01 +00:00
|
|
|
mv $($(package)_patch_dir)/arm64-apple-toolchain.cmake . && \
|
2022-12-23 15:43:34 +00:00
|
|
|
mv $($(package)_patch_dir)/gnueabihfToolchain.cmake . && \
|
2023-03-15 15:42:47 +00:00
|
|
|
mv $($(package)_patch_dir)/riscvToolchain.cmake . && \
|
2022-12-21 15:15:22 +00:00
|
|
|
cd qtmultimedia && \
|
2022-12-27 11:55:49 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/qtmultimedia-fixes.patch && \
|
2023-02-12 00:14:02 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/v4l2.patch
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
2022-12-21 15:15:22 +00:00
|
|
|
# TODO: this is a mess, but i'm tired of rebuilding Qt so it is what it is
|
|
|
|
# TODO: find a better way to make WMF libraries available to Qt without polluting the environment
|
|
|
|
ifeq ($(host_os),darwin)
|
|
|
|
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 && \
|
|
|
|
cd qtbase && \
|
2023-01-07 16:23:01 +00:00
|
|
|
env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH -u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH -u LIBRARY_PATH ./configure -top-level $($(package)_config_opts) -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
2022-12-21 15:15:22 +00:00
|
|
|
endef
|
|
|
|
else ifeq ($(host_os),mingw32)
|
|
|
|
define $(package)_config_cmds
|
|
|
|
cp $(HOME)/.guix-profile/lib/libstrmiids.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libamstrmid.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libdmoguids.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libuuid.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libmsdmo.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libole32.a \
|
|
|
|
$(HOME)/.guix-profile/lib/liboleaut32.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libmf.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libmfuuid.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libmfplat.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libmfcore.a \
|
|
|
|
$(HOME)/.guix-profile/lib/libpropsys.a \
|
|
|
|
/feather/contrib/depends/x86_64-w64-mingw32/lib/ && \
|
|
|
|
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 && \
|
|
|
|
export V=1 && \
|
|
|
|
export VERBOSE=1 && \
|
|
|
|
cd qtbase && \
|
2023-03-24 15:40:37 +00:00
|
|
|
./configure -top-level $($(package)_config_opts) -DCMAKE_LIBRARY_PATH=$(HOME)/.guix-profile/lib -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
2022-12-21 15:15:22 +00:00
|
|
|
endef
|
|
|
|
else
|
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 && \
|
|
|
|
cd qtbase && \
|
|
|
|
./configure -top-level $($(package)_config_opts)
|
|
|
|
endef
|
2022-12-21 15:15:22 +00:00
|
|
|
endif
|
2022-06-02 12:50:33 +00:00
|
|
|
|
2022-12-21 15:15:22 +00:00
|
|
|
ifeq ($(host_os),darwin)
|
2022-06-02 12:50:33 +00:00
|
|
|
define $(package)_build_cmds
|
2022-12-21 15:15:22 +00:00
|
|
|
export LD_LIBRARY_PATH=${build_prefix}/lib/ && \
|
|
|
|
env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH -u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH -u LIBRARY_PATH $(MAKE)
|
|
|
|
endef
|
|
|
|
else ifeq ($(host_os),mingw32)
|
|
|
|
define $(package)_build_cmds
|
|
|
|
export LD_LIBRARY_PATH=${build_prefix}/lib/ && \
|
2022-06-02 12:50:33 +00:00
|
|
|
$(MAKE)
|
|
|
|
endef
|
2023-01-03 12:48:32 +00:00
|
|
|
else ifneq (,$(findstring x86_64,$(HOST)))
|
|
|
|
define $(package)_build_cmds
|
2023-02-11 20:04:43 +00:00
|
|
|
export LD_LIBRARY_PATH=${host_prefix}/lib/ && \
|
2023-01-03 12:48:32 +00:00
|
|
|
cmake --build . --target syncqt_build && \
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
2022-12-21 15:15:22 +00:00
|
|
|
else
|
|
|
|
define $(package)_build_cmds
|
2023-01-05 03:25:07 +00:00
|
|
|
export LD_LIBRARY_PATH=${build_prefix}/lib/ && \
|
2022-12-21 15:15:22 +00:00
|
|
|
$(MAKE)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
2022-12-21 15:15:22 +00:00
|
|
|
endif
|
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
|