mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
depends: add dbus, link statically
This commit is contained in:
parent
e75110ea38
commit
42310fce06
4 changed files with 45 additions and 3 deletions
32
contrib/depends/packages/dbus.mk
Normal file
32
contrib/depends/packages/dbus.mk
Normal file
|
@ -0,0 +1,32 @@
|
|||
package=dbus
|
||||
$(package)_version=1.13.2
|
||||
$(package)_download_path=https://dbus.freedesktop.org/releases/dbus
|
||||
$(package)_file_name=dbus-$($(package)_version).tar.gz
|
||||
$(package)_sha256_hash=945deb349a7e2999184827c17351c1bf93c6395b9c3ade0c91cad42cb93435b1
|
||||
$(package)_dependencies=expat
|
||||
$(package)_patches=remove-DDBUS_STATIC_BUILD.patch
|
||||
|
||||
define $(package)_set_vars
|
||||
$(package)_config_opts=--disable-shared --disable-maintainer-mode --disable-xml-docs --disable-doxygen-docs
|
||||
$(package)_config_opts+=--disable-ducktype-docs
|
||||
endef
|
||||
|
||||
define $(package)_preprocess_cmds
|
||||
patch -p1 < $($(package)_patch_dir)/remove-DDBUS_STATIC_BUILD.patch
|
||||
endef
|
||||
|
||||
define $(package)_config_cmds
|
||||
$($(package)_autoconf)
|
||||
endef
|
||||
|
||||
define $(package)_build_cmds
|
||||
$(MAKE)
|
||||
endef
|
||||
|
||||
define $(package)_stage_cmds
|
||||
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
||||
endef
|
||||
|
||||
define $(package)_postprocess_cmds
|
||||
rm lib/*.la
|
||||
endef
|
|
@ -10,7 +10,7 @@ darwin_native_packages = darwin_sdk native_cctools native_libtapi
|
|||
mingw32_packages =
|
||||
mingw32_native_packages =
|
||||
|
||||
qt_linux_packages := libxcb xcb_proto libXau xproto libxkbcommon libxcb_util libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_cursor libxcb_util_wm freetype fontconfig qt
|
||||
qt_linux_packages := libxcb xcb_proto libXau xproto libxkbcommon libxcb_util libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_cursor libxcb_util_wm freetype fontconfig dbus qt
|
||||
qt_darwin_packages := qt
|
||||
qt_mingw32_packages := qt
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ $(package)_file_name=qtbase-$($(package)_suffix)
|
|||
$(package)_sha256_hash=db56fa1f4303a1189fe33418d25d1924931c7aef237f89eea9de58e858eebfed
|
||||
$(package)_darwin_dependencies=native_cctools native_qt openssl
|
||||
$(package)_mingw32_dependencies=openssl native_qt native_libxkbcommon
|
||||
$(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
|
||||
$(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
|
||||
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
||||
$(package)_linguist_tools = lrelease lupdate lconvert
|
||||
$(package)_patches = aarch64Toolchain.cmake
|
||||
|
@ -157,7 +157,7 @@ $(package)_config_opts_linux += -fontconfig
|
|||
$(package)_config_opts_linux += -no-opengl
|
||||
$(package)_config_opts_linux += -no-feature-vulkan
|
||||
$(package)_config_opts_linux += -no-feature-backtrace
|
||||
$(package)_config_opts_linux += -dbus-runtime
|
||||
$(package)_config_opts_linux += -dbus-linked
|
||||
ifneq ($(LTO),)
|
||||
$(package)_config_opts_linux += -ltcg
|
||||
endif
|
||||
|
|
10
contrib/depends/patches/dbus/remove-DDBUS_STATIC_BUILD.patch
Normal file
10
contrib/depends/patches/dbus/remove-DDBUS_STATIC_BUILD.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
diff --git a/dbus-1.pc.in b/dbus-1.pc.in
|
||||
index 3581be6e..ef422589 100644
|
||||
--- a/dbus-1.pc.in
|
||||
+++ b/dbus-1.pc.in
|
||||
@@ -18,4 +18,4 @@ Description: Free desktop message bus
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -ldbus-1
|
||||
Libs.private: @LIBDBUS_LIBS@
|
||||
-Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include @DBUS_STATIC_BUILD_CPPFLAGS@
|
||||
+Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include
|
Loading…
Reference in a new issue