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
|
2021-10-23 13:39:46 +02:00
|
|
|
# Depends on: alsa-lib-32 dbus-32 pipewire xorg-libxcb-32
|
|
|
|
# Optional: avahi-32 jack-32 libsdl2-32 libsndfile-32 pulseaudio-32 vulkan-loader-32
|
2021-08-14 15:30:15 +10:00
|
|
|
|
|
|
|
name=pipewire-32
|
2022-07-28 14:49:07 -05:00
|
|
|
version=0.3.56
|
2021-09-10 20:56:04 +02:00
|
|
|
release=1
|
2021-08-14 15:30:15 +10:00
|
|
|
source=(https://github.com/PipeWire/pipewire/archive/$version/pipewire-$version.tar.gz)
|
|
|
|
|
|
|
|
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-22 11:25:36 +01:00
|
|
|
## there is no jack-32 port, turn it off if jack is installed to prevent build errors
|
|
|
|
#prt-get isinst jack-32 && PKGMK_PW+=' -D jack=enabled'
|
|
|
|
prt-get isinst jack && PKGMK_PW+=' -D jack=disabled'
|
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 \
|
|
|
|
-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
|
|
|
|
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
|
|
|
}
|