2 # Copyright (C) 2011-2014 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.xz
15 PKG_SOURCE_URL
:=http
://freedesktop.org
/software
/pulseaudio
/releases
/
16 PKG_MD5SUM
:=b691e83b7434c678dffacfa3a027750e
17 PKG_LICENSE
:=LGPL-2.1
+
18 PKG_LICENSE_FILES
:=GPL LICENSE
20 PKG_BUILD_DEPENDS
:=intltool
/host
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/nls.mk
30 #TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
31 define Package
/pulseaudio
/Default
34 DEPENDS
:=+libspeexdsp
+libsndfile
+libltdl
+libpthread \
35 +librt
+alsa-lib
+libjson
+libopenssl
+libwrap
+libcap
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
36 TITLE
:=Network sound server
37 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
38 URL
:=http
://www.pulseaudio.org
40 USERID
:=pulse
=51:pulse
=51
43 define Package
/pulseaudio-daemon
44 $(call Package
/pulseaudio
/Default
)
48 define Package
/pulseaudio
/Default
/description
49 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
52 define Package
/pulseaudio-daemon
/description
53 $(call Package
/pulseaudio
/Default
/description
)
56 define Package
/pulseaudio-daemon
/conffiles
57 /etc
/pulse
/client.conf
58 /etc
/pulse
/daemon.conf
63 define Package
/pulseaudio-tools
66 DEPENDS
:=+libsndfile pulseaudio
67 TITLE
:=Tools for Pulseaudio
68 URL
:=http
://www.pulseaudio.org
71 define Package
/pulseaudio-profiles
75 TITLE
:=Profiles for Pulseaudio
76 URL
:=http
://www.pulseaudio.org
80 --with-system-user
=pulse \
81 --with-system-group
=pulse \
82 --with-access-group
=audio \
83 --with-database
=simple \
90 --disable-oss-wrapper \
91 --disable-samplerate \
92 --disable-per-user-esound-socket \
106 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
108 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
109 TARGET_CFLAGS
+= -std
=gnu99
111 define Build
/InstallDev
113 $(1)/usr
/lib
/pkgconfig \
114 $(1)/usr
/include/pulse \
116 $(1)/usr
/lib
/pulseaudio
118 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
119 $(1)/usr
/include/pulse
121 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
122 $(1)/usr
/lib
/pkgconfig
124 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
127 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
128 $(1)/usr
/lib
/pulseaudio
/
131 define Package
/pulseaudio-daemon
/install
137 $(1)/usr
/lib
/pulseaudio \
138 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
141 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
142 $(1)/usr
/bin
/pulseaudio
145 .
/files
/pulseaudio.init \
146 $(1)/etc
/init.d
/pulseaudio
149 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
153 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
157 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
158 $(1)/usr
/lib
/pulseaudio
/
161 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
165 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
166 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
168 chmod
-R
0644 $(1)/etc
/pulse
/*
171 define Package
/pulseaudio-tools
/install
176 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
180 define Package
/pulseaudio-profiles
/install
182 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
183 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
186 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
187 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
190 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
191 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
194 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
195 $(eval
$(call BuildPackage
,pulseaudio-tools
))
196 $(eval
$(call BuildPackage
,pulseaudio-profiles
))