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 +libgdbm +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:=+libgdbm +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 \
67 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
69 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
70 TARGET_CFLAGS += -std=gnu99
72 define Build/InstallDev
74 $(1)/usr/lib/pkgconfig \
75 $(1)/usr/include/pulse \
78 $(PKG_INSTALL_DIR)/usr/include/pulse/* \
79 $(1)/usr/include/pulse
81 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
82 $(1)/usr/lib/pkgconfig
84 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
88 define Package/pulseaudio/install
92 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
97 $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
98 $(1)/usr/bin/pulseaudio
101 ./files/pulseaudio.init \
102 $(1)/etc/init.d/pulseaudio
105 $(PKG_INSTALL_DIR)/etc/pulse/* \
109 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
113 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
116 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
117 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
120 define Package/pa-tools/install
125 $(PKG_INSTALL_DIR)/usr/bin/pa* \
129 $(eval $(call BuildPackage,pulseaudio))
130 $(eval $(call BuildPackage,pa-tools))