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.

136 lines
4.0 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_SYSTEM_SOCKET=/var/run/dbus/system_bus_socket \
  62. -DDBUS_SESSION_SOCKET_DIR=/tmp \
  63. -DDBUS_SYSTEM_PID_FILE=/var/run/dbus.pid \
  64. -DDBUS_BUILD_TESTS=OFF \
  65. -DDBUS_LINUX=ON \
  66. -DDBUS_DISABLE_ASSERT=ON \
  67. -DBUS_ENABLE_STATS=OFF \
  68. -DDBUS_ENABLE_CONTAINERS=OFF \
  69. -DENABLE_SYSTEMD=OFF \
  70. -DDBUS_BUS_ENABLE_SYSTEMD=OFF \
  71. -DHAVE_SYSTEMD=OFF \
  72. -DDBUS_WITH_GLIB=OFF \
  73. -DDBUS_ENABLE_VERBOSE_MODE=OFF \
  74. -DDBUS_DISABLE_CHECKS=ON \
  75. -DDBUS_BUILD_X11=OFF \
  76. -DDBUS_ENABLE_DOXYGEN_DOCS=OFF \
  77. -DENABLE_QT_HELP=OFF
  78. define Build/InstallDev
  79. $(INSTALL_DIR) $(1)/usr/include
  80. $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 $(1)/usr/include/
  81. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  82. $(INSTALL_DATA) \
  83. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  84. $(1)/usr/lib/dbus-1.0/include/dbus/
  85. $(INSTALL_DIR) $(1)/usr/lib
  86. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so* \
  87. $(1)/usr/lib/
  88. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 $(1)/usr/lib/
  89. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  90. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  91. $(1)/usr/lib/pkgconfig/
  92. endef
  93. define Package/libdbus/install
  94. $(INSTALL_DIR) $(1)/usr/lib
  95. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
  96. endef
  97. define Package/dbus/install
  98. $(INSTALL_DIR) $(1)/usr/bin
  99. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-cleanup-sockets $(1)/usr/bin/
  100. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-daemon $(1)/usr/bin/
  101. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-launch $(1)/usr/bin/dbus-launch.real
  102. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen $(1)/usr/bin/
  103. $(INSTALL_BIN) ./files/dbus-launch $(1)/usr/bin/
  104. $(INSTALL_DIR) $(1)/usr/lib
  105. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/dbus-daemon-launch-helper $(1)/usr/lib/
  106. $(INSTALL_DIR) $(1)/etc/init.d
  107. $(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
  108. $(INSTALL_DIR) $(1)/usr/share/dbus-1
  109. $(CP) $(PKG_INSTALL_DIR)/usr/share/dbus-1 $(1)/usr/share/
  110. endef
  111. define Package/dbus-utils/install
  112. $(INSTALL_DIR) $(1)/usr/bin
  113. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-{monitor,send,update-activation-environment} $(1)/usr/bin/
  114. endef
  115. $(eval $(call BuildPackage,libdbus))
  116. $(eval $(call BuildPackage,dbus))
  117. $(eval $(call BuildPackage,dbus-utils))