2 # Copyright (C) 2011 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_MD5SUM
:=33e85023259d530f0a763d5204e8bad9
18 PKG_BUILD_DIR
=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_BUILD_DEPENDS
:=intltool
/host
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/nls.mk
28 #TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
29 define Package
/pulseaudio
/Default
32 DEPENDS
:=+libspeexdsp
+libsndfile
+libltdl
+libpthread \
33 +librt
+alsa-lib
+libjson
+libopenssl
+udev
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
34 TITLE
:=Network sound server
35 URL
:=http
://www.pulseaudio.org
39 define Package
/pulseaudio-daemon
40 $(call Package
/pulseaudio
/Default
)
44 define Package
/pulseaudio-daemon-avahi
45 $(call Package
/pulseaudio
/Default
)
46 DEPENDS
+=+dbus
+libavahi-client
+avahi-daemon
51 define Package
/pulseaudio
/Default
/description
52 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
55 define Package
/pulseaudio-daemon
/description
56 $(call Package
/pulseaudio
/Default
/description
)
59 define Package
/pulseaudio-daemon-avahi
/description
60 $(call Package
/pulseaudio
/Default
/description
)
61 This package is compiled against dbus and avahi.
64 define Package
/pulseaudio-daemon
/conffiles
65 /etc
/pulse
/client.conf
66 /etc
/pulse
/daemon.conf
71 define Package
/pulseaudio-daemon-avahi
/conffiles
72 /etc
/pulse
/client.conf
73 /etc
/pulse
/daemon.conf
78 define Package
/pulseaudio-tools
81 DEPENDS
:=+libsndfile pulseaudio
82 TITLE
:=Tools for Pulseaudio
83 URL
:=http
://www.pulseaudio.org
87 define Package
/pulseaudio-profiles
91 TITLE
:=Profiles for Pulseaudio
92 URL
:=http
://www.pulseaudio.org
96 --with-system-user
=pulse \
97 --with-system-group
=pulse \
98 --with-access-group
=audio \
99 --with-database
=simple \
106 --enable-oss-output \
107 --disable-oss-wrapper \
108 --disable-samplerate \
109 --disable-per-user-esound-socket \
120 ifeq ($(BUILD_VARIANT
),avahi
)
126 ifeq ($(BUILD_VARIANT
),noavahi
)
133 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
135 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
136 TARGET_CFLAGS
+= -std
=gnu99
138 define Build
/InstallDev
140 $(1)/usr
/lib
/pkgconfig \
141 $(1)/usr
/include/pulse \
144 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
145 $(1)/usr
/include/pulse
147 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
148 $(1)/usr
/lib
/pkgconfig
150 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
154 define Package
/pulseaudio-daemon
/install
160 $(1)/usr
/lib
/pulseaudio \
161 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
164 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
165 $(1)/usr
/bin
/pulseaudio
168 .
/files
/pulseaudio.init \
169 $(1)/etc
/init.d
/pulseaudio
172 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
176 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
180 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
181 $(1)/usr
/lib
/pulseaudio
/
184 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
188 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
189 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
191 chmod
-R
0644 $(1)/etc
/pulse
/*
194 define Package
/pulseaudio-daemon-avahi
/install
200 $(1)/usr
/lib
/pulseaudio \
201 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules \
202 $(1)/etc
/dbus-1
/system.d
205 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
206 $(1)/usr
/bin
/pulseaudio
209 .
/files
/pulseaudio.init \
210 $(1)/etc
/init.d
/pulseaudio
213 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
217 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
221 $(PKG_INSTALL_DIR
)/usr
/lib
/pulseaudio
/* \
222 $(1)/usr
/lib
/pulseaudio
/
225 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
229 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
230 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
233 $(PKG_INSTALL_DIR
)/etc
/dbus-1
/system.d
/pulseaudio-system.conf \
234 $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
236 chmod
-R
0644 $(1)/etc
/pulse
/* $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
239 define Package
/pulseaudio-tools
/install
244 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
248 define Package
/pulseaudio-profiles
/install
250 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
251 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
254 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
255 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
258 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
259 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
262 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
263 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
264 $(eval
$(call BuildPackage
,pulseaudio-tools
))
265 $(eval
$(call BuildPackage
,pulseaudio-profiles
))