2023-08-06 23:10:30 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="pipewire"
|
2023-09-20 23:42:17 +00:00
|
|
|
PKG_VERSION="0.3.80"
|
2023-08-06 23:10:30 +00:00
|
|
|
PKG_LICENSE="LGPL"
|
|
|
|
PKG_SITE="https://pipewire.org"
|
|
|
|
PKG_URL="https://github.com/PipeWire/pipewire/archive/${PKG_VERSION}.tar.gz"
|
2023-08-09 12:10:06 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libpthread-stubs dbus ncurses alsa-lib pulseaudio systemd libsndfile libusb"
|
2023-08-06 23:10:30 +00:00
|
|
|
PKG_LONGDESC="PipeWire is a server and user space API to deal with multimedia pipeline"
|
|
|
|
|
|
|
|
if [ "${BLUETOOTH_SUPPORT}" = "yes" ]; then
|
2023-08-09 14:35:41 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" bluez sbc ldacBT libfreeaptx fdk-aac"
|
2023-08-06 23:10:30 +00:00
|
|
|
PKG_PIPEWIRE_BLUETOOTH="-Dbluez5=enabled \
|
2023-08-09 12:10:06 +00:00
|
|
|
-Dbluez5-backend-hsp-native=disabled \
|
|
|
|
-Dbluez5-backend-hfp-native=disabled \
|
|
|
|
-Dbluez5-backend-ofono=disabled \
|
|
|
|
-Dbluez5-backend-hsphfpd=disabled \
|
2023-08-06 23:10:30 +00:00
|
|
|
-Dbluez5-codec-aptx=enabled \
|
|
|
|
-Dbluez5-codec-ldac=enabled \
|
2023-08-09 12:10:06 +00:00
|
|
|
-Dbluez5-codec-aac=enabled"
|
2023-08-06 23:10:30 +00:00
|
|
|
else
|
|
|
|
PKG_PIPEWIRE_BLUETOOTH="-Dbluez5=disabled"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${VULKAN_SUPPORT}" = "yes" ]; then
|
|
|
|
PKG_PIPEWIRE_VULKAN+="-Dvulkan=enabled \
|
|
|
|
-Dx11=disabled \
|
|
|
|
-Dx11-xfixes=disabled"
|
|
|
|
fi
|
|
|
|
|
|
|
|
PKG_MESON_OPTS_TARGET="-Ddocs=disabled \
|
|
|
|
-Dexamples=disabled \
|
|
|
|
-Dman=disabled \
|
|
|
|
-Dtests=disabled \
|
|
|
|
-Dinstalled_tests=disabled \
|
|
|
|
-Dgstreamer=disabled \
|
|
|
|
-Dgstreamer-device-provider=disabled \
|
|
|
|
-Dsystemd=enabled \
|
|
|
|
-Dsystemd-system-service=enabled \
|
|
|
|
-Dsystemd-user-service=disabled \
|
|
|
|
-Dpipewire-alsa=enabled \
|
|
|
|
-Dpipewire-jack=disabled \
|
|
|
|
-Dpipewire-v4l2=disabled \
|
|
|
|
-Djack-devel=false
|
|
|
|
-Dspa-plugins=enabled \
|
|
|
|
-Dalsa=enabled \
|
|
|
|
-Daudiomixer=enabled \
|
|
|
|
-Daudioconvert=enabled \
|
|
|
|
${PKG_PIPEWIRE_BLUETOOTH} \
|
|
|
|
-Dcontrol=enabled \
|
|
|
|
-Daudiotestsrc=disabled \
|
|
|
|
-Dffmpeg=disabled \
|
|
|
|
-Djack=disabled \
|
|
|
|
-Dsupport=enabled \
|
|
|
|
-Devl=disabled \
|
|
|
|
-Dtest=disabled \
|
|
|
|
-Dv4l2=disabled \
|
|
|
|
-Ddbus=enabled \
|
|
|
|
-Dlibcamera=disabled \
|
|
|
|
-Dvideoconvert=disabled \
|
|
|
|
-Dvideotestsrc=disabled \
|
|
|
|
-Dvolume=enabled \
|
|
|
|
${PKG_PIPEWIRE_VULKAN} \
|
|
|
|
-Dpw-cat=enabled \
|
|
|
|
-Dudev=enabled \
|
|
|
|
-Dudevrulesdir=/usr/lib/udev/rules.d \
|
* Update emulators, cores, and emulation support packages.
* box64, a5200-lr, atari800-lr, beetle-pce-fast-lr, beetle-pce-lr, beetle-psx-lr, bsnes-lr, package.mk, desmume-lr, dosbox-pure-lr, fbneo-lr, flycast-lr, genesis-plus-gx-lr, genesis-plus-gx-wide-lr, handy-lr, package.mk, mame-lr, mame2003-plus-lr, mupen64plus-nx-lr, opera-lr, pcsx_rearmed-lr, picodrive-lr, play-lr, ppsspp-lr, stella-lr, swanstation-lr, tic80-lr, cemu-sa, duckstation-sa, hatarisa, package.mk, ppsspp-sa, primehack, retroarch, scummvmsa, yuzu-sa, glsl-shaders, slang-shaders, and retroarch-joypads.
* Fix pipewire package oops.
2023-08-11 20:52:46 +00:00
|
|
|
-Dsdl2=disabled \
|
2023-08-06 23:10:30 +00:00
|
|
|
-Dsndfile=enabled \
|
|
|
|
-Dlibpulse=enabled \
|
|
|
|
-Droc=disabled \
|
|
|
|
-Davahi=disabled \
|
|
|
|
-Decho-cancel-webrtc=disabled \
|
|
|
|
-Dlibusb=enabled \
|
|
|
|
-Dsession-managers=[] \
|
|
|
|
-Draop=disabled \
|
|
|
|
-Dlv2=disabled \
|
|
|
|
-Dlibcanberra=disabled \
|
|
|
|
-Dlegacy-rtkit=false"
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
export TARGET_LDFLAGS="${TARGET_LDFLAGS} -lncursesw -ltinfow"
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2023-08-14 12:07:13 +00:00
|
|
|
mkdir -p ${INSTALL}/etc/alsa/conf.d
|
|
|
|
ln -sf /usr/share/alsa/alsa.conf.d/50-pipewire.conf ${INSTALL}/etc/alsa/conf.d/50-pipewire.conf
|
|
|
|
ln -sf /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf ${INSTALL}/etc/alsa/conf.d/99-pipewire-default.conf
|
2023-08-08 00:15:56 +00:00
|
|
|
enable_service pipewire.socket
|
|
|
|
enable_service pipewire.service
|
|
|
|
enable_service pipewire-pulse.socket
|
|
|
|
enable_service pipewire-pulse.service
|
2023-08-06 23:10:30 +00:00
|
|
|
}
|