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.gz
15 PKG_SOURCE_URL
:=http
://freedesktop.org
/software
/pulseaudio
/releases
/
16 PKG_MD5SUM
:=1b76932ca7c4b2aa992941e41ed4594b
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
$(ICONV_DEPENDS
) $(INTL_DEPENDS
) \
34 @
!UCLIBC_VERSION_0_9_30_1 @
!UCLIBC_VERSION_0_9_30_2 \
35 @
!UCLIBC_VERSION_0_9_30_3
36 TITLE
:=Network sound server
37 URL
:=http
://www.pulseaudio.org
40 define Package
/pulseaudio-daemon
41 $(call Package
/pulseaudio
/Default
)
45 define Package
/pulseaudio-daemon-avahi
46 $(call Package
/pulseaudio
/Default
)
47 DEPENDS
+=+dbus
+libavahi-client
+avahi-daemon-dbus
52 define Package
/pulseaudio
/Default
/description
53 PulseAudio
(formerly Polypaudio
) is a cross-platform
, networked sound server.
56 define Package
/pulseaudio-daemon
/description
57 $(call Package
/pulseaudio
/Default
/description
)
60 define Package
/pulseaudio-daemon-avahi
/description
61 $(call Package
/pulseaudio
/Default
/description
)
62 This package is compiled against dbus and avahi.
65 define Package
/pulseaudio-daemon
/conffiles
66 /etc
/pulse
/client.conf
67 /etc
/pulse
/daemon.conf
72 define Package
/pulseaudio-daemon-avahi
/conffiles
73 /etc
/pulse
/client.conf
74 /etc
/pulse
/daemon.conf
79 define Package
/pulseaudio-tools
82 DEPENDS
:=+libsndfile @PACKAGE_pulseaudio-daemon||PACKAGE_pulseaudio-daemon-avahi
#+libpulse
83 TITLE
:=Tools for Pulseaudio
84 URL
:=http
://www.pulseaudio.org
88 define Package
/pulseaudio-profiles
91 DEPENDS
:=@PACKAGE_pulseaudio-daemon||PACKAGE_pulseaudio-daemon-avahi
92 TITLE
:=Profiles for Pulseaudio
93 URL
:=http
://www.pulseaudio.org
97 --with-system-user
=pulse \
98 --with-system-group
=pulse \
99 --with-access-group
=audio \
100 --with-database
=simple \
107 --enable-oss-output \
108 --disable-oss-wrapper \
109 --disable-samplerate \
110 --disable-per-user-esound-socket \
119 ifeq ($(BUILD_VARIANT
),avahi
)
125 ifeq ($(BUILD_VARIANT
),noavahi
)
132 PKG_CONFIG_LIBDIR
="$(STAGING_DIR)/usr/lib/pkgconfig"
134 #SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
135 TARGET_CFLAGS
+= -std
=gnu99
137 define Build
/InstallDev
139 $(1)/usr
/lib
/pkgconfig \
140 $(1)/usr
/include/pulse \
143 $(PKG_INSTALL_DIR
)/usr
/include/pulse
/* \
144 $(1)/usr
/include/pulse
146 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/*.
pc \
147 $(1)/usr
/lib
/pkgconfig
149 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
153 define Package
/pulseaudio-daemon
/install
159 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
162 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
163 $(1)/usr
/bin
/pulseaudio
166 .
/files
/pulseaudio.init \
167 $(1)/etc
/init.d
/pulseaudio
170 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
174 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
178 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
182 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
183 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
185 chmod
-R
0644 $(1)/etc
/pulse
/*
188 define Package
/pulseaudio-daemon-avahi
/install
194 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules \
195 $(1)/etc
/dbus-1
/system.d
198 $(PKG_INSTALL_DIR
)/usr
/bin
/pulseaudio \
199 $(1)/usr
/bin
/pulseaudio
202 .
/files
/pulseaudio.init \
203 $(1)/etc
/init.d
/pulseaudio
206 $(PKG_INSTALL_DIR
)/etc
/pulse
/* \
210 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
214 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/lib
*.so \
218 $(PKG_INSTALL_DIR
)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/module
*.so \
219 $(1)/usr
/lib
/pulse-
$(PKG_VERSION
)/modules
/
222 $(PKG_INSTALL_DIR
)/etc
/dbus-1
/system.d
/pulseaudio-system.conf \
223 $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
225 chmod
-R
0644 $(1)/etc
/pulse
/* $(1)/etc
/dbus-1
/system.d
/pulseaudio-system.conf
228 define Package
/pulseaudio-tools
/install
233 $(PKG_INSTALL_DIR
)/usr
/bin
/pa
* \
237 define Package
/pulseaudio-profiles
/install
239 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths \
240 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
243 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/paths
/* \
244 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/paths
247 $(PKG_INSTALL_DIR
)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
/* \
248 $(1)/usr
/share
/pulseaudio
/alsa-mixer
/profile-sets
251 $(eval
$(call BuildPackage
,pulseaudio-daemon
))
252 $(eval
$(call BuildPackage
,pulseaudio-daemon-avahi
))
253 $(eval
$(call BuildPackage
,pulseaudio-tools
))
254 $(eval
$(call BuildPackage
,pulseaudio-profiles
))