2020-06-07 14:58:18 +00:00
|
|
|
# Description: Server and user space API to deal with multimedia pipelines
|
|
|
|
# URL: https://pipewire.org
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-02-22 00:38:12 +00:00
|
|
|
# Depends on: alsa-utils dbus fdk-aac ffmpeg glib lame libva libvpx libwebp x264 x265
|
2021-02-21 22:25:08 +00:00
|
|
|
# Optional: alsa-ucm-conf bluez gst-plugins-base jack libldac libopenaptx pulseaudio rtkit v4l2 vulkan-loader
|
2020-06-07 14:58:18 +00:00
|
|
|
|
|
|
|
name=pipewire
|
2021-04-10 09:30:21 +00:00
|
|
|
version=0.3.25
|
2021-03-04 23:50:32 +00:00
|
|
|
release=1
|
2020-06-07 14:58:18 +00:00
|
|
|
source=(https://github.com/PipeWire/pipewire/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2021-03-19 08:37:52 +00:00
|
|
|
[[ -e /usr/lib/pkgconfig/jack.pc ]] || PKGMK_PW+=' -Dpipewire-jack=disabled -Djack=disabled'
|
|
|
|
[[ -e /usr/lib/pkgconfig/vulkan.pc ]] || PKGMK_PW+=' -Dpipewire-vulkan=disabled -Dvulkan=disabled'
|
|
|
|
[[ -e /usr/lib/pkgconfig/bluez.pc ]] || PKGMK_PW+=' -Dbluez5=disabled'
|
|
|
|
[[ -e /usr/lib/pkgconfig/libv4l2.pc ]] || PKGMK_PW+=' -Dv4l2=disabled'
|
|
|
|
[[ -e /usr/include/pulse/glib-mainloop.h ]] || PKGMK_PW+=' -Dpipewire-pulseaudio=disabled'
|
|
|
|
[[ -e /usr/lib/pkgconfig/gstreamer-1.0.pc ]] || PKGMK_PW+=' -Dgstreamer=disabled'
|
2020-06-07 14:58:18 +00:00
|
|
|
|
2020-11-03 20:19:22 +00:00
|
|
|
meson setup $name-$version build $PKGMK_PW \
|
2020-06-07 14:58:18 +00:00
|
|
|
-D prefix=/usr \
|
2020-11-03 20:19:22 +00:00
|
|
|
--buildtype=plain \
|
2021-03-19 08:37:52 +00:00
|
|
|
-D docs=disabled \
|
|
|
|
-D tests=disabled
|
2021-01-07 22:36:43 +00:00
|
|
|
# will remove executable pipewire-media-session
|
|
|
|
# -D examples=false \
|
|
|
|
|
2020-11-03 20:19:22 +00:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2021-01-14 12:11:02 +00:00
|
|
|
|
|
|
|
# enable alsa by default
|
|
|
|
touch $PKG/etc/pipewire/media-session.d/with-alsa
|
2021-01-21 13:15:57 +00:00
|
|
|
mkdir -p $PKG/etc/alsa/conf.d
|
2021-01-14 12:11:02 +00:00
|
|
|
ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf
|
2021-02-21 13:10:29 +00:00
|
|
|
ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/50-pipewire.conf
|
2021-01-21 13:15:57 +00:00
|
|
|
|
|
|
|
# remove leftovers
|
|
|
|
rm -r $PKG/usr/share/locale
|
2020-06-07 14:58:18 +00:00
|
|
|
}
|