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.

193 lines
4.5 KiB

  1. #
  2. # Copyright (C) 2011 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:=5.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
  13. PKG_MD5SUM:=c43749838612f4860465e83ed62ca38e
  14. PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_BUILD_DEPENDS:=intltool/host
  16. PKG_FIXUP:=autoreconf
  17. PKG_USE_MIPS16:=0
  18. PKG_INSTALL = 1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. #TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
  22. define Package/pulseaudio/Default
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. DEPENDS:=+libspeexdsp +libsndfile +libltdl +libpthread \
  26. +librt +alsa-lib +libjson +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. endef
  32. define Package/pulseaudio-daemon
  33. $(call Package/pulseaudio/Default)
  34. endef
  35. define Package/pulseaudio/Default/description
  36. PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
  37. endef
  38. define Package/pulseaudio-daemon/description
  39. $(call Package/pulseaudio/Default/description)
  40. endef
  41. define Package/pulseaudio-daemon/conffiles
  42. /etc/pulse/client.conf
  43. /etc/pulse/daemon.conf
  44. /etc/pulse/default.pa
  45. /etc/pulse/system.pa
  46. endef
  47. define Package/pulseaudio-tools
  48. SECTION:=sound
  49. CATEGORY:=Sound
  50. DEPENDS:=+libsndfile pulseaudio
  51. TITLE:=Tools for Pulseaudio
  52. URL:=http://www.pulseaudio.org
  53. endef
  54. define Package/pulseaudio-profiles
  55. SECTION:=sound
  56. CATEGORY:=Sound
  57. DEPENDS:=pulseaudio
  58. TITLE:=Profiles for Pulseaudio
  59. URL:=http://www.pulseaudio.org
  60. endef
  61. CONFIGURE_ARGS += \
  62. --with-system-user=pulse \
  63. --with-system-group=pulse \
  64. --with-access-group=audio \
  65. --with-database=simple \
  66. --enable-alsa \
  67. --disable-hal \
  68. --disable-gconf \
  69. --disable-nls \
  70. --disable-manpages \
  71. --enable-oss-output \
  72. --disable-oss-wrapper \
  73. --disable-samplerate \
  74. --disable-per-user-esound-socket \
  75. --disable-solaris \
  76. --disable-gtk2 \
  77. --disable-glib2 \
  78. --disable-jack \
  79. --disable-asyncns \
  80. --disable-lirc \
  81. --disable-bluez \
  82. --disable-udev \
  83. --without-fftw \
  84. --disable-avahi \
  85. --disable-dbus
  86. CONFIGURE_VARS += \
  87. PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
  88. #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
  89. TARGET_CFLAGS += -std=gnu99
  90. define Build/InstallDev
  91. $(INSTALL_DIR) \
  92. $(1)/usr/lib/pkgconfig \
  93. $(1)/usr/include/pulse \
  94. $(1)/usr/lib \
  95. $(1)/usr/lib/pulseaudio
  96. $(CP) \
  97. $(PKG_INSTALL_DIR)/usr/include/pulse/* \
  98. $(1)/usr/include/pulse
  99. $(CP) \
  100. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
  101. $(1)/usr/lib/pkgconfig
  102. $(CP) \
  103. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  104. $(1)/usr/lib/
  105. $(CP) \
  106. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  107. $(1)/usr/lib/pulseaudio/
  108. endef
  109. define Package/pulseaudio-daemon/install
  110. $(INSTALL_DIR) \
  111. $(1)/etc/pulse \
  112. $(1)/etc/init.d \
  113. $(1)/usr/bin \
  114. $(1)/usr/lib \
  115. $(1)/usr/lib/pulseaudio \
  116. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules
  117. $(INSTALL_BIN) \
  118. $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
  119. $(1)/usr/bin/pulseaudio
  120. $(INSTALL_BIN) \
  121. ./files/pulseaudio.init \
  122. $(1)/etc/init.d/pulseaudio
  123. $(INSTALL_CONF) \
  124. $(PKG_INSTALL_DIR)/etc/pulse/* \
  125. $(1)/etc/pulse
  126. $(CP) \
  127. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  128. $(1)/usr/lib/
  129. $(CP) \
  130. $(PKG_INSTALL_DIR)/usr/lib/pulseaudio/* \
  131. $(1)/usr/lib/pulseaudio/
  132. $(CP) \
  133. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
  134. $(1)/usr/lib/
  135. $(CP) \
  136. $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
  137. $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
  138. chmod -R 0644 $(1)/etc/pulse/*
  139. endef
  140. define Package/pulseaudio-tools/install
  141. $(INSTALL_DIR) \
  142. $(1)/usr/bin
  143. $(INSTALL_BIN) \
  144. $(PKG_INSTALL_DIR)/usr/bin/pa* \
  145. $(1)/usr/bin/
  146. endef
  147. define Package/pulseaudio-profiles/install
  148. $(INSTALL_DIR) \
  149. $(1)/usr/share/pulseaudio/alsa-mixer/paths \
  150. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  151. $(INSTALL_CONF) \
  152. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
  153. $(1)/usr/share/pulseaudio/alsa-mixer/paths
  154. $(INSTALL_CONF) \
  155. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
  156. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  157. endef
  158. $(eval $(call BuildPackage,pulseaudio-daemon))
  159. $(eval $(call BuildPackage,pulseaudio-tools))
  160. $(eval $(call BuildPackage,pulseaudio-profiles))