depends: add dbus, link statically

This commit is contained in:
tobtoht 2023-06-28 12:18:44 +02:00
parent e75110ea38
commit 42310fce06
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
4 changed files with 45 additions and 3 deletions

View 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

View file

@ -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

View file

@ -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

View 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