2007-12-29 02:01:56 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2007-2009 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-06-24 13:20:29 +00:00
|
|
|
PKG_VERSION:=0.9.23
|
2011-07-26 12:41:43 +00:00
|
|
|
PKG_RELEASE:=2
|
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/
|
|
|
|
PKG_MD5SUM:=7391205a337d1e04a9ff38025f684034
|
2008-04-11 11:30:26 +00:00
|
|
|
|
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)
|
2007-12-29 02:01:56 +00:00
|
|
|
define Package/pulseaudio
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2011-07-26 12:41:43 +00:00
|
|
|
DEPENDS:=+libspeexdsp +libsndfile +libsamplerate \
|
2011-04-13 09:46:15 +00:00
|
|
|
+libltdl +libpthread +librt +alsa-lib \
|
2011-07-11 09:03:47 +00:00
|
|
|
@!UCLIBC_VERSION_0_9_30_1 @!UCLIBC_VERSION_0_9_30_2 \
|
|
|
|
@!UCLIBC_VERSION_0_9_30_3 \
|
2011-04-13 09:46:15 +00:00
|
|
|
$(ICONV_DEPENDS) $(INTL_DEPENDS)
|
2007-12-29 02:01:56 +00:00
|
|
|
TITLE:=Network sound server
|
|
|
|
URL:=http://www.pulseaudio.org
|
|
|
|
endef
|
|
|
|
|
2010-12-01 01:19:47 +00:00
|
|
|
define Package/pa-tools
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2011-07-26 12:41:43 +00:00
|
|
|
DEPENDS:=+libsndfile +pulseaudio #+libpulse
|
2010-12-01 01:19:47 +00:00
|
|
|
TITLE:=Tools for Pulseaudio
|
|
|
|
URL:=http://www.pulseaudio.org
|
|
|
|
endef
|
|
|
|
|
2007-12-29 02:01:56 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-system-user=root \
|
|
|
|
--with-system-group=root \
|
|
|
|
--with-access-group=root \
|
2010-12-20 18:15:40 +00:00
|
|
|
--enable-alsa \
|
2011-07-26 10:41:39 +00:00
|
|
|
--disable-avahi \
|
2011-04-13 09:46:15 +00:00
|
|
|
--disable-dbus \
|
2008-02-29 19:47:37 +00:00
|
|
|
--disable-hal \
|
|
|
|
--disable-gconf \
|
|
|
|
--disable-tcpwrap \
|
2008-12-02 16:30:08 +00:00
|
|
|
--disable-nls \
|
|
|
|
--disable-solaris \
|
|
|
|
--disable-glib2 \
|
|
|
|
--disable-jack \
|
|
|
|
--disable-asyncns \
|
|
|
|
--disable-lirc \
|
|
|
|
--disable-bluez \
|
|
|
|
--without-caps
|
2008-04-11 11:30:26 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
2008-12-02 16:30:08 +00:00
|
|
|
PKG_CONFIG_PATH="$(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
|
|
|
|
|
2010-12-01 01:19:47 +00:00
|
|
|
define Package/pulseaudio/install
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin \
|
|
|
|
$(1)/usr/lib \
|
|
|
|
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules \
|
2011-03-03 00:41:26 +00:00
|
|
|
$(1)/etc/pulse \
|
|
|
|
$(1)/etc/init.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-02-05 19:46:49 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/lib*.so \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pulse-$(PKG_VERSION)/modules/module*.so \
|
2010-12-01 01:19:47 +00:00
|
|
|
$(1)/usr/lib/pulse-$(PKG_VERSION)/modules/
|
2007-12-29 02:01:56 +00:00
|
|
|
endef
|
|
|
|
|
2010-12-01 01:19:47 +00:00
|
|
|
define Package/pa-tools/install
|
|
|
|
$(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
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,pulseaudio))
|
2010-12-01 01:19:47 +00:00
|
|
|
$(eval $(call BuildPackage,pa-tools))
|