No Description

Makefile 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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:=5.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:=c43749838612f4860465e83ed62ca38e
  14. PKG_LICENSE:=LGPL-2.1+
  15. PKG_LICENSE_FILES:=GPL LICENSE
  16. PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_BUILD_DEPENDS:=intltool/host
  18. PKG_FIXUP:=autoreconf
  19. PKG_USE_MIPS16:=0
  20. PKG_INSTALL = 1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. #TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
  24. define Package/pulseaudio/Default
  25. SECTION:=sound
  26. CATEGORY:=Sound
  27. DEPENDS:=+libspeexdsp +libsndfile +libltdl +libpthread \
  28. +librt +alsa-lib +libjson +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. endef
  38. define Package/pulseaudio/Default/description
  39. PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
  40. endef
  41. define Package/pulseaudio-daemon/description
  42. $(call Package/pulseaudio/Default/description)
  43. endef
  44. define Package/pulseaudio-daemon/conffiles
  45. /etc/pulse/client.conf
  46. /etc/pulse/daemon.conf
  47. /etc/pulse/default.pa
  48. /etc/pulse/system.pa
  49. endef
  50. define Package/pulseaudio-tools
  51. SECTION:=sound
  52. CATEGORY:=Sound
  53. DEPENDS:=+libsndfile pulseaudio
  54. TITLE:=Tools for Pulseaudio
  55. URL:=http://www.pulseaudio.org
  56. endef
  57. define Package/pulseaudio-profiles
  58. SECTION:=sound
  59. CATEGORY:=Sound
  60. DEPENDS:=pulseaudio
  61. TITLE:=Profiles for Pulseaudio
  62. URL:=http://www.pulseaudio.org
  63. endef
  64. CONFIGURE_ARGS += \
  65. --with-system-user=pulse \
  66. --with-system-group=pulse \
  67. --with-access-group=audio \
  68. --with-database=simple \
  69. --enable-alsa \
  70. --disable-hal \
  71. --disable-gconf \
  72. --disable-nls \
  73. --disable-manpages \
  74. --enable-oss-output \
  75. --disable-oss-wrapper \
  76. --disable-samplerate \
  77. --disable-per-user-esound-socket \
  78. --disable-solaris \
  79. --disable-gtk2 \
  80. --disable-glib2 \
  81. --disable-jack \
  82. --disable-asyncns \
  83. --disable-lirc \
  84. --disable-bluez \
  85. --disable-udev \
  86. --without-fftw \
  87. --disable-avahi \
  88. --disable-dbus
  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_CONF) \
  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. chmod -R 0644 $(1)/etc/pulse/*
  142. endef
  143. define Package/pulseaudio-tools/install
  144. $(INSTALL_DIR) \
  145. $(1)/usr/bin
  146. $(INSTALL_BIN) \
  147. $(PKG_INSTALL_DIR)/usr/bin/pa* \
  148. $(1)/usr/bin/
  149. endef
  150. define Package/pulseaudio-profiles/install
  151. $(INSTALL_DIR) \
  152. $(1)/usr/share/pulseaudio/alsa-mixer/paths \
  153. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  154. $(INSTALL_CONF) \
  155. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
  156. $(1)/usr/share/pulseaudio/alsa-mixer/paths
  157. $(INSTALL_CONF) \
  158. $(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
  159. $(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
  160. endef
  161. $(eval $(call BuildPackage,pulseaudio-daemon))
  162. $(eval $(call BuildPackage,pulseaudio-tools))
  163. $(eval $(call BuildPackage,pulseaudio-profiles))