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 --with-system-user
=pulse \
103 --with-system-group
=pulse \
104 --with-access-group
=audio \
105 --with-database
=simple \
111 --enable-oss-output \
112 --disable-oss-wrapper \
113 --disable-samplerate \
114 --disable-per-user-esound-socket \
127 ifeq ($(BUILD_VARIANT
),avahi
)
133 ifeq ($(BUILD_VARIANT
),noavahi
)
140 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
142 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
143 TARGET_CFLAGS
+= -std
=gnu99
145 define Build
/InstallDev
147 $(1)/usr
/lib
/pkgconfig \
148 $(1)/usr
/include/pulse \
150 $(1)/usr
/lib
/pulseaudio
152 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
153 $(1)/usr
/include/pulse
155 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
156 $(1)/usr
/lib
/pkgconfig
158 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
161 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
162 $(1)/usr
/lib
/pulseaudio
/
165 define Package
/pulseaudio-daemon
/install
171 $(1)/usr
/lib
/pulseaudio \
172 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
175 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
176 $(1)/usr
/bin
/pulseaudio
179 .
/files
/pulseaudio.init \
180 $(1)/etc
/init.d
/pulseaudio
183 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
187 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
191 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
192 $(1)/usr
/lib
/pulseaudio
/
195 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
199 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
200 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
204 define Package
/pulseaudio-daemon-avahi
/install
210 $(1)/usr
/lib
/pulseaudio \
211 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules \
212 $(1)/etc
/dbus-1
/system.d
215 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
216 $(1)/usr
/bin
/pulseaudio
219 .
/files
/pulseaudio.init \
220 $(1)/etc
/init.d
/pulseaudio
223 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
227 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
231 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
232 $(1)/usr
/lib
/pulseaudio
/
235 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
239 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
240 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
243 $(PKG_INSTALL_DIR
)/etc
/dbus-1
/system.d
/pulseaudio-system.conf \
244 $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
247 define Package
/pulseaudio-tools
/install
252 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
256 define Package
/pulseaudio-profiles
/install
258 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
259 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
262 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
263 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
266 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
267 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
270 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
271 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
272 $(eval
$(call BuildPackage
,pulseaudio-tools
))
273 $(eval
$(call BuildPackage
,pulseaudio-profiles
))