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://0pointer.de/lennart/projects/pulseaudio/
16 PKG_MD5SUM:=ca85ab470669b05e100861654cf5eb3c
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 +liboil +libsndfile +libatomicops +libltdl +dbus +libpthread +librt +alsa-lib $(ICONV_DEPENDS) $(INTL_DEPENDS) @BROKEN
32 TITLE:=Network sound server
33 URL:=http://www.pulseaudio.org
36 define Package/pa-tools
39 DEPENDS:=+libgdbm +libsndfile +pulseaudio #+libpulse
40 TITLE:=Tools for Pulseaudio
41 URL:=http://www.pulseaudio.org
45 --with-system-user=root \
46 --with-system-group=root \
47 --with-realtime-group=root \
48 --with-access-group=root \
61 --disable-samplerate \
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 Package/pulseaudio/install
77 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
81 $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
82 $(1)/usr/bin/pulseaudio
85 $(PKG_INSTALL_DIR)/etc/pulse/* \
89 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
93 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/*.so \
94 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
97 define Package/pa-tools/install
102 $(PKG_INSTALL_DIR)/usr/bin/pa* \
106 $(eval $(call BuildPackage,pulseaudio))
107 $(eval $(call BuildPackage,pa-tools))