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
:=6e422dbdc9fd11c0cb6af869e5eda73dc24a8be3c14725440edd51ce6b464444
17 PKG_LICENSE
:=LGPL-2.1
+
18 PKG_LICENSE_FILES
:=GPL LICENSE
21 PKG_BUILD_DEPENDS
:=intltool
/host
26 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
30 include $(INCLUDE_DIR
)/package.mk
31 include $(INCLUDE_DIR
)/nls.mk
33 define Package
/pulseaudio
/Default
36 DEPENDS
:=+libsndfile
+libltdl
+libpthread
+librt
+alsa-lib \
37 +libopenssl
+libwrap
+libcap
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
38 TITLE
:=Network sound server
39 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
40 URL
:=http
://www.pulseaudio.org
42 USERID
:=pulse
=51:pulse
=51
45 define Package
/pulseaudio-daemon
46 $(call Package
/pulseaudio
/Default
)
50 define Package
/pulseaudio-daemon-avahi
51 $(call Package
/pulseaudio
/Default
)
52 DEPENDS
+=+dbus
+libavahi-client
+sbc
53 # DEPENDS+=+avahi-daemon
58 define Package
/pulseaudio
/Default
/description
59 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
62 define Package
/pulseaudio-daemon
/description
63 $(call Package
/pulseaudio
/Default
/description
)
66 define Package
/pulseaudio-daemon-avahi
/description
67 $(call Package
/pulseaudio
/Default
/description
)
68 This package enables avahi
,bluez and is compiled against dbus
, sbc
, and avahi.
71 define Package
/pulseaudio-daemon
/conffiles
72 /etc
/pulse
/client.conf
73 /etc
/pulse
/daemon.conf
78 define Package
/pulseaudio-daemon-avahi
/conffiles
79 /etc
/pulse
/client.conf
80 /etc
/pulse
/daemon.conf
85 define Package
/pulseaudio-tools
88 DEPENDS
:=+libsndfile
+pulseaudio
89 TITLE
:=Tools for Pulseaudio
90 URL
:=http
://www.pulseaudio.org
94 define Package
/pulseaudio-profiles
98 TITLE
:=Profiles for Pulseaudio
99 URL
:=http
://www.pulseaudio.org
103 $(if
$(findstring neon
,$(CONFIG_TARGET_OPTIMIZATION
)),--enable-neon-opt
,--disable-neon-opt
) \
104 --with-system-user
=pulse \
105 --with-system-group
=pulse \
106 --with-access-group
=audio \
107 --with-database
=simple \
113 --enable-oss-output \
114 --disable-oss-wrapper \
115 --disable-samplerate \
116 --disable-per-user-esound-socket \
129 ifeq ($(BUILD_VARIANT
),avahi
)
135 ifeq ($(BUILD_VARIANT
),noavahi
)
142 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
144 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
145 TARGET_CFLAGS
+= -std
=gnu99
147 define Build
/InstallDev
149 $(1)/usr
/lib
/pkgconfig \
150 $(1)/usr
/include/pulse \
152 $(1)/usr
/lib
/pulseaudio
154 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
155 $(1)/usr
/include/pulse
157 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
158 $(1)/usr
/lib
/pkgconfig
160 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
163 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
164 $(1)/usr
/lib
/pulseaudio
/
167 define Package
/pulseaudio-daemon
/install
173 $(1)/usr
/lib
/pulseaudio \
174 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
177 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
178 $(1)/usr
/bin
/pulseaudio
181 .
/files
/pulseaudio.init \
182 $(1)/etc
/init.d
/pulseaudio
185 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
189 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
193 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
194 $(1)/usr
/lib
/pulseaudio
/
197 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
201 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
202 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
206 define Package
/pulseaudio-daemon-avahi
/install
212 $(1)/usr
/lib
/pulseaudio \
213 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules \
214 $(1)/etc
/dbus-1
/system.d
217 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
218 $(1)/usr
/bin
/pulseaudio
221 .
/files
/pulseaudio.init \
222 $(1)/etc
/init.d
/pulseaudio
225 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
229 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
233 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
234 $(1)/usr
/lib
/pulseaudio
/
237 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
241 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
242 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
245 $(PKG_INSTALL_DIR
)/etc
/dbus-1
/system.d
/pulseaudio-system.conf \
246 $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
249 define Package
/pulseaudio-tools
/install
254 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
258 define Package
/pulseaudio-profiles
/install
260 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
261 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
264 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
265 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
268 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
269 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
272 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
273 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
274 $(eval
$(call BuildPackage
,pulseaudio-tools
))
275 $(eval
$(call BuildPackage
,pulseaudio-profiles
))