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.

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