blob: 5af597538c4d6c605e3e4ace2e4743387556b881 (
plain)
1 # Description: Low-latency audio/video router and processor - 32-bit client library
2 # URL: https://pipewire.org
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: alsa-lib-32 dbus-32 glib-32 pipewire xorg-libxcb-32
5 # Optional: avahi-32 jack-32 libsdl2-32 libsndfile-32 pulseaudio-32 vulkan-loader-32
6
7 name=pipewire-32
8 version=0.3.64
9 release=1
10 source=(https://github.com/PipeWire/pipewire/archive/$version/pipewire-$version.tar.gz)
11
12 build() {
13 prt-get isinst alsa-lib-32 && PKGMK_PW+=' -D alsa=enabled -D pipewire-alsa=enabled'
14 prt-get isinst avahi-32 && PKGMK_PW+=' -D avahi=enabled'
15 prt-get isinst dbus-32 && PKGMK_PW+=' -D dbus=enabled'
16 ## there is no jack-32 port, turn it off if jack is installed to prevent build errors
17 #prt-get isinst jack-32 && PKGMK_PW+=' -D jack=enabled'
18 prt-get isinst jack && PKGMK_PW+=' -D jack=disabled'
19 prt-get isinst libsdl2-32 && PKGMK_PW+=' -D sdl2=enabled'
20 prt-get isinst libsndfile-32 && PKGMK_PW+=' -D sndfile=enabled'
21 prt-get isinst pulseaudio-32 && PKGMK_PW+=' -D libpulse=enabled'
22 prt-get isinst vulkan-loader-32 && PKGMK_PW+=' -D vulkan=enabled'
23
24 meson setup pipewire-$version build $PKGMK_PW \
25 -D prefix=/usr \
26 --libdir=lib32 \
27 --buildtype=plain \
28 --auto-features=disabled \
29 -D man=disabled \
30 -D tests=disabled \
31 -D examples=disabled \
32 -D pw-cat=disabled \
33 -D session-managers='[]'
34
35 meson compile -C build
36 DESTDIR=$PKG meson install -C build
37
38 # remove leftovers
39 rm -r $PKG/usr/{bin,include,share/locale,share/pipewire}
40
41 prt-get isinst alsa-lib-32 && \
42 rm -r $PKG/usr/share/{alsa,alsa-card-profile} && \
43 rm $PKG/lib/udev/rules.d/90-pipewire-alsa.rules
44
45 find $PKG -type d -empty -delete
46 }
|