2021-09-01 20:40:32 +10:00
|
|
|
# Description: Low-latency audio/video router and processor - 32-bit client library
|
2021-08-14 15:30:15 +10:00
|
|
|
# URL: https://pipewire.org
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2023-08-22 18:44:03 +02:00
|
|
|
# Depends on: dbus-32 gst-plugins-base-32 pipewire
|
2023-01-28 00:46:26 +01:00
|
|
|
# Optional: avahi-32 jack-32 libsdl2-32 libsndfile-32 pulseaudio-32 vulkan-loader-32 xorg-libxcb-32
|
2021-08-14 15:30:15 +10:00
|
|
|
|
|
|
|
name=pipewire-32
|
2024-05-10 00:04:01 +02:00
|
|
|
version=1.0.6
|
2021-09-10 20:56:04 +02:00
|
|
|
release=1
|
2023-07-07 23:11:24 +02:00
|
|
|
source=(https://github.com/PipeWire/pipewire/archive/$version/pipewire-$version.tar.gz)
|
2021-08-14 15:30:15 +10:00
|
|
|
|
|
|
|
build() {
|
2021-09-01 20:40:32 +10:00
|
|
|
prt-get isinst alsa-lib-32 && PKGMK_PW+=' -D alsa=enabled -D pipewire-alsa=enabled'
|
2021-10-23 13:39:46 +02:00
|
|
|
prt-get isinst avahi-32 && PKGMK_PW+=' -D avahi=enabled'
|
2021-09-01 20:40:32 +10:00
|
|
|
prt-get isinst dbus-32 && PKGMK_PW+=' -D dbus=enabled'
|
2021-11-15 23:10:58 +11:00
|
|
|
prt-get isinst libsdl2-32 && PKGMK_PW+=' -D sdl2=enabled'
|
|
|
|
prt-get isinst libsndfile-32 && PKGMK_PW+=' -D sndfile=enabled'
|
2021-10-23 13:39:46 +02:00
|
|
|
prt-get isinst pulseaudio-32 && PKGMK_PW+=' -D libpulse=enabled'
|
|
|
|
prt-get isinst vulkan-loader-32 && PKGMK_PW+=' -D vulkan=enabled'
|
2021-08-14 15:30:15 +10:00
|
|
|
|
2021-09-01 20:40:32 +10:00
|
|
|
meson setup pipewire-$version build $PKGMK_PW \
|
|
|
|
-D prefix=/usr \
|
|
|
|
--libdir=lib32 \
|
|
|
|
--buildtype=plain \
|
|
|
|
--auto-features=disabled \
|
|
|
|
-D man=disabled \
|
|
|
|
-D tests=disabled \
|
|
|
|
-D examples=disabled \
|
|
|
|
-D pw-cat=disabled \
|
2023-07-02 19:23:15 +02:00
|
|
|
-D libffado=disabled \
|
|
|
|
-D pipewire-jack=disabled \
|
|
|
|
-D jack=disabled \
|
|
|
|
-D opus=disabled \
|
|
|
|
-D bluez5-codec-opus=disabled \
|
2021-09-01 20:40:32 +10:00
|
|
|
-D session-managers='[]'
|
2021-08-14 15:30:15 +10:00
|
|
|
|
2021-09-01 20:40:32 +10:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2021-08-14 15:30:15 +10:00
|
|
|
|
2021-09-01 20:40:32 +10:00
|
|
|
# remove leftovers
|
2023-02-17 16:27:50 +01:00
|
|
|
rm -r $PKG/etc
|
2021-09-01 20:40:32 +10:00
|
|
|
rm -r $PKG/usr/{bin,include,share/locale,share/pipewire}
|
2021-08-14 15:30:15 +10:00
|
|
|
|
2021-09-01 20:40:32 +10:00
|
|
|
prt-get isinst alsa-lib-32 && \
|
|
|
|
rm -r $PKG/usr/share/{alsa,alsa-card-profile} && \
|
|
|
|
rm $PKG/lib/udev/rules.d/90-pipewire-alsa.rules
|
|
|
|
|
|
|
|
find $PKG -type d -empty -delete
|
2021-08-14 15:30:15 +10:00
|
|
|
}
|