Added pipewire

This commit is contained in:
Ella-0 2021-05-16 15:13:21 +01:00
parent 6b0f61efb9
commit 958e3f04ec
2 changed files with 106 additions and 0 deletions

41
pkgs/pipewire/build.sh Normal file
View file

@ -0,0 +1,41 @@
pkgname=pipewire
pkgver=0.3.27
fetch() {
curl "https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/$pkgver/pipewire-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
mkdir $pkgname-$pkgver/build
cp ../no-dbus.patch .
cd $pkgname-$pkgver
patch -p1 < ../no-dbus.patch
}
build() {
cd $pkgname-$pkgver
cd build
meson .. \
--buildtype=release \
--prefix=/usr \
--libexecdir=lib \
-Dbluez5=disabled \
-Dspa-plugins=disabled \
-Dlibcamera=disabled \
-Dexamples=disabled \
-Dgstreamer=disabled \
-Dlibpulse=disabled
samu
}
package() {
cd $pkgname-$pkgver
cd build
DESTDIR=$pkgdir samu install
}
license() {
cd $pkgname-$pkgver
cat COPYING
}

View file

@ -0,0 +1,65 @@
--- a/meson.build
+++ b/meson.build
@@ -306,7 +306,7 @@
rt_lib = cc.find_library('rt', required : false) # clock_gettime
dl_lib = cc.find_library('dl', required : false)
pthread_lib = dependency('threads')
-dbus_dep = dependency('dbus-1')
+dbus_dep = dependency('dbus-1', required : false)
sdl_dep = dependency('sdl2', required : get_option('sdl2'))
ncurses_dep = dependency('ncursesw', required : false)
sndfile_dep = dependency('sndfile', version : '>= 1.0.20', required : get_option('sndfile'))
--- a/src/modules/meson.build
+++ b/src/modules/meson.build
@@ -110,30 +110,30 @@
dependencies : pipewire_module_protocol_deps,
)
-pipewire_module_protocol_pulse_deps = pipewire_module_protocol_deps
-
if dbus_dep.found()
+ pipewire_module_protocol_pulse_deps = pipewire_module_protocol_deps
+
pipewire_module_protocol_pulse_deps += dbus_dep
-endif
-pipewire_module_protocol_pulse = shared_library('pipewire-module-protocol-pulse',
- [ 'module-protocol-pulse.c',
- 'module-protocol-pulse/manager.c',
- 'module-protocol-pulse/pulse-server.c',
- 'module-protocol-pulse/modules/module-loopback.c',
- 'module-protocol-pulse/modules/module-native-protocol-tcp.c',
- 'module-protocol-pulse/modules/module-null-sink.c',
- 'module-protocol-pulse/modules/module-remap-sink.c',
- 'module-protocol-pulse/modules/module-remap-source.c',
- 'module-protocol-pulse/modules/module-simple-protocol-tcp.c',
- ],
- c_args : pipewire_module_c_args,
- include_directories : [configinc, spa_inc],
- install : true,
- install_dir : modules_install_dir,
- install_rpath: modules_install_dir,
- dependencies : pipewire_module_protocol_pulse_deps,
-)
+ pipewire_module_protocol_pulse = shared_library('pipewire-module-protocol-pulse',
+ [ 'module-protocol-pulse.c',
+ 'module-protocol-pulse/manager.c',
+ 'module-protocol-pulse/pulse-server.c',
+ 'module-protocol-pulse/modules/module-loopback.c',
+ 'module-protocol-pulse/modules/module-native-protocol-tcp.c',
+ 'module-protocol-pulse/modules/module-null-sink.c',
+ 'module-protocol-pulse/modules/module-remap-sink.c',
+ 'module-protocol-pulse/modules/module-remap-source.c',
+ 'module-protocol-pulse/modules/module-simple-protocol-tcp.c',
+ ],
+ c_args : pipewire_module_c_args,
+ include_directories : [configinc, spa_inc],
+ install : true,
+ install_dir : modules_install_dir,
+ install_rpath: modules_install_dir,
+ dependencies : pipewire_module_protocol_pulse_deps,
+ )
+endif
pipewire_module_protocol_simple = shared_library('pipewire-module-protocol-simple',
[ 'module-protocol-simple.c' ],