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.

174 lines
4.9 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.12
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://dbus.freedesktop.org/releases/dbus
  13. PKG_HASH:=7588649b56dd257c6a5f85a8c45aa2dfdf9e99f4de3983710f452081ca43eca6
  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. include $(INCLUDE_DIR)/host-build.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/dbus/Default
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Simple interprocess messaging system
  25. URL:=http://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. CONFIGURE_ARGS += \
  63. --disable-maintainer-mode \
  64. --disable-developer \
  65. --enable-debug=no \
  66. --enable-shared \
  67. --disable-static \
  68. --disable-verbose-mode \
  69. --disable-asserts \
  70. --disable-xml-docs \
  71. --disable-doxygen-docs \
  72. --disable-ducktype-docs \
  73. --disable-selinux \
  74. --disable-apparmor \
  75. --disable-libaudit \
  76. --enable-inotify \
  77. --disable-kqueue \
  78. --disable-console-owner-file \
  79. --disable-systemd \
  80. --disable-tests \
  81. --disable-code-coverage \
  82. --disable-x11-autolaunch \
  83. --with-session-socket-dir=/tmp \
  84. --with-system-socket=/var/run/dbus/system_bus_socket \
  85. --with-system-pid-file=/var/run/dbus.pid \
  86. --with-dbus-user=root \
  87. --without-x
  88. HOST_CONFIGURE_ARGS+= \
  89. --disable-maintainer-mode \
  90. --disable-developer \
  91. --enable-debug=no \
  92. --enable-shared \
  93. --disable-static \
  94. --disable-verbose-mode \
  95. --disable-asserts \
  96. --disable-xml-docs \
  97. --disable-doxygen-docs \
  98. --disable-ducktype-docs \
  99. --disable-selinux \
  100. --disable-apparmor \
  101. --disable-libaudit \
  102. --enable-inotify \
  103. --disable-kqueue \
  104. --disable-console-owner-file \
  105. --disable-systemd \
  106. --disable-tests \
  107. --disable-code-coverage \
  108. --disable-x11-autolaunch \
  109. --with-system-socket="$(STAGING_DIR_HOSTPKG)/var/run/dbus/system_bus_socket" \
  110. --with-system-pid-file="$(STAGING_DIR_HOSTPKG)/var/run/dbus.pid" \
  111. --with-dbus-daemondir="$(STAGING_DIR_HOSTPKG)/bin" \
  112. --without-x
  113. define Build/InstallDev
  114. $(INSTALL_DIR) $(1)/usr/include
  115. $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 $(1)/usr/include/
  116. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  117. $(INSTALL_DATA) \
  118. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  119. $(1)/usr/lib/dbus-1.0/include/dbus/
  120. $(INSTALL_DIR) $(1)/usr/lib
  121. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la} \
  122. $(1)/usr/lib/
  123. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 $(1)/usr/lib/
  124. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  125. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  126. $(1)/usr/lib/pkgconfig/
  127. endef
  128. define Package/libdbus/install
  129. $(INSTALL_DIR) $(1)/usr/lib
  130. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
  131. endef
  132. define Package/dbus/install
  133. $(INSTALL_DIR) $(1)/usr/bin
  134. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-cleanup-sockets $(1)/usr/bin/
  135. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-daemon $(1)/usr/bin/
  136. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-launch $(1)/usr/bin/dbus-launch.real
  137. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen $(1)/usr/bin/
  138. $(INSTALL_BIN) ./files/dbus-launch $(1)/usr/bin/
  139. $(INSTALL_DIR) $(1)/usr/lib
  140. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dbus-daemon-launch-helper $(1)/usr/lib/
  141. $(INSTALL_DIR) $(1)/etc/init.d
  142. $(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
  143. $(INSTALL_DIR) $(1)/usr/share/dbus-1
  144. $(CP) $(PKG_INSTALL_DIR)/usr/share/dbus-1 $(1)/usr/share/
  145. endef
  146. define Package/dbus-utils/install
  147. $(INSTALL_DIR) $(1)/usr/bin
  148. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-{monitor,send,update-activation-environment} $(1)/usr/bin/
  149. endef
  150. $(eval $(call HostBuild))
  151. $(eval $(call BuildPackage,libdbus))
  152. $(eval $(call BuildPackage,dbus))
  153. $(eval $(call BuildPackage,dbus-utils))