summaryrefslogtreecommitdiff
path: root/strata/sound-server-pulseaudio
diff options
context:
space:
mode:
Diffstat (limited to 'strata/sound-server-pulseaudio')
-rw-r--r--strata/sound-server-pulseaudio/alsa-utils.morph7
-rw-r--r--strata/sound-server-pulseaudio/avahi.morph16
-rw-r--r--strata/sound-server-pulseaudio/json-c.morph7
-rw-r--r--strata/sound-server-pulseaudio/libsndfile.morph5
-rw-r--r--strata/sound-server-pulseaudio/pulseaudio.morph18
-rw-r--r--strata/sound-server-pulseaudio/webrtc-audio-processing.morph14
6 files changed, 67 insertions, 0 deletions
diff --git a/strata/sound-server-pulseaudio/alsa-utils.morph b/strata/sound-server-pulseaudio/alsa-utils.morph
new file mode 100644
index 00000000..a6a1e041
--- /dev/null
+++ b/strata/sound-server-pulseaudio/alsa-utils.morph
@@ -0,0 +1,7 @@
+name: alsa-utils
+kind: chunk
+description: ALSA utilities
+build-system: autotools
+configure-commands:
+- autoreconf -ifv
+- ./configure --prefix="$PREFIX" --disable-xmlto
diff --git a/strata/sound-server-pulseaudio/avahi.morph b/strata/sound-server-pulseaudio/avahi.morph
new file mode 100644
index 00000000..a255ce1e
--- /dev/null
+++ b/strata/sound-server-pulseaudio/avahi.morph
@@ -0,0 +1,16 @@
+name: avahi
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var --disable-werror \
+ --with-distro=none --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 \
+ --disable-pygtk --disable-python-dbus --disable-mono --disable-manpages
+system-integration:
+ avahi-misc:
+ 00-add-avahi-user:
+ - groupadd -fg 86 netdev
+ - groupadd -fg 84 avahi
+ - useradd -c "Avahi Daemon Owner" -d /var/run/avahi-daemon -u 84 -g avahi -s /bin/false avahi
+ 00-enable-avahi-service:
+ - systemctl enable avahi-daemon
diff --git a/strata/sound-server-pulseaudio/json-c.morph b/strata/sound-server-pulseaudio/json-c.morph
new file mode 100644
index 00000000..c3d9243c
--- /dev/null
+++ b/strata/sound-server-pulseaudio/json-c.morph
@@ -0,0 +1,7 @@
+name: json-c
+kind: chunk
+description: JSON C Library
+build-system: autotools
+install-commands:
+- make DESTDIR="$DESTDIR" install
+- install -m755 json_object_iterator.h "$DESTDIR/usr/include/json"
diff --git a/strata/sound-server-pulseaudio/libsndfile.morph b/strata/sound-server-pulseaudio/libsndfile.morph
new file mode 100644
index 00000000..8d6c2fe0
--- /dev/null
+++ b/strata/sound-server-pulseaudio/libsndfile.morph
@@ -0,0 +1,5 @@
+name: libsndfile
+kind: chunk
+build-system: autotools
+configure-commands:
+- ./configure --prefix="$PREFIX" --disable-external-libs
diff --git a/strata/sound-server-pulseaudio/pulseaudio.morph b/strata/sound-server-pulseaudio/pulseaudio.morph
new file mode 100644
index 00000000..dfaa9b0d
--- /dev/null
+++ b/strata/sound-server-pulseaudio/pulseaudio.morph
@@ -0,0 +1,18 @@
+name: pulseaudio
+kind: chunk
+description: PulseAudio System
+build-system: autotools
+pre-configure-commands:
+- NOCONFIGURE=1 ./bootstrap.sh
+configure-commands:
+- ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --with-database=simple
+ --with-systemduserunitdir=/usr/lib/systemd/user
+ --with-system-user=pulse --with-system-group=pulse --with-access-group=pulse-access
+ --enable-webrtc-aec
+system-integration:
+ pulseaudio-misc:
+ 00-add-pulse-users:
+ - groupadd -rf pulse-access
+ - groupadd -rf pulse-rt
+ - groupadd -f -g 171 -r pulse
+ - useradd -r -g pulse -d /var/run/pulse -s /bin/false -c "PulseAudio System Daemon" pulse || exit 0
diff --git a/strata/sound-server-pulseaudio/webrtc-audio-processing.morph b/strata/sound-server-pulseaudio/webrtc-audio-processing.morph
new file mode 100644
index 00000000..ea8cd4e0
--- /dev/null
+++ b/strata/sound-server-pulseaudio/webrtc-audio-processing.morph
@@ -0,0 +1,14 @@
+name: webrtc-audio-processing
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ NOCONFIGURE=1 ./autogen.sh
+
+ case "$MORPH_ARCH" in
+ x86_32)
+ sed -i -e "s/-O2/& -msse2/" configure
+ ;;
+ esac
+
+ ./configure --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var