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.

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