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 $(ICONV_DEPENDS) $(INTL_DEPENDS)
34 TITLE:=Network sound server
35 URL:=http://www.pulseaudio.org
38 define Package/pa-tools
41 DEPENDS:=+libgdbm +libsndfile +pulseaudio #+libpulse
42 TITLE:=Tools for Pulseaudio
43 URL:=http://www.pulseaudio.org
47 --with-system-user=root \
48 --with-system-group=root \
49 --with-access-group=root \
65 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
67 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
68 TARGET_CFLAGS += -std=gnu99
70 define Build/InstallDev
72 $(1)/usr/lib/pkgconfig \
73 $(1)/usr/include/pulse \
76 $(PKG_INSTALL_DIR)/usr/include/pulse/* \
77 $(1)/usr/include/pulse
79 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
80 $(1)/usr/lib/pkgconfig
82 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
86 define Package/pulseaudio/install
90 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
95 $(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
96 $(1)/usr/bin/pulseaudio
99 ./files/pulseaudio.init \
100 $(1)/etc/init.d/pulseaudio
103 $(PKG_INSTALL_DIR)/etc/pulse/* \
107 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
111 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
114 $(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
115 $(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
118 define Package/pa-tools/install
123 $(PKG_INSTALL_DIR)/usr/bin/pa* \
127 $(eval $(call BuildPackage,pulseaudio))
128 $(eval $(call BuildPackage,pa-tools))