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.

161 lines
4.4 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_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. PKG_CONFIG_DEPENDS:= \
  20. CONFIG_DBUS_VERBOSE
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/dbus/Default
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Simple interprocess messaging system
  26. URL:=https://dbus.freedesktop.org/
  27. endef
  28. define Package/dbus/Default/description
  29. D-Bus is a message bus system, a simple way for applications to talk to one
  30. another. In addition to interprocess communication, D-Bus helps coordinate
  31. process lifecycle; it makes it simple and reliable to code a "single instance"
  32. application or daemon, and to launch applications and daemons on demand when
  33. their services are needed.
  34. endef
  35. define Package/libdbus
  36. $(call Package/dbus/Default)
  37. CATEGORY:=Libraries
  38. TITLE+= (library)
  39. DEPENDS:= +libpthread
  40. endef
  41. define Package/libdbus/Description
  42. $(call Package/dbus/Default/description)
  43. This package contains the D-Bus shared library.
  44. endef
  45. define Package/dbus
  46. $(call Package/dbus/Default)
  47. TITLE+= (daemon)
  48. DEPENDS:= +libexpat +libdbus
  49. endef
  50. define Package/dbus/Description
  51. $(call Package/dbus/Default/description)
  52. This package contains the D-Bus daemon.
  53. endef
  54. define Package/dbus-utils
  55. $(call Package/dbus/Default)
  56. TITLE+= (utilities)
  57. DEPENDS:= +dbus
  58. endef
  59. define Package/dbus-utils/Description
  60. $(call Package/dbus/Default/description)
  61. This package contains D-Bus utilities.
  62. endef
  63. define Package/dbus/config
  64. source "$(SOURCE)/Config.in"
  65. endef
  66. CONFIGURE_ARGS += \
  67. --disable-maintainer-mode \
  68. --disable-developer \
  69. --enable-debug=no \
  70. --enable-shared \
  71. --disable-static \
  72. --disable-verbose-mode \
  73. --disable-asserts \
  74. --disable-xml-docs \
  75. --disable-doxygen-docs \
  76. --disable-ducktype-docs \
  77. --disable-selinux \
  78. --disable-apparmor \
  79. --disable-libaudit \
  80. --enable-inotify \
  81. --disable-kqueue \
  82. --disable-console-owner-file \
  83. --disable-systemd \
  84. --disable-tests \
  85. --disable-code-coverage \
  86. --disable-x11-autolaunch \
  87. --with-session-socket-dir=/tmp \
  88. --with-system-socket=/var/run/dbus/system_bus_socket \
  89. --with-system-pid-file=/var/run/dbus.pid \
  90. --with-dbus-user=root \
  91. --without-x \
  92. --enable-qt-help=no \
  93. --disable-xml-docs
  94. ifeq ($(CONFIG_DBUS_VERBOSE),y)
  95. CONFIGURE_ARGS += --enable-verbose-mode
  96. endif
  97. define Build/InstallDev
  98. $(INSTALL_DIR) $(1)/usr/include
  99. $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 $(1)/usr/include/
  100. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  101. $(INSTALL_DATA) \
  102. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  103. $(1)/usr/lib/dbus-1.0/include/dbus/
  104. $(INSTALL_DIR) $(1)/usr/lib
  105. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so* \
  106. $(1)/usr/lib/
  107. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 $(1)/usr/lib/
  108. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  109. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  110. $(1)/usr/lib/pkgconfig/
  111. endef
  112. define Package/libdbus/install
  113. $(INSTALL_DIR) $(1)/usr/lib
  114. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
  115. endef
  116. define Package/dbus/install
  117. $(INSTALL_DIR) $(1)/usr/bin
  118. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-cleanup-sockets $(1)/usr/bin/
  119. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-daemon $(1)/usr/bin/
  120. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-launch $(1)/usr/bin/dbus-launch.real
  121. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen $(1)/usr/bin/
  122. $(INSTALL_BIN) ./files/dbus-launch $(1)/usr/bin/
  123. $(INSTALL_DIR) $(1)/usr/lib
  124. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dbus-daemon-launch-helper $(1)/usr/lib/
  125. $(INSTALL_DIR) $(1)/etc/init.d
  126. $(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
  127. $(INSTALL_DIR) $(1)/usr/share/dbus-1
  128. $(CP) $(PKG_INSTALL_DIR)/usr/share/dbus-1 $(1)/usr/share/
  129. endef
  130. define Package/dbus-utils/install
  131. $(INSTALL_DIR) $(1)/usr/bin
  132. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-monitor $(1)/usr/bin/
  133. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-send $(1)/usr/bin/
  134. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-test-tool $(1)/usr/bin/
  135. endef
  136. $(eval $(call BuildPackage,libdbus))
  137. $(eval $(call BuildPackage,dbus))
  138. $(eval $(call BuildPackage,dbus-utils))