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-2014 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:=6.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_MD5SUM:=b691e83b7434c678dffacfa3a027750e
  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:=+libspeexdsp +libsndfile +libltdl +libpthread \
  26. +librt +alsa-lib +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. DEPENDS+= +libjson-c
  36. endef
  37. define Package/pulseaudio/Default/description
  38. PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
  39. endef
  40. define Package/pulseaudio-daemon/description
  41. $(call Package/pulseaudio/Default/description)
  42. endef
  43. define Package/pulseaudio-daemon/conffiles
  44. /etc/pulse/client.conf
  45. /etc/pulse/daemon.conf
  46. /etc/pulse/default.pa
  47. /etc/pulse/system.pa
  48. endef
  49. define Package/pulseaudio-tools
  50. SECTION:=sound
  51. CATEGORY:=Sound
  52. DEPENDS:=+libsndfile +pulseaudio
  53. TITLE:=Tools for Pulseaudio
  54. URL:=http://www.pulseaudio.org
  55. endef
  56. define Package/pulseaudio-profiles
  57. SECTION:=sound
  58. CATEGORY:=Sound
  59. DEPENDS:=pulseaudio
  60. TITLE:=Profiles for Pulseaudio
  61. URL:=http://www.pulseaudio.org
  62. endef
  63. CONFIGURE_ARGS += \
  64. --with-system-user=pulse \
  65. --with-system-group=pulse \
  66. --with-access-group=audio \
  67. --with-database=simple \
  68. --enable-alsa \
  69. --disable-hal \
  70. --disable-gconf \
  71. --disable-nls \
  72. --disable-manpages \
  73. --enable-oss-output \
  74. --disable-oss-wrapper \
  75. --disable-samplerate \
  76. --disable-per-user-esound-socket \
  77. --disable-solaris \
  78. --disable-gtk2 \
  79. --disable-glib2 \
  80. --disable-jack \
  81. --disable-asyncns \
  82. --disable-lirc \
  83. --disable-bluez \
  84. --disable-udev \
  85. --without-fftw \
  86. --disable-avahi \
  87. --disable-dbus
  88. CONFIGURE_VARS += \
  89. PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
  90. #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
  91. TARGET_CFLAGS += -std=gnu99
  92. define Build/InstallDev
  93. $(INSTALL_DIR) \
  94. $(1)/usr/lib/pkgconfig \
  95. $(1)/usr/include/pulse \
  96. $(1)/usr/lib \
  97. $(1)/usr/lib/pulseaudio
  98. $(CP) \
  99. $(PKG_INSTALL_DIR)/usr/include/pulse/* \
  100. $(1)/usr/include/pulse
  101. $(CP) \
  102. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  103. $(1)/usr/lib/pkgconfig
  104. $(CP) \
  105. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  106. $(1)/usr/lib/
  107. $(CP) \
  108. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  109. $(1)/usr/lib/pulseaudio/
  110. endef
  111. define Package/pulseaudio-daemon/install
  112. $(INSTALL_DIR) \
  113. $(1)/etc/pulse \
  114. $(1)/etc/init.d \
  115. $(1)/usr/bin \
  116. $(1)/usr/lib \
  117. $(1)/usr/lib/pulseaudio \
  118. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules
  119. $(INSTALL_BIN) \
  120. $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
  121. $(1)/usr/bin/pulseaudio
  122. $(INSTALL_BIN) \
  123. ./files/pulseaudio.init \
  124. $(1)/etc/init.d/pulseaudio
  125. $(INSTALL_CONF) \
  126. $(PKG_INSTALL_DIR)/etc/pulse/* \
  127. $(1)/etc/pulse
  128. $(CP) \
  129. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  130. $(1)/usr/lib/
  131. $(CP) \
  132. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  133. $(1)/usr/lib/pulseaudio/
  134. $(CP) \
  135. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
  136. $(1)/usr/lib/
  137. $(CP) \
  138. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
  139. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
  140. chmod -R 0644 $(1)/etc/pulse/*
  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_CONF) \
  154. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
  155. $(1)/usr/share/pulseaudio/alsa-mixer/paths
  156. $(INSTALL_CONF) \
  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))