blob: 988a901b0cc019a153f4c5eb36e451b1f720b6ca (
plain)
1 # Description: Server and user space API to deal with multimedia pipelines
2 # URL: https://pipewire.org
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: alsa-utils dbus fdk-aac ffmpeg glib lame libva libvpx libwebp x264 x265
5 # Optional: alsa-ucm-conf avahi bluez gst-plugins-base jack libldac pulseaudio rtkit v4l2 vulkan-loader wireplumber
6
7 name=pipewire
8 version=0.3.64
9 release=1
10 source=(https://github.com/PipeWire/pipewire/archive/$version/$name-$version.tar.gz)
11
12 build() {
13 prt-get isinst avahi || PKGMK_PW+=' -Davahi=disabled'
14 prt-get isinst bluez || PKGMK_PW+=' -Dbluez5=disabled'
15 prt-get isinst gst-plugins-base || PKGMK_PW+=' -Dgstreamer=disabled'
16 prt-get isinst jack || PKGMK_PW+=' -Dpipewire-jack=disabled -Djack=disabled'
17 prt-get isinst pulseaudio || PKGMK_PW+=' -Dlibpulse=disabled'
18 prt-get isinst v4l-utils || PKGMK_PW+=' -Dv4l2=disabled'
19 prt-get isinst vulkan-loader || PKGMK_PW+=' -Dvulkan=disabled -Dvulkan=disabled'
20
21 meson setup $name-$version build $PKGMK_PW \
22 -D prefix=/usr \
23 --buildtype=plain \
24 -D b_lto=false \
25 -D b_pie=true \
26 -D docs=disabled \
27 -D tests=disabled \
28 -D session-managers=""
29 # will remove executable pipewire-media-session
30 # -D examples=false \
31
32 meson compile -C build
33 DESTDIR=$PKG meson install -C build
34
35 # enable alsa by default
36 install -Dm644 /dev/null $PKG/usr/share/pipewire/media-session.d/with-alsa
37 mkdir -p $PKG/etc/alsa/conf.d
38 ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf
39 ln -st $PKG/etc/alsa/conf.d /usr/share/alsa/alsa.conf.d/50-pipewire.conf
40
41 # remove leftovers
42 rm -r $PKG/usr/share/locale
43 }
|