No Description

Makefile 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. #
  2. # Copyright (C) 2007-2014 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.8
  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:=b9f4a18ee3faa1e07c04aa1d83239c43
  15. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  16. PKG_LICENSE:=AFL-2.1
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. TARGET_LDFLAGS+= \
  21. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  22. -Wl,-rpath=/usr/lib/
  23. define Package/dbus/Default
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. TITLE:=Simple interprocess messaging system
  27. URL:=http://dbus.freedesktop.org/
  28. endef
  29. define Package/dbus/Default/description
  30. D-Bus is a message bus system, a simple way for applications to talk to one
  31. another. In addition to interprocess communication, D-Bus helps coordinate
  32. process lifecycle; it makes it simple and reliable to code a "single instance"
  33. application or daemon, and to launch applications and daemons on demand when
  34. their services are needed.
  35. endef
  36. define Package/libdbus
  37. $(call Package/dbus/Default)
  38. CATEGORY:=Libraries
  39. TITLE+= (library)
  40. DEPENDS:= +librt
  41. endef
  42. define Package/libdbus/Description
  43. $(call Package/dbus/Default/description)
  44. This package contains the D-Bus shared library.
  45. endef
  46. define Package/dbus
  47. $(call Package/dbus/Default)
  48. TITLE+= (daemon)
  49. DEPENDS:= +libexpat +libdbus
  50. endef
  51. define Package/dbus/Description
  52. $(call Package/dbus/Default/description)
  53. This package contains the D-Bus daemon.
  54. endef
  55. define Package/dbus-utils
  56. $(call Package/dbus/Default)
  57. TITLE+= (utilities)
  58. DEPENDS:= dbus
  59. endef
  60. define Package/dbus-utils/Description
  61. $(call Package/dbus/Default/description)
  62. This package contains D-Bus utilities.
  63. endef
  64. define Build/Prepare
  65. $(Build/Prepare/Default)
  66. $(SED) 's/-Wl,--gc-sections/--gc-sections/' $(PKG_BUILD_DIR)/configure
  67. endef
  68. CONFIGURE_ARGS += \
  69. --enable-shared \
  70. --enable-static \
  71. --disable-abstract-sockets \
  72. --disable-ansi \
  73. --disable-asserts \
  74. --disable-console-owner-file \
  75. --disable-doxygen-docs \
  76. --disable-compiler_coverage \
  77. --disable-selinux \
  78. --disable-tests \
  79. --disable-verbose-mode \
  80. --disable-xml-docs \
  81. --with-xml="expat" \
  82. --with-dbus-user=root \
  83. --with-dbus-daemondir="/usr/sbin" \
  84. --with-system-socket="/var/run/dbus/system_bus_socket" \
  85. --with-system-pid-file="/var/run/dbus.pid" \
  86. --without-x \
  87. --libexecdir=/usr/lib/dbus-1
  88. CONFIGURE_VARS+= \
  89. ac_cv_have_abstract_sockets="yes" \
  90. ac_cv_lib_expat_XML_ParserCreate_MM="yes" \
  91. define Build/InstallDev
  92. $(INSTALL_DIR) $(1)/usr/include
  93. $(CP) \
  94. $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 \
  95. $(1)/usr/include/
  96. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  97. $(INSTALL_DATA) \
  98. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  99. $(1)/usr/lib/dbus-1.0/include/dbus/
  100. $(INSTALL_DIR) $(1)/usr/lib
  101. $(INSTALL_DATA) \
  102. $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la,a} \
  103. $(1)/usr/lib/
  104. $(CP) \
  105. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 \
  106. $(1)/usr/lib/
  107. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  108. $(INSTALL_DATA) \
  109. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  110. $(1)/usr/lib/pkgconfig/
  111. endef
  112. define Package/dbus/conffiles
  113. /etc/dbus-1/session.conf
  114. /etc/dbus-1/system.conf
  115. endef
  116. define Package/libdbus/install
  117. $(INSTALL_DIR) $(1)/usr/lib
  118. $(CP) \
  119. $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* \
  120. $(1)/usr/lib/
  121. endef
  122. define Package/dbus/install
  123. $(INSTALL_DIR) $(1)/etc
  124. $(CP) \
  125. $(PKG_INSTALL_DIR)/etc/dbus-1 \
  126. $(1)/etc/
  127. $(INSTALL_DIR) $(1)/usr/lib/dbus-1
  128. $(INSTALL_BIN) \
  129. $(PKG_INSTALL_DIR)/usr/lib/dbus-1/dbus-daemon-launch-helper \
  130. $(1)/usr/lib/dbus-1/
  131. $(INSTALL_DIR) $(1)/usr/sbin
  132. $(INSTALL_BIN) \
  133. $(PKG_INSTALL_DIR)/usr/sbin/dbus-daemon \
  134. $(1)/usr/sbin/
  135. $(INSTALL_DIR) $(1)/usr/bin
  136. $(INSTALL_BIN) \
  137. $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen \
  138. $(1)/usr/bin/
  139. $(INSTALL_BIN) \
  140. $(PKG_INSTALL_DIR)/usr/bin/dbus-launch \
  141. $(1)/usr/bin/dbus-launch.real
  142. $(INSTALL_BIN) \
  143. ./files/dbus-launch \
  144. $(1)/usr/bin/
  145. $(INSTALL_DIR) $(1)/etc/init.d
  146. $(INSTALL_BIN) \
  147. ./files/dbus.init \
  148. $(1)/etc/init.d/dbus
  149. endef
  150. define Package/dbus-utils/install
  151. $(INSTALL_DIR) $(1)/usr/bin
  152. $(INSTALL_BIN) \
  153. $(PKG_INSTALL_DIR)/usr/bin/dbus-{send,monitor,cleanup-sockets} \
  154. $(1)/usr/bin/
  155. endef
  156. $(eval $(call BuildPackage,libdbus))
  157. $(eval $(call BuildPackage,dbus))
  158. $(eval $(call BuildPackage,dbus-utils))