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.

146 lines
4.1 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)/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. define Build/InstallDev
  88. $(INSTALL_DIR) $(1)/usr/include
  89. $(CP) $(PKG_INSTALL_DIR)/usr/include/dbus-1.0 $(1)/usr/include/
  90. $(INSTALL_DIR) $(1)/usr/lib/dbus-1.0/include/dbus/
  91. $(INSTALL_DATA) \
  92. $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0/include/dbus/*.h \
  93. $(1)/usr/lib/dbus-1.0/include/dbus/
  94. $(INSTALL_DIR) $(1)/usr/lib
  95. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.{so*,la} \
  96. $(1)/usr/lib/
  97. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dbus-1.0 $(1)/usr/lib/
  98. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  99. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbus-1.pc \
  100. $(1)/usr/lib/pkgconfig/
  101. endef
  102. define Package/libdbus/install
  103. $(INSTALL_DIR) $(1)/usr/lib
  104. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbus-1.so.* $(1)/usr/lib/
  105. endef
  106. define Package/dbus/install
  107. $(INSTALL_DIR) $(1)/usr/bin
  108. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-cleanup-sockets $(1)/usr/bin/
  109. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-daemon $(1)/usr/bin/
  110. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-launch $(1)/usr/bin/dbus-launch.real
  111. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-uuidgen $(1)/usr/bin/
  112. $(INSTALL_BIN) ./files/dbus-launch $(1)/usr/bin/
  113. $(INSTALL_DIR) $(1)/usr/lib
  114. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dbus-daemon-launch-helper $(1)/usr/lib/
  115. $(INSTALL_DIR) $(1)/etc/init.d
  116. $(INSTALL_BIN) ./files/dbus.init $(1)/etc/init.d/dbus
  117. $(INSTALL_DIR) $(1)/usr/share/dbus-1
  118. $(CP) $(PKG_INSTALL_DIR)/usr/share/dbus-1 $(1)/usr/share/
  119. endef
  120. define Package/dbus-utils/install
  121. $(INSTALL_DIR) $(1)/usr/bin
  122. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dbus-{monitor,send,update-activation-environment} $(1)/usr/bin/
  123. endef
  124. $(eval $(call BuildPackage,libdbus))
  125. $(eval $(call BuildPackage,dbus))
  126. $(eval $(call BuildPackage,dbus-utils))