2020-06-07 16:58:18 +02:00
|
|
|
# Description: Server and user space API to deal with multimedia pipelines
|
|
|
|
# URL: https://pipewire.org
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-01-28 00:00:58 +01:00
|
|
|
# Depends on: alsa-lib dbus ffmpeg gst-plugins-base
|
|
|
|
# Optional: alsa-ucm-conf avahi bluez fdk-aac flatpak graphviz jack libcanberra libsndfile libuv lilv pulseaudio rtkit speexdsp v4l-utils vulkan-loader wireplumber
|
2020-06-07 16:58:18 +02:00
|
|
|
|
|
|
|
name=pipewire
|
2023-07-12 16:52:40 +02:00
|
|
|
version=0.3.74
|
2022-02-17 12:45:24 +01:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/PipeWire/pipewire/archive/$version/$name-$version.tar.gz)
|
2020-06-07 16:58:18 +02:00
|
|
|
|
|
|
|
build() {
|
2021-10-21 17:26:38 +02:00
|
|
|
prt-get isinst avahi || PKGMK_PW+=' -Davahi=disabled'
|
2021-04-22 22:14:35 +02:00
|
|
|
prt-get isinst bluez || PKGMK_PW+=' -Dbluez5=disabled'
|
2023-01-28 00:00:58 +01:00
|
|
|
prt-get isinst fdk-aac || PKGMK_PW+=' -Dbluez5-codec-aac=disabled'
|
|
|
|
prt-get isinst flatpak || PKGMK_PW+=' -Dflatpak=disabled'
|
2021-07-28 20:38:59 +02:00
|
|
|
prt-get isinst jack || PKGMK_PW+=' -Dpipewire-jack=disabled -Djack=disabled'
|
2021-10-21 17:26:38 +02:00
|
|
|
prt-get isinst pulseaudio || PKGMK_PW+=' -Dlibpulse=disabled'
|
2021-07-28 20:38:59 +02:00
|
|
|
prt-get isinst v4l-utils || PKGMK_PW+=' -Dv4l2=disabled'
|
2021-10-21 17:26:38 +02:00
|
|
|
prt-get isinst vulkan-loader || PKGMK_PW+=' -Dvulkan=disabled -Dvulkan=disabled'
|
2020-06-07 16:58:18 +02:00
|
|
|
|
2020-11-03 21:19:22 +01:00
|
|
|
meson setup $name-$version build $PKGMK_PW \
|
2020-06-07 16:58:18 +02:00
|
|
|
-D prefix=/usr \
|
2020-11-03 21:19:22 +01:00
|
|
|
--buildtype=plain \
|
2022-09-16 21:34:54 +02:00
|
|
|
-D b_lto=false \
|
2021-07-20 21:54:06 +02:00
|
|
|
-D b_pie=true \
|
2021-03-19 09:37:52 +01:00
|
|
|
-D docs=disabled \
|
2021-10-21 17:26:38 +02:00
|
|
|
-D tests=disabled \
|
|
|
|
-D session-managers=""
|
2021-01-07 23:36:43 +01:00
|
|
|
|
2020-11-03 21:19:22 +01:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2021-01-14 13:11:02 +01:00
|
|
|
|
|
|
|
# enable alsa by default
|
2021-05-20 10:18:08 +02:00
|
|
|
install -Dm644 /dev/null $PKG/usr/share/pipewire/media-session.d/with-alsa
|
2021-01-21 14:15:57 +01:00
|
|
|
mkdir -p $PKG/etc/alsa/conf.d
|
2021-01-14 13:11:02 +01:00
|
|
|
ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf
|
2021-02-21 14:10:29 +01:00
|
|
|
ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/50-pipewire.conf
|
2021-01-21 14:15:57 +01:00
|
|
|
|
|
|
|
# remove leftovers
|
|
|
|
rm -r $PKG/usr/share/locale
|
2020-06-07 16:58:18 +02:00
|
|
|
}
|