pipewire: update to 0.3.6

This commit is contained in:
Kridsada Thanabulpong 2020-03-28 16:23:52 +09:00 committed by Piraty
parent 7596e3f11e
commit 44ca757e39
14 changed files with 191 additions and 20 deletions

View File

@ -3285,7 +3285,7 @@ libarcan_shmif_ext.so.0.11 arcan-0.5.4.3_1
libarcan_shmif_server.so.0.11 arcan-0.5.4.3_1 libarcan_shmif_server.so.0.11 arcan-0.5.4.3_1
libarcan_tui.so.0.11 arcan-0.5.4.3_1 libarcan_tui.so.0.11 arcan-0.5.4.3_1
liblwipv6.so.2 lwipv6-1.5a_1 liblwipv6.so.2 lwipv6-1.5a_1
libpipewire-0.2.so.1 libpipewire-0.2.2_1 libpipewire-0.3.so.0 libpipewire-0.3.6_1
libvolk.so.2.2.1 volk-2.2.1_1 libvolk.so.2.2.1 volk-2.2.1_1
libgnuradio-runtime.so.3.8.0 gnuradio-3.8.0.0_1 libgnuradio-runtime.so.3.8.0 gnuradio-3.8.0.0_1
libgnuradio-pmt.so.3.8.0 gnuradio-3.8.0.0_1 libgnuradio-pmt.so.3.8.0 gnuradio-3.8.0.0_1
@ -3514,6 +3514,18 @@ libcss_parser.so.0 htmlcxx-0.86_1
libaom.so.0 libaom-1.0.0_1 libaom.so.0 libaom-1.0.0_1
libre.so re-0.5.8_1 libre.so re-0.5.8_1
libspandsp.so.2 spandsp-0.0.6_1 libspandsp.so.2 spandsp-0.0.6_1
libspa-alsa.so libspa-alsa-0.3.6_1
libspa-audioconvert.so libspa-audioconvert-0.3.6_1
libspa-audiomixer.so libspa-audiomixer-0.3.6_1
libspa-bluez5.so libspa-bluetooth-0.3.6_1
libspa-control.so libspa-control-0.3.6_1
libspa-ffmpeg.so libspa-ffmpeg-0.3.6_1
libspa-jack.so libspa-jack-0.3.6_1
libspa-v4l2.so libspa-v4l2-0.3.6_1
libspa-videoconvert.so libspa-videoconvert-0.3.6_1
libspa-vulkan.so libspa-vulkan-0.3.6_1
libspa-bluez5.so libspa-bluetooth-0.3.6_1
libspa-ffmpeg.so libspa-ffmpeg-0.3.6_1
librem.so rem-0.5.3_1 librem.so rem-0.5.3_1
libshp.so.1 shapelib-1.4.1_1 libshp.so.1 shapelib-1.4.1_1
libantlr3c.so libantlr3c-3.4_1 libantlr3c.so libantlr3c-3.4_1

1
srcpkgs/alsa-pipewire Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libjack-pipewire Symbolic link
View File

@ -0,0 +1 @@
pipewire

View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-alsa Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-audioconvert Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-audiomixer Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-control Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-jack Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-v4l2 Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-videoconvert Symbolic link
View File

@ -0,0 +1 @@
pipewire

1
srcpkgs/libspa-vulkan Symbolic link
View File

@ -0,0 +1 @@
pipewire

View File

@ -0,0 +1,55 @@
Workaround for NEON detection for armv6l/armv7l
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/235
diff --git meson.build meson.build
index 29b4b892..0d048a1f 100644
--- meson.build
+++ meson.build
@@ -99,36 +99,16 @@ have_avx = cc.has_argument(avx_args)
have_avx2 = cc.has_argument(avx2_args)
have_neon = false
-if host_machine.cpu_family() == 'aarch64'
- if cc.compiles('''
- #include <arm_neon.h>
- int main () {
- float *s;
- asm volatile(
- " ld1 { v0.4s }, [%[s]], #16\n"
- " fcvtzs v0.4s, v0.4s, #31\n"
- : [s] "+r" (s) : :);
- }
- ''',
- name : 'aarch64 Neon Support')
- neon_args = []
- have_neon = true
-
- endif
-elif cc.has_argument('-mfpu=neon')
- if cc.compiles('''
- #include <arm_neon.h>
- int main () {
- float *s;
- asm volatile(
- " vld1.32 { q0 }, [%[s]]!\n"
- " vcvt.s32.f32 q0, q0, #31\n"
- : [s] "+r" (s) : :);
- }
- ''',
- args: '-mfpu=neon',
- name : 'arm Neon Support')
- neon_args = ['-mfpu=neon']
- have_neon = true
+neon_args = []
+if host_machine.cpu_family() == 'arm' or host_machine.cpu_family() == 'aarch64'
+ if cc.compiles(
+'''
+#include <arm_neon.h>
+int32x4_t testfunc(int16_t *a, int16_t *b) {
+return vmull_s16(vld1_s16(a), vld1_s16(b));
+}
+''',
+ name : 'NEON support')
+ have_neon = true
endif
endif

View File

@ -1,26 +1,37 @@
# Template file for 'pipewire' # Template file for 'pipewire'
pkgname=pipewire pkgname=pipewire
version=0.2.7 version=0.3.6
revision=1 revision=1
build_style=meson build_style=meson
configure_args="-Dman=true -Dgstreamer=enabled -Ddocs=true -Dsystemd=false" configure_args="-Dman=true -Dgstreamer=true -Ddocs=true -Dsystemd=false
-Dbluez5=true -Dffmpeg=true -Dpipewire-alsa=true -Dpipewire-jack=true
-Dpipewire-pulseaudio=true"
hostmakedepends="doxygen graphviz pkg-config xmltoman" hostmakedepends="doxygen graphviz pkg-config xmltoman"
makedepends="SDL2-devel ffmpeg-devel gst-plugins-base1-devel jack-devel makedepends="SDL2-devel ffmpeg-devel gst-plugins-base1-devel jack-devel
sbc-devel v4l-utils-devel libva-devel" sbc-devel v4l-utils-devel libva-devel libbluetooth-devel"
short_desc="Server and user space API to deal with multimedia pipelines" short_desc="Server and user space API to deal with multimedia pipelines"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Kridsada Thanabulpong <sirn@ogsite.net>"
#Next release will probably change to MIT, currently listed in master license="MIT"
license="LGPL-2.1-only, GPL-2.0-only "
homepage="https://pipewire.org/" homepage="https://pipewire.org/"
changelog="https://raw.githubusercontent.com/PipeWire/pipewire/master/NEWS" changelog="https://gitlab.freedesktop.org/pipewire/pipewire/-/raw/master/NEWS"
distfiles="https://github.com/PipeWire/pipewire/archive/${version}.tar.gz" distfiles="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${version}/pipewire-${version}.tar.gz"
checksum=bfaa0f6ae6c0791e2e0b59234d399753bf24f1b33dbf587682363a8463dd8df1 checksum=927301640f87d68e52f4480667977bc6f47186ee7877f7aa86ce9172ff144edc
conf_files="/etc/pipewire/pipewire.conf" conf_files="/etc/pipewire/pipewire.conf"
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
fi
post_install() {
vlicense LICENSE
}
libpipewire_package() { libpipewire_package() {
short_desc+=" - pipewire library" short_desc+=" - pipewire library"
pkg_install() { pkg_install() {
vmove "usr/lib/libpipewire-0.2.so.*" vmove "usr/lib/libpipewire-0.3.so.*"
vmove "usr/lib/pipewire-0.3/*.so"
} }
} }
@ -28,25 +39,81 @@ pipewire-devel_package() {
depends="libpipewire-${version}_${revision}" depends="libpipewire-${version}_${revision}"
short_desc+=" - pipewire and libspa development files" short_desc+=" - pipewire and libspa development files"
pkg_install() { pkg_install() {
vmove usr/include/pipewire vmove usr/include/pipewire-0.3
vmove usr/include/spa vmove usr/include/spa-0.2
vmove usr/lib/pkgconfig/libpipewire-0.2.pc vmove usr/lib/pkgconfig/libpipewire-0.3.pc
vmove usr/lib/pkgconfig/libspa-0.1.pc vmove usr/lib/pkgconfig/libspa-0.2.pc
vmove usr/lib/libpipewire-0.2.so vmove usr/lib/libpipewire-0.3.so
} }
} }
libspa-ffmpeg_package() { libspa-alsa_package() {
short_desc+=" - ffmpeg plugins" short_desc+=" - alsa plugins"
pkg_install() { pkg_install() {
vmove usr/lib/spa/ffmpeg vmove usr/lib/spa-0.2/alsa
}
}
libspa-audioconvert_package() {
short_desc+=" - audioconvert plugins"
pkg_install() {
vmove usr/lib/spa-0.2/audioconvert
}
}
libspa-audiomixer_package() {
short_desc+=" - audiomixer plugins"
pkg_install() {
vmove usr/lib/spa-0.2/audiomixer
} }
} }
libspa-bluetooth_package() { libspa-bluetooth_package() {
short_desc+=" - bluetooth plugins" short_desc+=" - bluetooth plugins"
pkg_install() { pkg_install() {
vmove usr/lib/spa/bluez5 vmove usr/lib/spa-0.2/bluez5
}
}
libspa-control_package() {
short_desc+=" - control plugins"
pkg_install() {
vmove usr/lib/spa-0.2/control
}
}
libspa-ffmpeg_package() {
short_desc+=" - ffmpeg plugins"
pkg_install() {
vmove usr/lib/spa-0.2/ffmpeg
}
}
libspa-jack_package() {
short_desc+=" - jack plugins"
pkg_install() {
vmove usr/lib/spa-0.2/jack
}
}
libspa-v4l2_package() {
short_desc+=" - v4l2 plugins"
pkg_install() {
vmove usr/lib/spa-0.2/v4l2
}
}
libspa-videoconvert_package() {
short_desc+=" - videoconvert plugins"
pkg_install() {
vmove usr/lib/spa-0.2/videoconvert
}
}
libspa-vulkan_package() {
short_desc+=" - vulkan plugins"
pkg_install() {
vmove usr/lib/spa-0.2/vulkan
} }
} }
@ -57,6 +124,32 @@ gstreamer1-pipewire_package() {
} }
} }
libpulseaudio-pipewire_package() {
depends="libpipewire-${version}_${revision}"
short_desc+=" - PulseAudio client library"
pkg_install() {
vmove usr/lib/pipewire-0.3/pulse
vmove usr/bin/pw-pulse
}
}
alsa-pipewire_package() {
depends="libpipewire-${version}_${revision}"
short_desc+=" - ALSA client library"
pkg_install() {
vmove usr/lib/alsa-lib
}
}
libjack-pipewire_package() {
depends="libpipewire-${version}_${revision}"
short_desc+=" - JACK client library"
pkg_install() {
vmove usr/lib/pipewire-0.3/jack
vmove usr/bin/pw-jack
}
}
pipewire-doc_package() { pipewire-doc_package() {
archs=noarch archs=noarch
short_desc+=" - documentation" short_desc+=" - documentation"