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
:=http
://freedesktop.org
/software
/pulseaudio
/releases
/
16 PKG_HASH
:=a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57
17 PKG_LICENSE
:=LGPL-2.1
+
18 PKG_LICENSE_FILES
:=GPL LICENSE
20 PKG_BUILD_DEPENDS
:=intltool
/host
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/nls.mk
30 define Package
/pulseaudio
/Default
33 DEPENDS
:=+libspeexdsp
+libsndfile
+libltdl
+libpthread \
34 +librt
+alsa-lib
+libopenssl
+libwrap
+libcap
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
35 TITLE
:=Network sound server
36 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
37 URL
:=http
://www.pulseaudio.org
39 USERID
:=pulse
=51:pulse
=51
42 define Package
/pulseaudio-daemon
43 $(call Package
/pulseaudio
/Default
)
46 define Package
/pulseaudio
/Default
/description
47 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
50 define Package
/pulseaudio-daemon
/description
51 $(call Package
/pulseaudio
/Default
/description
)
54 define Package
/pulseaudio-daemon
/conffiles
55 /etc
/pulse
/client.conf
56 /etc
/pulse
/daemon.conf
61 define Package
/pulseaudio-tools
64 DEPENDS
:=+libsndfile
+pulseaudio
65 TITLE
:=Tools for Pulseaudio
66 URL
:=http
://www.pulseaudio.org
69 define Package
/pulseaudio-profiles
73 TITLE
:=Profiles for Pulseaudio
74 URL
:=http
://www.pulseaudio.org
78 --with-system-user
=pulse \
79 --with-system-group
=pulse \
80 --with-access-group
=audio \
81 --with-database
=simple \
88 --disable-oss-wrapper \
89 --disable-samplerate \
90 --disable-per-user-esound-socket \
105 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
107 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
108 TARGET_CFLAGS
+= -std
=gnu99
110 define Build
/InstallDev
112 $(1)/usr
/lib
/pkgconfig \
113 $(1)/usr
/include/pulse \
115 $(1)/usr
/lib
/pulseaudio
117 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
118 $(1)/usr
/include/pulse
120 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
121 $(1)/usr
/lib
/pkgconfig
123 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
126 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
127 $(1)/usr
/lib
/pulseaudio
/
130 define Package
/pulseaudio-daemon
/install
136 $(1)/usr
/lib
/pulseaudio \
137 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
140 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
141 $(1)/usr
/bin
/pulseaudio
144 .
/files
/pulseaudio.init \
145 $(1)/etc
/init.d
/pulseaudio
148 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
152 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
156 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
157 $(1)/usr
/lib
/pulseaudio
/
160 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
164 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
165 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
169 define Package
/pulseaudio-tools
/install
174 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
178 define Package
/pulseaudio-profiles
/install
180 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
181 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
184 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
185 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
188 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
189 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
192 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
193 $(eval
$(call BuildPackage
,pulseaudio-tools
))
194 $(eval
$(call BuildPackage
,pulseaudio-profiles
))