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.

267 lines
6.1 KiB

  1. #
  2. # Copyright (C) 2011-2018 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:=pulseaudio
  9. PKG_VERSION:=12.2
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://freedesktop.org/software/pulseaudio/releases/
  13. PKG_HASH:=809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055
  14. PKG_LICENSE:=LGPL-2.1-or-later
  15. PKG_LICENSE_FILES:=GPL LICENSE
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_BUILD_DEPENDS:=intltool/host glib2/host
  20. PKG_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/pulseaudio/Default
  24. SECTION:=sound
  25. CATEGORY:=Sound
  26. DEPENDS:=+libsndfile +libltdl +libpthread +librt +alsa-lib \
  27. +libopenssl +libwrap +libcap $(ICONV_DEPENDS) $(INTL_DEPENDS)
  28. TITLE:=Network sound server
  29. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  30. URL:=http://www.pulseaudio.org
  31. PROVIDES:=pulseaudio
  32. USERID:=pulse=51:pulse=51
  33. endef
  34. define Package/pulseaudio-daemon
  35. $(call Package/pulseaudio/Default)
  36. VARIANT:=noavahi
  37. endef
  38. define Package/pulseaudio-daemon-avahi
  39. $(call Package/pulseaudio/Default)
  40. DEPENDS+=+dbus +libavahi-client +sbc
  41. TITLE+= (avahi/bluez)
  42. VARIANT:=avahi
  43. endef
  44. define Package/pulseaudio/Default/description
  45. PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
  46. endef
  47. define Package/pulseaudio-daemon/description
  48. $(call Package/pulseaudio/Default/description)
  49. endef
  50. define Package/pulseaudio-daemon-avahi/description
  51. $(call Package/pulseaudio/Default/description)
  52. This package enables avahi,bluez and is compiled against dbus, sbc, and avahi.
  53. endef
  54. define Package/pulseaudio-daemon/conffiles
  55. /etc/pulse/client.conf
  56. /etc/pulse/daemon.conf
  57. /etc/pulse/default.pa
  58. /etc/pulse/system.pa
  59. endef
  60. define Package/pulseaudio-daemon-avahi/conffiles
  61. /etc/pulse/client.conf
  62. /etc/pulse/daemon.conf
  63. /etc/pulse/default.pa
  64. /etc/pulse/system.pa
  65. endef
  66. define Package/pulseaudio-tools
  67. SECTION:=sound
  68. CATEGORY:=Sound
  69. DEPENDS:=+libsndfile pulseaudio
  70. TITLE:=Tools for Pulseaudio
  71. URL:=http://www.pulseaudio.org
  72. VARIANT:=noavahi
  73. endef
  74. define Package/pulseaudio-profiles
  75. SECTION:=sound
  76. CATEGORY:=Sound
  77. DEPENDS:=pulseaudio
  78. TITLE:=Profiles for Pulseaudio
  79. URL:=http://www.pulseaudio.org
  80. endef
  81. CONFIGURE_ARGS += \
  82. $(if $(findstring neon,$(CONFIG_TARGET_OPTIMIZATION)),--enable-neon-opt,--disable-neon-opt) \
  83. --with-system-user=pulse \
  84. --with-system-group=pulse \
  85. --with-access-group=audio \
  86. --with-database=simple \
  87. --enable-alsa \
  88. --disable-hal \
  89. --disable-gconf \
  90. --disable-nls \
  91. --disable-manpages \
  92. --enable-oss-output \
  93. --disable-oss-wrapper \
  94. --disable-samplerate \
  95. --disable-per-user-esound-socket \
  96. --disable-solaris \
  97. --disable-gtk2 \
  98. --disable-glib2 \
  99. --disable-jack \
  100. --disable-asyncns \
  101. --disable-lirc \
  102. --disable-udev \
  103. --without-fftw \
  104. --without-soxr \
  105. --without-speex
  106. ifeq ($(BUILD_VARIANT),avahi)
  107. CONFIGURE_ARGS += \
  108. --enable-avahi \
  109. --enable-dbus
  110. endif
  111. ifeq ($(BUILD_VARIANT),noavahi)
  112. CONFIGURE_ARGS += \
  113. --disable-avahi \
  114. --disable-dbus
  115. endif
  116. CONFIGURE_VARS += \
  117. PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
  118. define Build/InstallDev
  119. $(INSTALL_DIR) \
  120. $(1)/usr/lib/pkgconfig \
  121. $(1)/usr/include/pulse \
  122. $(1)/usr/lib \
  123. $(1)/usr/lib/pulseaudio
  124. $(CP) \
  125. $(PKG_INSTALL_DIR)/usr/include/pulse/* \
  126. $(1)/usr/include/pulse
  127. $(CP) \
  128. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  129. $(1)/usr/lib/pkgconfig
  130. $(CP) \
  131. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  132. $(1)/usr/lib/
  133. $(CP) \
  134. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  135. $(1)/usr/lib/pulseaudio/
  136. endef
  137. define Package/pulseaudio-daemon/install
  138. $(INSTALL_DIR) \
  139. $(1)/etc/pulse \
  140. $(1)/etc/init.d \
  141. $(1)/usr/bin \
  142. $(1)/usr/lib \
  143. $(1)/usr/lib/pulseaudio \
  144. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules
  145. $(INSTALL_BIN) \
  146. $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
  147. $(1)/usr/bin/pulseaudio
  148. $(INSTALL_BIN) \
  149. ./files/pulseaudio.init \
  150. $(1)/etc/init.d/pulseaudio
  151. $(INSTALL_DATA) \
  152. $(PKG_INSTALL_DIR)/etc/pulse/* \
  153. $(1)/etc/pulse
  154. $(CP) \
  155. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  156. $(1)/usr/lib/
  157. $(CP) \
  158. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  159. $(1)/usr/lib/pulseaudio/
  160. $(CP) \
  161. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
  162. $(1)/usr/lib/
  163. $(CP) \
  164. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
  165. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
  166. endef
  167. define Package/pulseaudio-daemon-avahi/install
  168. $(INSTALL_DIR) \
  169. $(1)/etc/pulse \
  170. $(1)/etc/init.d \
  171. $(1)/usr/bin \
  172. $(1)/usr/lib \
  173. $(1)/usr/lib/pulseaudio \
  174. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
  175. $(1)/etc/dbus-1/system.d
  176. $(INSTALL_BIN) \
  177. $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
  178. $(1)/usr/bin/pulseaudio
  179. $(INSTALL_BIN) \
  180. ./files/pulseaudio.init \
  181. $(1)/etc/init.d/pulseaudio
  182. $(INSTALL_DATA) \
  183. $(PKG_INSTALL_DIR)/etc/pulse/* \
  184. $(1)/etc/pulse
  185. $(CP) \
  186. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  187. $(1)/usr/lib/
  188. $(CP) \
  189. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  190. $(1)/usr/lib/pulseaudio/
  191. $(CP) \
  192. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
  193. $(1)/usr/lib/
  194. $(CP) \
  195. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
  196. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
  197. $(INSTALL_DATA) \
  198. $(PKG_INSTALL_DIR)/etc/dbus-1/system.d/pulseaudio-system.conf \
  199. $(1)/etc/dbus-1/system.d/pulseaudio-system.conf
  200. endef
  201. define Package/pulseaudio-tools/install
  202. $(INSTALL_DIR) \
  203. $(1)/usr/bin
  204. $(INSTALL_BIN) \
  205. $(PKG_INSTALL_DIR)/usr/bin/pa* \
  206. $(1)/usr/bin/
  207. endef
  208. define Package/pulseaudio-profiles/install
  209. $(INSTALL_DIR) \
  210. $(1)/usr/share/pulseaudio/alsa-mixer/paths \
  211. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  212. $(INSTALL_DATA) \
  213. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
  214. $(1)/usr/share/pulseaudio/alsa-mixer/paths
  215. $(INSTALL_DATA) \
  216. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
  217. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  218. endef
  219. $(eval $(call BuildPackage,pulseaudio-daemon))
  220. $(eval $(call BuildPackage,pulseaudio-daemon-avahi))
  221. $(eval $(call BuildPackage,pulseaudio-tools))
  222. $(eval $(call BuildPackage,pulseaudio-profiles))