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.

149 lines
4.3 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. PKG_CONFIG_DEPENDS:= \
  18. CONFIG_DBUS_VERBOSE
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/dbus/Default
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Simple interprocess messaging system
  25. URL:=https://dbus.freedesktop.org/
  26. endef
  27. define Package/dbus/Default/description
  28. D-Bus is a message bus system, a simple way for applications to talk to one
  29. another. In addition to interprocess communication, D-Bus helps coordinate
  30. process lifecycle; it makes it simple and reliable to code a "single instance"
  31. application or daemon, and to launch applications and daemons on demand when
  32. their services are needed.
  33. endef
  34. define Package/libdbus
  35. $(call Package/dbus/Default)
  36. CATEGORY:=Libraries
  37. TITLE+= (library)
  38. DEPENDS:= +libpthread
  39. endef
  40. define Package/libdbus/Description
  41. $(call Package/dbus/Default/description)
  42. This package contains the D-Bus shared library.
  43. endef
  44. define Package/dbus
  45. $(call Package/dbus/Default)
  46. TITLE+= (daemon)
  47. DEPENDS:= +libexpat +libdbus
  48. endef
  49. define Package/dbus/Description
  50. $(call Package/dbus/Default/description)
  51. This package contains the D-Bus daemon.
  52. endef
  53. define Package/dbus-utils
  54. $(call Package/dbus/Default)
  55. TITLE+= (utilities)
  56. DEPENDS:= +dbus
  57. endef
  58. define Package/dbus-utils/Description
  59. $(call Package/dbus/Default/description)
  60. This package contains D-Bus utilities.
  61. endef
  62. define Package/dbus/config
  63. source "$(SOURCE)/Config.in"
  64. endef
  65. CMAKE_OPTIONS += \
  66. -DDBUS_SYSTEM_SOCKET=/var/run/dbus/system_bus_socket \
  67. -DDBUS_SESSION_SOCKET_DIR=/tmp \
  68. -DDBUS_BUILD_TESTS=OFF \
  69. -DDBUS_LINUX=ON \
  70. -DDBUS_DISABLE_ASSERT=ON \
  71. -DBUS_ENABLE_STATS=OFF \
  72. -DDBUS_ENABLE_CONTAINERS=OFF \
  73. -DENABLE_SYSTEMD=OFF \
  74. -DDBUS_BUS_ENABLE_SYSTEMD=OFF \
  75. -DHAVE_SYSTEMD=OFF \
  76. -DDBUS_WITH_GLIB=OFF \
  77. -DDBUS_ENABLE_VERBOSE_MODE=OFF \
  78. -DDBUS_DISABLE_CHECKS=ON \
  79. -DDBUS_BUILD_X11=OFF \
  80. -DDBUS_ENABLE_DOXYGEN_DOCS=OFF \
  81. -DDBUS_ENABLE_QTHELP_DOCS=OFF \
  82. -DDBUS_ENABLE_XML_DOCS=OFF
  83. ifeq ($(CONFIG_DBUS_VERBOSE),y)
  84. CMAKE_OPTIONS += -DDBUS_ENABLE_VERBOSE_MODE=ON
  85. endif
  86. define Build/InstallDev
  87. $(INSTALL_DIR) $(1)/usr/include
  88. $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 $(1)/usr/include/
  89. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  90. $(INSTALL_DATA) \
  91. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  92. $(1)/usr/lib/dbus-1.0/include/dbus/
  93. $(INSTALL_DIR) $(1)/usr/lib
  94. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so* \
  95. $(1)/usr/lib/
  96. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 $(1)/usr/lib/
  97. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  98. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  99. $(1)/usr/lib/pkgconfig/
  100. endef
  101. define Package/libdbus/install
  102. $(INSTALL_DIR) $(1)/usr/lib
  103. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
  104. endef
  105. define Package/dbus/install
  106. $(INSTALL_DIR) $(1)/usr/bin
  107. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-cleanup-sockets $(1)/usr/bin/
  108. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-daemon $(1)/usr/bin/
  109. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-launch $(1)/usr/bin/dbus-launch.real
  110. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen $(1)/usr/bin/
  111. $(INSTALL_BIN) ./files/dbus-launch $(1)/usr/bin/
  112. $(INSTALL_DIR) $(1)/usr/lib
  113. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/dbus-daemon-launch-helper $(1)/usr/lib/
  114. $(INSTALL_DIR) $(1)/etc/init.d
  115. $(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
  116. $(INSTALL_DIR) $(1)/usr/share/dbus-1
  117. $(CP) $(PKG_INSTALL_DIR)/usr/share/dbus-1 $(1)/usr/share/
  118. endef
  119. define Package/dbus-utils/install
  120. $(INSTALL_DIR) $(1)/usr/bin
  121. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-monitor $(1)/usr/bin/
  122. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-send $(1)/usr/bin/
  123. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-test-tool $(1)/usr/bin/
  124. endef
  125. $(eval $(call BuildPackage,libdbus))
  126. $(eval $(call BuildPackage,dbus))
  127. $(eval $(call BuildPackage,dbus-utils))