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.

188 lines
4.4 KiB

  1. #
  2. # Copyright (C) 2007-2011 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. # Make sure to also update the dbus-x package
  9. PKG_NAME:=dbus
  10. PKG_VERSION:=1.8.6
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://dbus.freedesktop.org/releases/dbus/
  14. PKG_MD5SUM:=6a08ba555d340e9dfe2d623b83c0eea8
  15. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. TARGET_LDFLAGS+= \
  20. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  21. -Wl,-rpath=/usr/lib/
  22. define Package/dbus/Default
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Simple interprocess messaging system
  26. URL:=http://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:= +librt
  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 Build/Prepare
  64. $(Build/Prepare/Default)
  65. $(SED) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR)/configure
  66. endef
  67. CONFIGURE_ARGS += \
  68. --enable-shared \
  69. --enable-static \
  70. --disable-abstract-sockets \
  71. --disable-ansi \
  72. --disable-asserts \
  73. --disable-console-owner-file \
  74. --disable-doxygen-docs \
  75. --disable-compiler_coverage \
  76. --disable-selinux \
  77. --disable-tests \
  78. --disable-verbose-mode \
  79. --disable-xml-docs \
  80. --with-xml="expat" \
  81. --with-dbus-user=root \
  82. --with-dbus-daemondir="/usr/sbin" \
  83. --with-system-socket="/var/run/dbus/system_bus_socket" \
  84. --with-system-pid-file="/var/run/dbus.pid" \
  85. --without-x \
  86. --libexecdir=/usr/lib/dbus-1
  87. CONFIGURE_VARS+= \
  88. ac_cv_have_abstract_sockets="yes" \
  89. ac_cv_lib_expat_XML_ParserCreate_MM="yes" \
  90. define Build/InstallDev
  91. $(INSTALL_DIR) $(1)/usr/include
  92. $(CP) \
  93. $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
  94. $(1)/usr/include/
  95. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  96. $(INSTALL_DATA) \
  97. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  98. $(1)/usr/lib/dbus-1.0/include/dbus/
  99. $(INSTALL_DIR) $(1)/usr/lib
  100. $(INSTALL_DATA) \
  101. $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la,a} \
  102. $(1)/usr/lib/
  103. $(CP) \
  104. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
  105. $(1)/usr/lib/
  106. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  107. $(INSTALL_DATA) \
  108. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  109. $(1)/usr/lib/pkgconfig/
  110. endef
  111. define Package/dbus/conffiles
  112. /etc/dbus-1/session.conf
  113. /etc/dbus-1/system.conf
  114. endef
  115. define Package/libdbus/install
  116. $(INSTALL_DIR) $(1)/usr/lib
  117. $(CP) \
  118. $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* \
  119. $(1)/usr/lib/
  120. endef
  121. define Package/dbus/install
  122. $(INSTALL_DIR) $(1)/etc
  123. $(CP) \
  124. $(PKG_INSTALL_DIR)/etc/dbus-1 \
  125. $(1)/etc/
  126. $(INSTALL_DIR) $(1)/usr/lib/dbus-1
  127. $(INSTALL_BIN) \
  128. $(PKG_INSTALL_DIR)/usr/lib/dbus-1/dbus-daemon-launch-helper \
  129. $(1)/usr/lib/dbus-1/
  130. $(INSTALL_DIR) $(1)/usr/sbin
  131. $(INSTALL_BIN) \
  132. $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon \
  133. $(1)/usr/sbin/
  134. $(INSTALL_DIR) $(1)/usr/bin
  135. $(INSTALL_BIN) \
  136. $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen \
  137. $(1)/usr/bin/
  138. $(INSTALL_BIN) \
  139. $(PKG_INSTALL_DIR)/usr/bin/dbus-launch \
  140. $(1)/usr/bin/dbus-launch.real
  141. $(INSTALL_BIN) \
  142. ./files/dbus-launch \
  143. $(1)/usr/bin/
  144. $(INSTALL_DIR) $(1)/etc/init.d
  145. $(INSTALL_BIN) \
  146. ./files/dbus.init \
  147. $(1)/etc/init.d/dbus
  148. endef
  149. define Package/dbus-utils/install
  150. $(INSTALL_DIR) $(1)/usr/bin
  151. $(INSTALL_BIN) \
  152. $(PKG_INSTALL_DIR)/usr/bin/dbus-{send,monitor,cleanup-sockets} \
  153. $(1)/usr/bin/
  154. endef
  155. $(eval $(call BuildPackage,libdbus))
  156. $(eval $(call BuildPackage,dbus))
  157. $(eval $(call BuildPackage,dbus-utils))