2007-12-29 02:01:56 +00:00
|
|
|
#
|
2011-08-16 14:12:48 +00:00
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
2007-12-29 02:01:56 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pulseaudio
|
2011-10-20 14:10:45 +00:00
|
|
|
PKG_VERSION:=1.1
|
2012-01-12 09:23:11 +00:00
|
|
|
PKG_RELEASE:=6
|
2007-12-29 02:01:56 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2011-06-24 13:20:29 +00:00
|
|
|
PKG_SOURCE_URL:=http://freedesktop.org/software/pulseaudio/releases/
|
2011-10-20 14:10:45 +00:00
|
|
|
PKG_MD5SUM:=1b76932ca7c4b2aa992941e41ed4594b
|
2008-04-11 11:30:26 +00:00
|
|
|
|
2011-08-18 21:03:34 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
2010-12-19 22:04:12 +00:00
|
|
|
PKG_BUILD_DEPENDS:=intltool/host
|
|
|
|
|
2008-04-11 11:30:26 +00:00
|
|
|
PKG_FIXUP = libtool
|
2007-12-29 02:01:56 +00:00
|
|
|
|
2010-12-01 01:19:47 +00:00
|
|
|
PKG_INSTALL = 1
|
|
|
|
|
2007-12-29 02:01:56 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-02-02 18:54:24 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2007-12-29 02:01:56 +00:00
|
|
|
|
2010-12-01 01:19:47 +00:00
|
|
|
#TODO: split pulse into executable and library (or even better into several libraries since they're used as loadable modules, so not linked into)
|
2011-08-18 13:44:20 +00:00
|
|
|
define Package/pulseaudio/Default
|
2007-12-29 02:01:56 +00:00
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2011-08-18 13:44:20 +00:00
|
|
|
DEPENDS:=+libspeexdsp +libsndfile +libltdl +libpthread \
|
|
|
|
+librt +alsa-lib +libjson $(ICONV_DEPENDS) $(INTL_DEPENDS) \
|
2011-07-11 09:03:47 +00:00
|
|
|
@!UCLIBC_VERSION_0_9_30_1 @!UCLIBC_VERSION_0_9_30_2 \
|
2011-08-18 13:44:20 +00:00
|
|
|
@!UCLIBC_VERSION_0_9_30_3
|
2007-12-29 02:01:56 +00:00
|
|
|
TITLE:=Network sound server
|
|
|
|
URL:=http://www.pulseaudio.org
|
|
|
|
endef
|
|
|
|
|
2011-08-18 13:44:20 +00:00
|
|
|
define Package/pulseaudio-daemon
|
|
|
|
$(call Package/pulseaudio/Default)
|
|
|
|
VARIANT:=noavahi
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio-daemon-avahi
|
|
|
|
$(call Package/pulseaudio/Default)
|
2012-01-12 09:23:11 +00:00
|
|
|
DEPENDS+=+dbus +libavahi-client +avahi-daemon
|
2011-08-18 13:44:20 +00:00
|
|
|
TITLE+= (avahi)
|
|
|
|
VARIANT:=avahi
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio/Default/description
|
|
|
|
PulseAudio (formerly Polypaudio) is a cross-platform, networked sound server.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio-daemon/description
|
|
|
|
$(call Package/pulseaudio/Default/description)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio-daemon-avahi/description
|
|
|
|
$(call Package/pulseaudio/Default/description)
|
|
|
|
This package is compiled against dbus and avahi.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio-daemon/conffiles
|
|
|
|
/etc/pulse/client.conf
|
|
|
|
/etc/pulse/daemon.conf
|
|
|
|
/etc/pulse/default.pa
|
|
|
|
/etc/pulse/system.pa
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio-daemon-avahi/conffiles
|
|
|
|
/etc/pulse/client.conf
|
|
|
|
/etc/pulse/daemon.conf
|
|
|
|
/etc/pulse/default.pa
|
|
|
|
/etc/pulse/system.pa
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio-tools
|
2010-12-01 01:19:47 +00:00
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2011-08-18 13:44:20 +00:00
|
|
|
DEPENDS:=+libsndfile @PACKAGE_pulseaudio-daemon||PACKAGE_pulseaudio-daemon-avahi #+libpulse
|
2010-12-01 01:19:47 +00:00
|
|
|
TITLE:=Tools for Pulseaudio
|
|
|
|
URL:=http://www.pulseaudio.org
|
2011-08-19 09:35:06 +00:00
|
|
|
VARIANT:=noavahi
|
2010-12-01 01:19:47 +00:00
|
|
|
endef
|
|
|
|
|
2011-08-18 13:44:20 +00:00
|
|
|
define Package/pulseaudio-profiles
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
|
|
|
DEPENDS:=@PACKAGE_pulseaudio-daemon||PACKAGE_pulseaudio-daemon-avahi
|
|
|
|
TITLE:=Profiles for Pulseaudio
|
|
|
|
URL:=http://www.pulseaudio.org
|
|
|
|
endef
|
|
|
|
|
2007-12-29 02:01:56 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2011-11-13 22:16:21 +00:00
|
|
|
--with-system-user=pulse \
|
|
|
|
--with-system-group=pulse \
|
|
|
|
--with-access-group=audio \
|
2011-08-18 13:44:20 +00:00
|
|
|
--with-database=simple \
|
2010-12-20 18:15:40 +00:00
|
|
|
--enable-alsa \
|
2008-02-29 19:47:37 +00:00
|
|
|
--disable-hal \
|
|
|
|
--disable-gconf \
|
|
|
|
--disable-tcpwrap \
|
2008-12-02 16:30:08 +00:00
|
|
|
--disable-nls \
|
2011-08-18 13:44:20 +00:00
|
|
|
--disable-manpages \
|
2011-11-13 22:16:21 +00:00
|
|
|
--enable-oss-output \
|
2011-08-18 13:44:20 +00:00
|
|
|
--disable-oss-wrapper \
|
|
|
|
--disable-samplerate \
|
|
|
|
--disable-per-user-esound-socket \
|
2008-12-02 16:30:08 +00:00
|
|
|
--disable-solaris \
|
|
|
|
--disable-glib2 \
|
|
|
|
--disable-jack \
|
|
|
|
--disable-asyncns \
|
|
|
|
--disable-lirc \
|
|
|
|
--disable-bluez \
|
|
|
|
--without-caps
|
2008-04-11 11:30:26 +00:00
|
|
|
|
2011-08-18 13:44:20 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),avahi)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-avahi \
|
|
|
|
--enable-dbus
|
|
|
|
endif
|
2012-01-12 09:18:19 +00:00
|
|
|
|
2011-08-18 13:44:20 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),noavahi)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-avahi \
|
2011-11-13 22:16:21 +00:00
|
|
|
--disable-dbus
|
2011-08-18 13:44:20 +00:00
|
|
|
endif
|
|
|
|
|
2008-04-11 11:30:26 +00:00
|
|
|
CONFIGURE_VARS += \
|
2011-08-22 06:48:56 +00:00
|
|
|
PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
|
2007-12-29 02:01:56 +00:00
|
|
|
|
2011-02-02 18:54:24 +00:00
|
|
|
#SUPP_LIBS:=-L$(INTL_PREFIX)/lib -L$(ICONV_PREFIX)/lib
|
2010-12-01 01:19:47 +00:00
|
|
|
TARGET_CFLAGS += -std=gnu99
|
|
|
|
|
2011-02-05 19:46:49 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/lib/pkgconfig \
|
|
|
|
$(1)/usr/include/pulse \
|
|
|
|
$(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/pulse/* \
|
|
|
|
$(1)/usr/include/pulse
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
|
|
|
|
$(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2011-08-18 13:44:20 +00:00
|
|
|
define Package/pulseaudio-daemon/install
|
2010-12-01 01:19:47 +00:00
|
|
|
$(INSTALL_DIR) \
|
2011-08-18 13:44:20 +00:00
|
|
|
$(1)/etc/pulse \
|
|
|
|
$(1)/etc/init.d \
|
2010-12-01 01:19:47 +00:00
|
|
|
$(1)/usr/bin \
|
|
|
|
$(1)/usr/lib \
|
2011-09-27 09:49:50 +00:00
|
|
|
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules
|
2011-08-18 13:44:20 +00:00
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
|
|
|
|
$(1)/usr/bin/pulseaudio
|
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
./files/pulseaudio.init \
|
|
|
|
$(1)/etc/init.d/pulseaudio
|
|
|
|
|
|
|
|
$(INSTALL_CONF) \
|
|
|
|
$(PKG_INSTALL_DIR)/etc/pulse/* \
|
|
|
|
$(1)/etc/pulse
|
|
|
|
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(CP) \
|
2011-09-27 09:49:50 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
|
2011-08-18 13:44:20 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(CP) \
|
2011-09-27 09:49:50 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
|
|
|
|
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
|
2012-01-12 09:18:19 +00:00
|
|
|
|
|
|
|
chmod -R 0644 $(1)/etc/pulse/*
|
2011-08-18 13:44:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pulseaudio-daemon-avahi/install
|
|
|
|
$(INSTALL_DIR) \
|
2011-03-03 00:41:26 +00:00
|
|
|
$(1)/etc/pulse \
|
2011-08-18 13:44:20 +00:00
|
|
|
$(1)/etc/init.d \
|
|
|
|
$(1)/usr/bin \
|
|
|
|
$(1)/usr/lib \
|
2011-09-27 09:49:50 +00:00
|
|
|
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
|
2011-08-18 13:44:20 +00:00
|
|
|
$(1)/etc/dbus-1/system.d
|
2010-12-01 01:19:47 +00:00
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/pulseaudio \
|
|
|
|
$(1)/usr/bin/pulseaudio
|
2008-02-29 19:47:37 +00:00
|
|
|
|
2011-03-03 00:41:26 +00:00
|
|
|
$(INSTALL_BIN) \
|
2011-03-05 01:23:57 +00:00
|
|
|
./files/pulseaudio.init \
|
2011-03-03 00:41:26 +00:00
|
|
|
$(1)/etc/init.d/pulseaudio
|
|
|
|
|
2010-12-01 01:19:47 +00:00
|
|
|
$(INSTALL_CONF) \
|
|
|
|
$(PKG_INSTALL_DIR)/etc/pulse/* \
|
|
|
|
$(1)/etc/pulse
|
|
|
|
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(CP) \
|
2011-09-27 09:49:50 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
|
2011-02-05 19:46:49 +00:00
|
|
|
$(1)/usr/lib/
|
2011-08-18 13:44:20 +00:00
|
|
|
|
2011-02-05 19:46:49 +00:00
|
|
|
$(CP) \
|
2011-09-27 09:49:50 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
|
|
|
|
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
|
2011-08-18 13:44:20 +00:00
|
|
|
|
|
|
|
$(INSTALL_CONF) \
|
|
|
|
$(PKG_INSTALL_DIR)/etc/dbus-1/system.d/pulseaudio-system.conf \
|
|
|
|
$(1)/etc/dbus-1/system.d/pulseaudio-system.conf
|
2012-01-12 09:18:19 +00:00
|
|
|
|
|
|
|
chmod -R 0644 $(1)/etc/pulse/* $(1)/etc/dbus-1/system.d/pulseaudio-system.conf
|
2007-12-29 02:01:56 +00:00
|
|
|
endef
|
|
|
|
|
2011-08-18 13:44:20 +00:00
|
|
|
define Package/pulseaudio-tools/install
|
2010-12-01 01:19:47 +00:00
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin
|
|
|
|
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/pa* \
|
|
|
|
$(1)/usr/bin/
|
2007-12-29 02:01:56 +00:00
|
|
|
endef
|
|
|
|
|
2011-08-18 13:44:20 +00:00
|
|
|
define Package/pulseaudio-profiles/install
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/share/pulseaudio/alsa-mixer/paths \
|
|
|
|
$(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
|
|
|
|
|
|
|
|
$(INSTALL_CONF) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/paths/* \
|
|
|
|
$(1)/usr/share/pulseaudio/alsa-mixer/paths
|
|
|
|
|
|
|
|
$(INSTALL_CONF) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/* \
|
|
|
|
$(1)/usr/share/pulseaudio/alsa-mixer/profile-sets
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,pulseaudio-daemon))
|
|
|
|
$(eval $(call BuildPackage,pulseaudio-daemon-avahi))
|
|
|
|
$(eval $(call BuildPackage,pulseaudio-tools))
|
|
|
|
$(eval $(call BuildPackage,pulseaudio-profiles))
|