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.

273 lines
6.2 KiB

  1. #
  2. # Copyright (C) 2011-2016 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:=11.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://freedesktop.org/software/pulseaudio/releases/
  13. PKG_HASH:=f2521c525a77166189e3cb9169f75c2ee2b82fa3fcf9476024fbc2c3a6c9cd9e
  14. PKG_LICENSE:=LGPL-2.1+
  15. PKG_LICENSE_FILES:=GPL LICENSE
  16. PKG_BUILD_DEPENDS:=intltool/host
  17. PKG_FIXUP:=autoreconf
  18. PKG_USE_MIPS16:=0
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  20. PKG_INSTALL = 1
  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. # DEPENDS+=+avahi-daemon
  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. --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. # --disable-bluez
  107. ifeq ($(BUILD_VARIANT),avahi)
  108. CONFIGURE_ARGS += \
  109. --enable-avahi \
  110. --enable-dbus
  111. endif
  112. ifeq ($(BUILD_VARIANT),noavahi)
  113. CONFIGURE_ARGS += \
  114. --disable-avahi \
  115. --disable-dbus
  116. endif
  117. CONFIGURE_VARS += \
  118. PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
  119. #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
  120. TARGET_CFLAGS += -std=gnu99
  121. define Build/InstallDev
  122. $(INSTALL_DIR) \
  123. $(1)/usr/lib/pkgconfig \
  124. $(1)/usr/include/pulse \
  125. $(1)/usr/lib \
  126. $(1)/usr/lib/pulseaudio
  127. $(CP) \
  128. $(PKG_INSTALL_DIR)/usr/include/pulse/* \
  129. $(1)/usr/include/pulse
  130. $(CP) \
  131. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  132. $(1)/usr/lib/pkgconfig
  133. $(CP) \
  134. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  135. $(1)/usr/lib/
  136. $(CP) \
  137. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  138. $(1)/usr/lib/pulseaudio/
  139. endef
  140. define Package/pulseaudio-daemon/install
  141. $(INSTALL_DIR) \
  142. $(1)/etc/pulse \
  143. $(1)/etc/init.d \
  144. $(1)/usr/bin \
  145. $(1)/usr/lib \
  146. $(1)/usr/lib/pulseaudio \
  147. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules
  148. $(INSTALL_BIN) \
  149. $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
  150. $(1)/usr/bin/pulseaudio
  151. $(INSTALL_BIN) \
  152. ./files/pulseaudio.init \
  153. $(1)/etc/init.d/pulseaudio
  154. $(INSTALL_DATA) \
  155. $(PKG_INSTALL_DIR)/etc/pulse/* \
  156. $(1)/etc/pulse
  157. $(CP) \
  158. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  159. $(1)/usr/lib/
  160. $(CP) \
  161. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  162. $(1)/usr/lib/pulseaudio/
  163. $(CP) \
  164. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
  165. $(1)/usr/lib/
  166. $(CP) \
  167. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
  168. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
  169. endef
  170. define Package/pulseaudio-daemon-avahi/install
  171. $(INSTALL_DIR) \
  172. $(1)/etc/pulse \
  173. $(1)/etc/init.d \
  174. $(1)/usr/bin \
  175. $(1)/usr/lib \
  176. $(1)/usr/lib/pulseaudio \
  177. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
  178. $(1)/etc/dbus-1/system.d
  179. $(INSTALL_BIN) \
  180. $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
  181. $(1)/usr/bin/pulseaudio
  182. $(INSTALL_BIN) \
  183. ./files/pulseaudio.init \
  184. $(1)/etc/init.d/pulseaudio
  185. $(INSTALL_DATA) \
  186. $(PKG_INSTALL_DIR)/etc/pulse/* \
  187. $(1)/etc/pulse
  188. $(CP) \
  189. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  190. $(1)/usr/lib/
  191. $(CP) \
  192. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  193. $(1)/usr/lib/pulseaudio/
  194. $(CP) \
  195. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
  196. $(1)/usr/lib/
  197. $(CP) \
  198. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
  199. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
  200. $(INSTALL_DATA) \
  201. $(PKG_INSTALL_DIR)/etc/dbus-1/system.d/pulseaudio-system.conf \
  202. $(1)/etc/dbus-1/system.d/pulseaudio-system.conf
  203. endef
  204. define Package/pulseaudio-tools/install
  205. $(INSTALL_DIR) \
  206. $(1)/usr/bin
  207. $(INSTALL_BIN) \
  208. $(PKG_INSTALL_DIR)/usr/bin/pa* \
  209. $(1)/usr/bin/
  210. endef
  211. define Package/pulseaudio-profiles/install
  212. $(INSTALL_DIR) \
  213. $(1)/usr/share/pulseaudio/alsa-mixer/paths \
  214. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  215. $(INSTALL_DATA) \
  216. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
  217. $(1)/usr/share/pulseaudio/alsa-mixer/paths
  218. $(INSTALL_DATA) \
  219. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
  220. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  221. endef
  222. $(eval $(call BuildPackage,pulseaudio-daemon))
  223. $(eval $(call BuildPackage,pulseaudio-daemon-avahi))
  224. $(eval $(call BuildPackage,pulseaudio-tools))
  225. $(eval $(call BuildPackage,pulseaudio-profiles))