2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
16 PKG_MD5SUM:=7391205a337d1e04a9ff38025f684034
18 PKG_BUILD_DEPENDS:=intltool/host
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
27 #TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
28 define Package/pulseaudio
31 DEPENDS:=+libspeexdsp +libsndfile +libsamplerate \
32 +libltdl +libpthread +librt +alsa-lib \
33 @!UCLIBC_VERSION_0_9_30_1 @!UCLIBC_VERSION_0_9_30_2 \
34 @!UCLIBC_VERSION_0_9_30_3 \
35 $(ICONV_DEPENDS) $(INTL_DEPENDS)
36 TITLE:=Network sound server
37 URL:=http://www.pulseaudio.org
40 define Package/pa-tools
43 DEPENDS:=+libsndfile +pulseaudio #+libpulse
44 TITLE:=Tools for Pulseaudio
45 URL:=http://www.pulseaudio.org
49 --with-system-user=root \
50 --with-system-group=root \
51 --with-access-group=root \
68 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
70 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
71 TARGET_CFLAGS += -std=gnu99
73 define Build/InstallDev
75 $(1)/usr/lib/pkgconfig \
76 $(1)/usr/include/pulse \
79 $(PKG_INSTALL_DIR)/usr/include/pulse/* \
80 $(1)/usr/include/pulse
82 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
83 $(1)/usr/lib/pkgconfig
85 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
89 define Package/pulseaudio/install
93 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
98 $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
99 $(1)/usr/bin/pulseaudio
102 ./files/pulseaudio.init \
103 $(1)/etc/init.d/pulseaudio
106 $(PKG_INSTALL_DIR)/etc/pulse/* \
110 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
114 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
117 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
118 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
121 define Package/pa-tools/install
126 $(PKG_INSTALL_DIR)/usr/bin/pa* \
130 $(eval $(call BuildPackage,pulseaudio))
131 $(eval $(call BuildPackage,pa-tools))