new package: add package 'pulseaudio', disabled per default

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-09-28 04:48:42 +02:00
parent 95e318b8cc
commit b6ce821ef6
10 changed files with 217 additions and 0 deletions

98
packages/audio/pulseaudio/build Executable file
View File

@ -0,0 +1,98 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options $1
# pulseaudio fails to build with LTO support
strip_lto
# dont build parallel
# MAKEFLAGS=-j1
if [ "$AVAHI_DAEMON" = yes ]; then
PULSEAUDIO_AVAHI="--enable-avahi"
else
PULSEAUDIO_AVAHI="--disable-avahi"
fi
cd $PKG_BUILD
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-shared \
--disable-silent-rules \
--disable-nls \
--enable-largefile \
--disable-rpath \
--disable-x11 \
--disable-samplerate \
--disable-oss-output \
--disable-oss-wrapper \
--disable-coreaudio-output \
--enable-alsa \
--disable-solaris \
--disable-waveout \
--disable-glib2 \
--disable-gtk2 \
--disable-gconf \
$PULSEAUDIO_AVAHI \
--disable-jack \
--disable-asyncns \
--disable-tcpwrap \
--disable-lirc \
--enable-dbus \
--disable-hal \
--disable-bluez \
--enable-udev \
--disable-hal-compat \
--enable-ipv6 \
--enable-openssl \
--disable-orc \
--disable-manpages \
--disable-per-user-esound-socket \
--disable-legacy-runtime-dir \
--disable-legacy-database-entry-format \
--with-system-user=pulse \
--with-system-group=pulse \
--with-access-group=pulse-access \
--with-module-dir="/usr/lib/pulse" \
# --with-system-user=root \
# --with-system-group=root \
# --with-access-group=root \
make
mkdir -p $SYSROOT_PREFIX/usr/lib
cp -P src/.libs/libpulse.so* $SYSROOT_PREFIX/usr/lib
cp -P src/.libs/libpulse-simple.so* $SYSROOT_PREFIX/usr/lib
mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
cp libpulse.pc $SYSROOT_PREFIX/usr/lib/pkgconfig
cp libpulse-simple.pc $SYSROOT_PREFIX/usr/lib/pkgconfig
make DESTDIR="$SYSROOT_PREFIX" -C src install-pulseincludeHEADERS

View File

@ -0,0 +1,56 @@
#!/bin/sh
. config/options $1
add_user pulse x 499 498 "PulseAudio System Daemon" "/var/run/pulse" "/bin/sh"
add_group pulse 498
add_group pulse-access 497
mkdir -p $INSTALL/etc/dbus-1/system.d
cp $PKG_BUILD/src/daemon/pulseaudio-system.conf $INSTALL/etc/dbus-1/system.d
# sed -e 's%user="pulse"%user="root"%g' -i $INSTALL/etc/dbus-1/system.d/pulseaudio-system.conf
mkdir -p $INSTALL/etc/pulse
cp $PKG_BUILD/src/client.conf $INSTALL/etc/pulse
cp $PKG_BUILD/src/daemon.conf $INSTALL/etc/pulse
cp $PKG_BUILD/src/default.pa $INSTALL/etc/pulse
# cp $PKG_DIR/config/default.pa $INSTALL/etc/pulse
cp $PKG_BUILD/src/system.pa $INSTALL/etc/pulse
mkdir -p $INSTALL/lib/udev/rules.d
cp $PKG_BUILD/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules $INSTALL/lib/udev/rules.d
mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/src/.libs/pacat $INSTALL/usr/bin
cp $PKG_BUILD/src/.libs/pacmd $INSTALL/usr/bin
cp $PKG_BUILD/src/.libs/pactl $INSTALL/usr/bin
ln -sf pactl $INSTALL/usr/bin/pamon
ln -sf pactl $INSTALL/usr/bin/paplay
ln -sf pactl $INSTALL/usr/bin/parec
ln -sf pactl $INSTALL/usr/bin/parecord
cp $PKG_BUILD/src/.libs/pasuspender $INSTALL/usr/bin
cp $PKG_BUILD/src/.libs/pulseaudio $INSTALL/usr/bin
# cp $PKG_BUILD/src/start-pulseaudio-x11 $INSTALL/usr/bin
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/src/.libs/libpulse*.so* $INSTALL/usr/lib
rm -rf $INSTALL/usr/lib/libpulse*.so*T
mkdir -p $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libalsa-util.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libavahi-wrap.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libcli.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libprotocol-cli.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libprotocol-esound.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libprotocol-http.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libprotocol-native.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libprotocol-simple.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/libraop.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/librtp.so $INSTALL/usr/lib/pulse
cp -P $PKG_BUILD/src/.libs/module-*.so $INSTALL/usr/lib/pulse
mkdir -p $INSTALL/usr/share/pulseaudio/alsa-mixer/paths
cp $PKG_BUILD/src/modules/alsa/mixer/paths/* $INSTALL/usr/share/pulseaudio/alsa-mixer/paths
mkdir -p $INSTALL/usr/share/pulseaudio/alsa-mixer/profile-sets
cp $PKG_BUILD/src/modules/alsa/mixer/profile-sets/*.conf $INSTALL/usr/share/pulseaudio/alsa-mixer/profile-sets

View File

@ -0,0 +1,42 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
PKG_NAME="pulseaudio"
PKG_VERSION="1.0"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://pulseaudio.org/"
PKG_URL="http://freedesktop.org/software/pulseaudio/releases/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="libtool json-c alsa-lib libsndfile speex dbus udev openssl"
PKG_BUILD_DEPENDS="toolchain libtool json-c alsa-lib libsndfile speex dbus udev openssl"
PKG_PRIORITY="optional"
PKG_SECTION="audio"
PKG_SHORTDESC="pulseaudio: Yet another sound server for Unix"
PKG_LONGDESC="PulseAudio is a sound server for Linux and other Unix-like operating systems. It is intended to be an improved drop-in replacement for the Enlightened Sound Daemon (esound or esd). In addition to the features esound provides, PulseAudio has an extensible plugin architecture, support for more than one sink per source, better low-latency behavior, the ability to be embedded into other software, a completely asynchronous C API, a simple command line interface for reconfiguring the daemon while running, flexible and implicit sample type conversion and resampling, and a "Zero-Copy" architecture."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
if [ "$AVAHI_DAEMON" = yes ]; then
PKG_DEPENDS="$PKG_DEPENDS avahi"
PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS avahi"
fi

View File

@ -123,6 +123,9 @@
# build and install 'ProjectM' Visualization (yes / no)
XBMC_VIS_PROJECTM="yes"
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="no"
# build and install with non-free support
# (RAR compression support in XBMC) (yes / no)
NONFREE_SUPPORT="yes"

View File

@ -123,6 +123,9 @@
# build and install 'ProjectM' Visualization (yes / no)
XBMC_VIS_PROJECTM="yes"
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="no"
# build and install with non-free support
# (RAR compression support in XBMC) (yes / no)
NONFREE_SUPPORT="yes"

View File

@ -123,6 +123,9 @@
# build and install 'ProjectM' Visualization (yes / no)
XBMC_VIS_PROJECTM="yes"
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="no"
# build and install with non-free support
# (RAR compression support in XBMC) (yes / no)
NONFREE_SUPPORT="yes"

View File

@ -123,6 +123,9 @@
# build and install 'ProjectM' Visualization (yes / no)
XBMC_VIS_PROJECTM="yes"
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="no"
# build and install with non-free support
# (RAR compression support in XBMC) (yes / no)
NONFREE_SUPPORT="yes"

View File

@ -123,6 +123,9 @@
# build and install 'ProjectM' Visualization (yes / no)
XBMC_VIS_PROJECTM="yes"
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="no"
# build and install with non-free support
# (RAR compression support in XBMC) (yes / no)
NONFREE_SUPPORT="yes"

View File

@ -123,6 +123,9 @@
# build and install 'ProjectM' Visualization (yes / no)
XBMC_VIS_PROJECTM="yes"
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="no"
# build and install with non-free support
# (RAR compression support in XBMC) (yes / no)
NONFREE_SUPPORT="yes"

View File

@ -123,6 +123,9 @@
# build and install 'ProjectM' Visualization (yes / no)
XBMC_VIS_PROJECTM="yes"
# build and install PulseAudio support (yes / no)
PULSEAUDIO_SUPPORT="no"
# build and install with non-free support
# (RAR compression support in XBMC) (yes / no)
NONFREE_SUPPORT="yes"