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.

195 lines
4.4 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.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
  13. PKG_HASH:=072305d4018fc5e75bb1b45ee6b938fa52fc9fd27493bf327415ef89ed14c969
  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_INSTALL = 1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/pulseaudio/Default
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. DEPENDS:=+libsndfile +libltdl +libpthread +librt +alsa-lib \
  26. +libopenssl +libwrap +libcap $(ICONV_DEPENDS) $(INTL_DEPENDS)
  27. TITLE:=Network sound server
  28. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  29. URL:=http://www.pulseaudio.org
  30. PROVIDES:=pulseaudio
  31. USERID:=pulse=51:pulse=51
  32. endef
  33. define Package/pulseaudio-daemon
  34. $(call Package/pulseaudio/Default)
  35. endef
  36. define Package/pulseaudio/Default/description
  37. PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
  38. endef
  39. define Package/pulseaudio-daemon/description
  40. $(call Package/pulseaudio/Default/description)
  41. endef
  42. define Package/pulseaudio-daemon/conffiles
  43. /etc/pulse/client.conf
  44. /etc/pulse/daemon.conf
  45. /etc/pulse/default.pa
  46. /etc/pulse/system.pa
  47. endef
  48. define Package/pulseaudio-tools
  49. SECTION:=sound
  50. CATEGORY:=Sound
  51. DEPENDS:=+libsndfile +pulseaudio
  52. TITLE:=Tools for Pulseaudio
  53. URL:=http://www.pulseaudio.org
  54. endef
  55. define Package/pulseaudio-profiles
  56. SECTION:=sound
  57. CATEGORY:=Sound
  58. DEPENDS:=+pulseaudio
  59. TITLE:=Profiles for Pulseaudio
  60. URL:=http://www.pulseaudio.org
  61. endef
  62. CONFIGURE_ARGS += \
  63. --with-system-user=pulse \
  64. --with-system-group=pulse \
  65. --with-access-group=audio \
  66. --with-database=simple \
  67. --enable-alsa \
  68. --disable-hal \
  69. --disable-gconf \
  70. --disable-nls \
  71. --disable-manpages \
  72. --enable-oss-output \
  73. --disable-oss-wrapper \
  74. --disable-samplerate \
  75. --disable-per-user-esound-socket \
  76. --disable-solaris \
  77. --disable-gtk2 \
  78. --disable-glib2 \
  79. --disable-jack \
  80. --disable-asyncns \
  81. --disable-lirc \
  82. --disable-bluez \
  83. --disable-udev \
  84. --without-fftw \
  85. --disable-avahi \
  86. --disable-dbus \
  87. --without-soxr \
  88. --without-speex
  89. CONFIGURE_VARS += \
  90. PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
  91. #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
  92. TARGET_CFLAGS += -std=gnu99
  93. define Build/InstallDev
  94. $(INSTALL_DIR) \
  95. $(1)/usr/lib/pkgconfig \
  96. $(1)/usr/include/pulse \
  97. $(1)/usr/lib \
  98. $(1)/usr/lib/pulseaudio
  99. $(CP) \
  100. $(PKG_INSTALL_DIR)/usr/include/pulse/* \
  101. $(1)/usr/include/pulse
  102. $(CP) \
  103. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  104. $(1)/usr/lib/pkgconfig
  105. $(CP) \
  106. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  107. $(1)/usr/lib/
  108. $(CP) \
  109. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  110. $(1)/usr/lib/pulseaudio/
  111. endef
  112. define Package/pulseaudio-daemon/install
  113. $(INSTALL_DIR) \
  114. $(1)/etc/pulse \
  115. $(1)/etc/init.d \
  116. $(1)/usr/bin \
  117. $(1)/usr/lib \
  118. $(1)/usr/lib/pulseaudio \
  119. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules
  120. $(INSTALL_BIN) \
  121. $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
  122. $(1)/usr/bin/pulseaudio
  123. $(INSTALL_BIN) \
  124. ./files/pulseaudio.init \
  125. $(1)/etc/init.d/pulseaudio
  126. $(INSTALL_DATA) \
  127. $(PKG_INSTALL_DIR)/etc/pulse/* \
  128. $(1)/etc/pulse
  129. $(CP) \
  130. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  131. $(1)/usr/lib/
  132. $(CP) \
  133. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  134. $(1)/usr/lib/pulseaudio/
  135. $(CP) \
  136. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
  137. $(1)/usr/lib/
  138. $(CP) \
  139. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
  140. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
  141. endef
  142. define Package/pulseaudio-tools/install
  143. $(INSTALL_DIR) \
  144. $(1)/usr/bin
  145. $(INSTALL_BIN) \
  146. $(PKG_INSTALL_DIR)/usr/bin/pa* \
  147. $(1)/usr/bin/
  148. endef
  149. define Package/pulseaudio-profiles/install
  150. $(INSTALL_DIR) \
  151. $(1)/usr/share/pulseaudio/alsa-mixer/paths \
  152. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  153. $(INSTALL_DATA) \
  154. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
  155. $(1)/usr/share/pulseaudio/alsa-mixer/paths
  156. $(INSTALL_DATA) \
  157. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
  158. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  159. endef
  160. $(eval $(call BuildPackage,pulseaudio-daemon))
  161. $(eval $(call BuildPackage,pulseaudio-tools))
  162. $(eval $(call BuildPackage,pulseaudio-profiles))