Mercurial > vanilla
changeset 611:6f1b622c15ef
audio/pulseaudio: initial import, closes #1565
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 19 Jul 2019 18:52:04 +0200 |
parents | e7d10cffeaaf |
children | 8580d997f05b |
files | UIDS.md audio/pulseaudio/pulseaudio.sh |
diffstat | 2 files changed, 159 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/UIDS.md Fri Jul 19 18:35:24 2019 +0200 +++ b/UIDS.md Fri Jul 19 18:52:04 2019 +0200 @@ -8,7 +8,10 @@ The following UID/GID are defined: -| uid | gid | package(s) | -|---------------|---------------|------------| -| sshd (100) | sshd (100) | openssh | -| polkitd (101) | polkitd (101) | polkit | +| uid | gid | package(s) | +|---------------|--------------------|------------------| +| sshd (100) | sshd (100) | network/openssh | +| polkitd (101) | polkitd (101) | security/polkit | +| pulse (102) | pulse (102) | audio/pulseaudio | +| | pulse-rt (103) | audio/pulseaudio | +| | pulse-access (104) | audio/pulseaudio |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audio/pulseaudio/pulseaudio.sh Fri Jul 19 18:52:04 2019 +0200 @@ -0,0 +1,152 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier <markand@malikania.fr> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +PKGNAME=pulseaudio +PKGVERSION=12.2 +PKGREVISION=1 +PKGLICENSE="LGPLv21+" +PKGSUMMARY="general-purpose sound server" +PKGDOWNLOAD="https://www.freedesktop.org/software/$PKGNAME/releases/$PKGNAME-$PKGVERSION.tar.xz" +PKGOPTIONS="ALSA AVAHI BLUEZ GTK IPV6 JACK NLS OSS SSL UDEV X" +PKGUIDS="pulse:102" +PKGGIDS="pulse:102 pulse-rt:103 pulse-access:104" + +: ${CHOST:=$(uname -m)-linux-musl} +: ${CBUILD:=$(uname -m)-linux-musl} +: ${CC:=clang} +: ${CFLAGS:=-O2} +: ${LDFLAGS:=} +: ${LIBS:=} +: ${ALSA:=yes} +: ${AVAHI:=yes} +: ${BLUEZ:=yes} +: ${GTK:=yes} +: ${IPV6:=yes} +: ${JACK:=yes} +: ${NLS:=yes} +: ${OSS:=yes} +: ${SSL:=yes} +: ${UDEV:=yes} +: ${X:=yes} + +if [ "$ALSA" = "yes" ]; then + PKGDEPENDS="audio/alsa-lib $PKGDEPENDS" + with_alsa="--enable-alsa" +else + with_alsa="--disable-alsa" +fi + +if [ "$AVAHI" = "yes" ]; then + PKGDEPENDS="network/avahi $PKGDEPENDS" + with_avahi="--enable-avahi" +else + with_avahi="--disable-avahi" +fi + +if [ "$BLUEZ" = "yes" ]; then + PKGDEPENDS="bluetooth/bluez $PKGDEPENDS" + with_bluez="--enable-bluez5" +else + with_bluez="--disable-bluez5" +fi + +if [ "$GTK" = "yes" ]; then + PKGDEPENDS="graphics/gtk accessibility/at-spi2-atk $PKGDEPENDS" + with_gtk="--enable-gtk3" +else + with_gtk="--disable-gtk3" +fi + +if [ "$IPV6" = "yes" ]; then + with_ipv6="--enable-ipv6" +else + with_ipv6="--disable-ipv6" +fi + +if [ "$JACK" = "yes" ]; then + PKGDEPENDS="audio/jack $PKGDEPENDS" + with_jack="--enable-jack" +else + with_jack="--disable-jack" +fi + +if [ "$NLS" = "yes" ]; then + PKGDEPENDS="core/gettext:build $PKGDEPENDS" + with_nls="--enable-nls" +else + with_nls="--disable-nls" +fi + +if [ "$OSS" = "yes" ]; then + with_oss="--enable-oss-output --enable-oss-wrapper" +else + with_oss="--disable-oss-output --disable-oss-wrapper" +fi + +if [ "$SSL" = "yes" ]; then + PKGDEPENDS="crypto/openssl $PKGDEPENDS" + with_ssl="--enable-openssl" +else + with_ssl="--disable-openssl" +fi + +if [ "$UDEV" = "yes" ]; then + PKGDEPENDS="core/eudev $PKGDEPENDS" + with_udev="--enable-udev" +else + with_udev="--disable-udev" +fi + +if [ "$X" = "yes" ]; then + PKGDEPENDS="x11/libx11 x11/libxcb x11/libice x11/libsm x11/libxtst" + with_x="--enable-x11" +else + with_x="--disable-x11" +fi + +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.xz + cd $PKGNAME-$PKGVERSION + + CC="$CC" \ + CFLAGS="$CFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix= \ + --disable-bluez4 \ + $with_alsa \ + $with_avahi \ + $with_bluez \ + $with_gtk \ + $with_ipv6 \ + $with_jack \ + $with_nls \ + $with_oss \ + $with_ssl \ + $with_udev \ + $with_x + make + make install DESTDIR=$DESTDIR + + cd .. + rm -rf $PKGNAME-$PKGVERSION +}