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
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=https
://freedesktop.org
/software
/pulseaudio
/releases
16 PKG_HASH
:=75d3f7742c1ae449049a4c88900e454b8b350ecaa8c544f3488a2562a9ff66f1
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
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
+libpthread
+librt
+alsa-lib \
33 +libopenssl
+libcap
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
34 TITLE
:=Network sound server
35 URL
:=https
://www.pulseaudio.org
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
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
/conffiles
= $(Package
/pulseaudio-daemon-avahi
/conffiles
)
71 define Package
/pulseaudio-tools
74 DEPENDS
:=+libsndfile pulseaudio
75 TITLE
:=Tools for Pulseaudio
76 URL
:=http
://www.pulseaudio.org
80 define Package
/pulseaudio-profiles
84 TITLE
:=Profiles for Pulseaudio
85 URL
:=http
://www.pulseaudio.org
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
126 ifeq ($(BUILD_VARIANT
),avahi
)
133 ifeq ($(BUILD_VARIANT
),noavahi
)
140 TARGET_LDFLAGS
+= -Wl
,--gc-sections
$(if
$(INTL_FULL
),-lintl
)
143 $(call Build
/Prepare
/Default
)
144 ifneq ($(findstring arm
,$(CONFIG_ARCH
)),)
145 ifeq ($(findstring neon
,$(CONFIG_CPU_TYPE
)),)
146 $(SED
) '/remap_neon\.c/d' $(PKG_BUILD_DIR
)/src
/pulsecore
/meson.build
151 define Build
/InstallDev
152 $(INSTALL_DIR
) $(1)/usr
/include/pulse
153 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* $(1)/usr
/include/pulse
155 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
156 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc $(1)/usr
/lib
/pkgconfig
157 $(SED
) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr
/lib
/pkgconfig
/libpulse.
pc
158 $(SED
) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr
/lib
/pkgconfig
/libpulse.
pc
159 $(SED
) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr
/lib
/pkgconfig
/libpulse-simple.
pc
160 $(SED
) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr
/lib
/pkgconfig
/libpulse-simple.
pc
162 $(INSTALL_DIR
) $(1)/usr
/lib
163 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
165 $(INSTALL_DIR
) $(1)/usr
/lib
/pulseaudio
166 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* $(1)/usr
/lib
/pulseaudio
/
169 define Package
/pulseaudio-daemon
/install
170 $(INSTALL_DIR
) $(1)/usr
/bin
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio
$(1)/usr
/bin
/pulseaudio
173 $(INSTALL_DIR
) $(1)/etc
/init.d
174 $(INSTALL_BIN
) .
/files
/pulseaudio.init
$(1)/etc
/init.d
/pulseaudio
176 $(INSTALL_DIR
) $(1)/etc
/pulse
177 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/pulse
/* $(1)/etc
/pulse
179 $(INSTALL_DIR
) $(1)/usr
/lib
180 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
182 $(INSTALL_DIR
) $(1)/usr
/lib
/pulseaudio
183 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* $(1)/usr
/lib
/pulseaudio
/
185 $(INSTALL_DIR
) $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
186 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so
$(1)/usr
/lib
/
187 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so
$(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
190 define Package
/pulseaudio-daemon-avahi
/install
191 $(call Package
/pulseaudio-daemon
/install,$1)
193 $(INSTALL_DIR
) $(1)/etc
/dbus-1
/system.d
194 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
$(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
197 define Package
/pulseaudio-tools
/install
198 $(INSTALL_DIR
) $(1)/usr
/bin
199 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* $(1)/usr
/bin
/
202 define Package
/pulseaudio-profiles
/install
203 $(INSTALL_DIR
) $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
204 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
206 $(INSTALL_DIR
) $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
207 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
210 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
211 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
212 $(eval
$(call BuildPackage
,pulseaudio-tools
))
213 $(eval
$(call BuildPackage
,pulseaudio-profiles
))