2 # Copyright (C) 2011-2018 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
:=https
://freedesktop.org
/software
/pulseaudio
/releases
/
16 PKG_HASH
:=809668ffc296043779c984f53461c2b3987a45b7a25eb2f0a1d11d9f23ba4055
18 PKG_LICENSE
:=LGPL-2.1
-or-later
19 PKG_LICENSE_FILES
:=GPL LICENSE
24 PKG_BUILD_DEPENDS
:=intltool
/host glib2
/host
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/nls.mk
30 define Package
/pulseaudio
/Default
33 DEPENDS
:=+libsndfile
+libltdl
+libpthread
+librt
+alsa-lib \
34 +libopenssl
+libwrap
+libcap
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
35 TITLE
:=Network sound server
36 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
37 URL
:=http
://www.pulseaudio.org
39 USERID
:=pulse
=51:pulse
=51
42 define Package
/pulseaudio-daemon
43 $(call Package
/pulseaudio
/Default
)
47 define Package
/pulseaudio-daemon-avahi
48 $(call Package
/pulseaudio
/Default
)
49 DEPENDS
+=+dbus
+libavahi-client
+sbc
54 define Package
/pulseaudio
/Default
/description
55 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
58 define Package
/pulseaudio-daemon
/description
59 $(call Package
/pulseaudio
/Default
/description
)
62 define Package
/pulseaudio-daemon-avahi
/description
63 $(call Package
/pulseaudio
/Default
/description
)
64 This package enables avahi
,bluez and is compiled against dbus
, sbc
, and avahi.
67 define Package
/pulseaudio-daemon
/conffiles
68 /etc
/pulse
/client.conf
69 /etc
/pulse
/daemon.conf
74 define Package
/pulseaudio-daemon-avahi
/conffiles
75 /etc
/pulse
/client.conf
76 /etc
/pulse
/daemon.conf
81 define Package
/pulseaudio-tools
84 DEPENDS
:=+libsndfile pulseaudio
85 TITLE
:=Tools for Pulseaudio
86 URL
:=http
://www.pulseaudio.org
90 define Package
/pulseaudio-profiles
94 TITLE
:=Profiles for Pulseaudio
95 URL
:=http
://www.pulseaudio.org
99 $(if
$(findstring neon
,$(CONFIG_TARGET_OPTIMIZATION
)),--enable-neon-opt
,--disable-neon-opt
) \
100 --with-system-user
=pulse \
101 --with-system-group
=pulse \
102 --with-access-group
=audio \
103 --with-database
=simple \
109 --enable-oss-output \
110 --disable-oss-wrapper \
111 --disable-samplerate \
112 --disable-per-user-esound-socket \
124 ifeq ($(BUILD_VARIANT
),avahi
)
130 ifeq ($(BUILD_VARIANT
),noavahi
)
137 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
139 define Build
/InstallDev
141 $(1)/usr
/lib
/pkgconfig \
142 $(1)/usr
/include/pulse \
144 $(1)/usr
/lib
/pulseaudio
146 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
147 $(1)/usr
/include/pulse
149 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
150 $(1)/usr
/lib
/pkgconfig
152 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
155 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
156 $(1)/usr
/lib
/pulseaudio
/
159 define Package
/pulseaudio-daemon
/install
165 $(1)/usr
/lib
/pulseaudio \
166 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
169 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
170 $(1)/usr
/bin
/pulseaudio
173 .
/files
/pulseaudio.init \
174 $(1)/etc
/init.d
/pulseaudio
177 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
181 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
185 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
186 $(1)/usr
/lib
/pulseaudio
/
189 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
193 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
194 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
198 define Package
/pulseaudio-daemon-avahi
/install
204 $(1)/usr
/lib
/pulseaudio \
205 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules \
206 $(1)/etc
/dbus-1
/system.d
209 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
210 $(1)/usr
/bin
/pulseaudio
213 .
/files
/pulseaudio.init \
214 $(1)/etc
/init.d
/pulseaudio
217 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
221 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
225 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
226 $(1)/usr
/lib
/pulseaudio
/
229 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
233 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
234 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
237 $(PKG_INSTALL_DIR
)/etc
/dbus-1
/system.d
/pulseaudio-system.conf \
238 $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
241 define Package
/pulseaudio-tools
/install
246 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
250 define Package
/pulseaudio-profiles
/install
252 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
253 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
256 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
257 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
260 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
261 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
264 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
265 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
266 $(eval
$(call BuildPackage
,pulseaudio-tools
))
267 $(eval
$(call BuildPackage
,pulseaudio-profiles
))