You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
3.8 KiB

  1. #
  2. # Copyright (C) 2007-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=dbus
  9. PKG_VERSION:=1.13.18
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://dbus.freedesktop.org/releases/dbus
  13. PKG_HASH:=8078f5c25e34ab907ce06905d969dc8ef0ccbec367e1e1707c7ecf8460f4254e
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=AFL-2.1
  16. PKG_CPE_ID:=cpe:/a:freedesktop:dbus
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../devel/ninja/ninja-cmake.mk
  19. define Package/dbus/Default
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Simple interprocess messaging system
  23. URL:=https://dbus.freedesktop.org/
  24. endef
  25. define Package/dbus/Default/description
  26. D-Bus is a message bus system, a simple way for applications to talk to one
  27. another. In addition to interprocess communication, D-Bus helps coordinate
  28. process lifecycle; it makes it simple and reliable to code a "single instance"
  29. application or daemon, and to launch applications and daemons on demand when
  30. their services are needed.
  31. endef
  32. define Package/libdbus
  33. $(call Package/dbus/Default)
  34. CATEGORY:=Libraries
  35. TITLE+= (library)
  36. DEPENDS:= +libpthread
  37. endef
  38. define Package/libdbus/Description
  39. $(call Package/dbus/Default/description)
  40. This package contains the D-Bus shared library.
  41. endef
  42. define Package/dbus
  43. $(call Package/dbus/Default)
  44. TITLE+= (daemon)
  45. DEPENDS:= +libexpat +libdbus
  46. endef
  47. define Package/dbus/Description
  48. $(call Package/dbus/Default/description)
  49. This package contains the D-Bus daemon.
  50. endef
  51. define Package/dbus-utils
  52. $(call Package/dbus/Default)
  53. TITLE+= (utilities)
  54. DEPENDS:= +dbus
  55. endef
  56. define Package/dbus-utils/Description
  57. $(call Package/dbus/Default/description)
  58. This package contains D-Bus utilities.
  59. endef
  60. CMAKE_OPTIONS += \
  61. -DDBUS_BUILD_TESTS=OFF \
  62. -DDBUS_LINUX=ON \
  63. -DDBUS_DISABLE_ASSERT=ON \
  64. -DBUS_ENABLE_STATS=OFF \
  65. -DDBUS_ENABLE_CONTAINERS=OFF \
  66. -DENABLE_SYSTEMD=OFF \
  67. -DDBUS_BUS_ENABLE_SYSTEMD=OFF \
  68. -DHAVE_SYSTEMD=OFF \
  69. -DDBUS_WITH_GLIB=OFF \
  70. -DDBUS_ENABLE_VERBOSE_MODE=OFF \
  71. -DDBUS_DISABLE_CHECKS=ON \
  72. -DDBUS_BUILD_X11=OFF \
  73. define Build/InstallDev
  74. $(INSTALL_DIR) $(1)/usr/include
  75. $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 $(1)/usr/include/
  76. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  77. $(INSTALL_DATA) \
  78. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  79. $(1)/usr/lib/dbus-1.0/include/dbus/
  80. $(INSTALL_DIR) $(1)/usr/lib
  81. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so* \
  82. $(1)/usr/lib/
  83. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 $(1)/usr/lib/
  84. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  85. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  86. $(1)/usr/lib/pkgconfig/
  87. endef
  88. define Package/libdbus/install
  89. $(INSTALL_DIR) $(1)/usr/lib
  90. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
  91. endef
  92. define Package/dbus/install
  93. $(INSTALL_DIR) $(1)/usr/bin
  94. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-cleanup-sockets $(1)/usr/bin/
  95. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-daemon $(1)/usr/bin/
  96. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-launch $(1)/usr/bin/dbus-launch.real
  97. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen $(1)/usr/bin/
  98. $(INSTALL_BIN) ./files/dbus-launch $(1)/usr/bin/
  99. $(INSTALL_DIR) $(1)/usr/lib
  100. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/dbus-daemon-launch-helper $(1)/usr/lib/
  101. $(INSTALL_DIR) $(1)/etc/init.d
  102. $(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
  103. $(INSTALL_DIR) $(1)/usr/share/dbus-1
  104. $(CP) $(PKG_INSTALL_DIR)/usr/share/dbus-1 $(1)/usr/share/
  105. endef
  106. define Package/dbus-utils/install
  107. $(INSTALL_DIR) $(1)/usr/bin
  108. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-{monitor,send,update-activation-environment} $(1)/usr/bin/
  109. endef
  110. $(eval $(call BuildPackage,libdbus))
  111. $(eval $(call BuildPackage,dbus))
  112. $(eval $(call BuildPackage,dbus-utils))