2 # Copyright (C) 2011-2016 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
:=f2521c525a77166189e3cb9169f75c2ee2b82fa3fcf9476024fbc2c3a6c9cd9e
17 PKG_LICENSE
:=LGPL-2.1
+
18 PKG_LICENSE_FILES
:=GPL LICENSE
20 PKG_BUILD_DEPENDS
:=intltool
/host
25 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/nls.mk
32 define Package
/pulseaudio
/Default
35 DEPENDS
:=+libsndfile
+libltdl
+libpthread
+librt
+alsa-lib \
36 +libopenssl
+libwrap
+libcap
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
37 TITLE
:=Network sound server
38 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
39 URL
:=http
://www.pulseaudio.org
41 USERID
:=pulse
=51:pulse
=51
44 define Package
/pulseaudio-daemon
45 $(call Package
/pulseaudio
/Default
)
49 define Package
/pulseaudio-daemon-avahi
50 $(call Package
/pulseaudio
/Default
)
51 DEPENDS
+=+dbus
+libavahi-client
+sbc
52 # DEPENDS+=+avahi-daemon
57 define Package
/pulseaudio
/Default
/description
58 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
61 define Package
/pulseaudio-daemon
/description
62 $(call Package
/pulseaudio
/Default
/description
)
65 define Package
/pulseaudio-daemon-avahi
/description
66 $(call Package
/pulseaudio
/Default
/description
)
67 This package enables avahi
,bluez and is compiled against dbus
, sbc
, and avahi.
70 define Package
/pulseaudio-daemon
/conffiles
71 /etc
/pulse
/client.conf
72 /etc
/pulse
/daemon.conf
77 define Package
/pulseaudio-daemon-avahi
/conffiles
78 /etc
/pulse
/client.conf
79 /etc
/pulse
/daemon.conf
84 define Package
/pulseaudio-tools
87 DEPENDS
:=+libsndfile
+pulseaudio
88 TITLE
:=Tools for Pulseaudio
89 URL
:=http
://www.pulseaudio.org
93 define Package
/pulseaudio-profiles
97 TITLE
:=Profiles for Pulseaudio
98 URL
:=http
://www.pulseaudio.org
102 $(if
$(findstring neon
,$(CONFIG_TARGET_OPTIMIZATION
)),--enable-neon-opt
,--disable-neon-opt
) \
103 --with-system-user
=pulse \
104 --with-system-group
=pulse \
105 --with-access-group
=audio \
106 --with-database
=simple \
112 --enable-oss-output \
113 --disable-oss-wrapper \
114 --disable-samplerate \
115 --disable-per-user-esound-socket \
128 ifeq ($(BUILD_VARIANT
),avahi
)
134 ifeq ($(BUILD_VARIANT
),noavahi
)
141 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
143 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
144 TARGET_CFLAGS
+= -std
=gnu99
146 define Build
/InstallDev
148 $(1)/usr
/lib
/pkgconfig \
149 $(1)/usr
/include/pulse \
151 $(1)/usr
/lib
/pulseaudio
153 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
154 $(1)/usr
/include/pulse
156 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
157 $(1)/usr
/lib
/pkgconfig
159 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
162 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
163 $(1)/usr
/lib
/pulseaudio
/
166 define Package
/pulseaudio-daemon
/install
172 $(1)/usr
/lib
/pulseaudio \
173 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
176 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
177 $(1)/usr
/bin
/pulseaudio
180 .
/files
/pulseaudio.init \
181 $(1)/etc
/init.d
/pulseaudio
184 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
188 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
192 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
193 $(1)/usr
/lib
/pulseaudio
/
196 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
200 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
201 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
205 define Package
/pulseaudio-daemon-avahi
/install
211 $(1)/usr
/lib
/pulseaudio \
212 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules \
213 $(1)/etc
/dbus-1
/system.d
216 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
217 $(1)/usr
/bin
/pulseaudio
220 .
/files
/pulseaudio.init \
221 $(1)/etc
/init.d
/pulseaudio
224 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
228 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
232 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
233 $(1)/usr
/lib
/pulseaudio
/
236 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
240 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
241 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
244 $(PKG_INSTALL_DIR
)/etc
/dbus-1
/system.d
/pulseaudio-system.conf \
245 $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
248 define Package
/pulseaudio-tools
/install
253 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
257 define Package
/pulseaudio-profiles
/install
259 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
260 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
263 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
264 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
267 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
268 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
271 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
272 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
273 $(eval
$(call BuildPackage
,pulseaudio-tools
))
274 $(eval
$(call BuildPackage
,pulseaudio-profiles
))