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
:=053794d6671a3e397d849e478a80b82a63cb9d8ca296bd35b73317bb5ceb87b5
18 PKG_MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=GPL LICENSE
21 PKG_CPE_ID
:=cpe
:/a
:pulseaudio
:pulseaudio
23 PKG_BUILD_FLAGS
:=no-mips16
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/nls.mk
27 include $(INCLUDE_DIR
)/meson.mk
29 define Package
/pulseaudio-daemon
/Default
32 DEPENDS
:=+libsndfile
+libltdl
+alsa-lib \
33 +libopenssl
+libcap
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
34 TITLE
:=Network sound server
35 URL
:=https
://www.freedesktop.org
/wiki
/Software
/PulseAudio
/
37 USERID
:=pulse
=51:pulse
=51
40 define Package
/pulseaudio-daemon
41 $(call Package
/pulseaudio-daemon
/Default
)
43 CONFLICTS
:=pulseaudio-daemon-avahi
46 define Package
/pulseaudio-daemon-avahi
47 $(call Package
/pulseaudio-daemon
/Default
)
48 DEPENDS
+=+dbus
+libavahi-client
+sbc
+bluez-daemon
53 define Package
/pulseaudio-daemon
/description
54 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
57 define Package
/pulseaudio-daemon-avahi
/description
58 $(call Package
/pulseaudio-daemon
/description
)
59 This package enables avahi
,bluez and is compiled against dbus
, sbc
, and avahi.
62 define Package
/pulseaudio-daemon
/conffiles
63 /etc
/pulse
/client.conf
64 /etc
/pulse
/daemon.conf
69 Package
/pulseaudio-daemon-avahi
/conffiles
= $(Package
/pulseaudio-daemon
/conffiles
)
71 define Package
/pulseaudio-tools
74 DEPENDS
:=+libsndfile pulseaudio
75 TITLE
:=Tools for Pulseaudio
76 URL
:=https
://www.freedesktop.org
/wiki
/Software
/PulseAudio
/
80 define Package
/pulseaudio-profiles
84 TITLE
:=Profiles for Pulseaudio
85 URL
:=https
://www.freedesktop.org
/wiki
/Software
/PulseAudio
/
94 -Dsystem_group
=pulse \
95 -Daccess_group
=audio \
97 -Dlegacy-database-entry-format
=false \
98 -Dstream-restore-clear-old-devices
=true \
99 -Drunning-from-build-tree
=false \
100 -Datomic-arm-linux-helpers
=false \
101 -Datomic-arm-memory-barrier
=false \
104 -Dbluez5-native-headset
=false \
105 -Dbluez5-ofono-headset
=false \
108 -Dgsettings
=disabled \
109 -Dgstreamer
=disabled \
117 -Dsamplerate
=disabled \
124 -Dwebrtc-aec
=disabled \
127 -Dbluez5-gstreamer
=disabled
129 ifeq ($(BUILD_VARIANT
),avahi
)
136 ifeq ($(BUILD_VARIANT
),noavahi
)
143 TARGET_LDFLAGS
+= -Wl
,--gc-sections
$(if
$(INTL_FULL
),-lintl
)
146 $(call Build
/Prepare
/Default
)
147 ifneq ($(findstring arm
,$(CONFIG_ARCH
)),)
148 ifeq ($(findstring neon
,$(CONFIG_CPU_TYPE
)),)
149 $(SED
) '/remap_neon\.c/d' $(PKG_BUILD_DIR
)/src
/pulsecore
/meson.build
154 define Build
/InstallDev
155 $(INSTALL_DIR
) $(1)/usr
/include/pulse
156 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* $(1)/usr
/include/pulse
158 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
159 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc $(1)/usr
/lib
/pkgconfig
160 $(SED
) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr
/lib
/pkgconfig
/libpulse.
pc
161 $(SED
) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr
/lib
/pkgconfig
/libpulse.
pc
162 $(SED
) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr
/lib
/pkgconfig
/libpulse-simple.
pc
163 $(SED
) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr
/lib
/pkgconfig
/libpulse-simple.
pc
165 $(INSTALL_DIR
) $(1)/usr
/lib
166 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
168 $(INSTALL_DIR
) $(1)/usr
/lib
/pulseaudio
169 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* $(1)/usr
/lib
/pulseaudio
/
172 define Package
/pulseaudio-daemon
/install
173 $(INSTALL_DIR
) $(1)/usr
/bin
174 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio
$(1)/usr
/bin
/pulseaudio
176 $(INSTALL_DIR
) $(1)/etc
/init.d
177 $(INSTALL_BIN
) .
/files
/pulseaudio.init
$(1)/etc
/init.d
/pulseaudio
179 $(INSTALL_DIR
) $(1)/etc
/pulse
180 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/pulse
/* $(1)/etc
/pulse
182 $(INSTALL_DIR
) $(1)/usr
/lib
183 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
185 $(INSTALL_DIR
) $(1)/usr
/lib
/pulseaudio
186 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* $(1)/usr
/lib
/pulseaudio
/
188 $(INSTALL_DIR
) $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
189 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/modules
/lib
*.so
$(1)/usr
/lib
/
190 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/modules
/module
*.so
$(1)/usr
/lib
/pulseaudio
/modules
/
193 define Package
/pulseaudio-daemon-avahi
/install
194 $(call Package
/pulseaudio-daemon
/install,$1)
196 $(INSTALL_DIR
) $(1)/usr
/share
/dbus-1
/system.d
197 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/dbus-1
/system.d
/pulseaudio-system.conf
$(1)/usr
/share
/dbus-1
/system.d
/pulseaudio-system.conf
200 define Package
/pulseaudio-tools
/install
201 $(INSTALL_DIR
) $(1)/usr
/bin
202 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* $(1)/usr
/bin
/
205 define Package
/pulseaudio-profiles
/install
206 $(INSTALL_DIR
) $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
207 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
209 $(INSTALL_DIR
) $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
210 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
213 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
214 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
215 $(eval
$(call BuildPackage
,pulseaudio-tools
))
216 $(eval
$(call BuildPackage
,pulseaudio-profiles
))