Skip to contentSkip to conversation

pipewire: Initial add of 0.2.7

PATCH In review Tom Rini 3 participants 6 messages Oct 17, 2019

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH v2 1/1 pipewire: Initial add of 0.2.7

From: George Kiagiadakis <[email protected]>

Add PACKAGECONFIG options for the currently available features.

[Based on pipewire.inc / pipewire_git.bb from meta-agl-devel/meta-pipewire]

---
 .../pipewire/pipewire_git.bb                  | 65 +++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/pipewire/pipewire_git.bb
meta-oe/recipes-multimedia/pipewire/pipewire_git.bb new file +65 -0
new file mode 100644
index 000000000000..bcb3015f8bdc
@@ -0,0 +1,65 @@
+SUMMARY = "Multimedia processing server for Linux"
+AUTHOR = "Wim Taymans <[email protected]>"
+HOMEPAGE = "https://pipewire.org"
+SECTION = "multimedia"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=d8153c6e65986f862a0550ca74a3ed73 \
+    file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
+"
+DEPENDS = "alsa-lib dbus udev"
+SRCREV = "14c11c0fe4d366bad4cfecdee97b6652ff9ed63d"
+PV = "0.2.7"
+
+SRC_URI = "git://github.com/PipeWire/pipewire"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd manpages
+
+PACKAGECONFIG ??= "\
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+    gstreamer \
+"
+
+PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
+PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base"
+PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxml-parser-perl-native"
+
+PACKAGES =+ "\
+    ${PN}-spa-plugins \
+    ${PN}-alsa \
+    ${PN}-config \
+    gstreamer1.0-${PN} \
+    lib${PN} \
+    lib${PN}-modules \
+"
+
+RDEPENDS_lib${PN} += "lib${PN}-modules ${PN}-spa-plugins"
+
+FILES_${PN} = "\
+    ${sysconfdir}/pipewire/pipewire.conf \
+    ${bindir}/pipewire* \
+    ${systemd_user_unitdir}/* \
+"
+FILES_lib${PN} = "\
+    ${libdir}/libpipewire-*.so.* \
+"
+FILES_lib${PN}-modules = "\
+    ${libdir}/pipewire-*/* \
+"
+FILES_${PN}-spa-plugins = "\
+    ${bindir}/spa-* \
+    ${libdir}/spa/* \
+"
+FILES_${PN}-alsa = "\
+    ${libdir}/alsa-lib/* \
+    ${datadir}/alsa/alsa.conf.d/50-pipewire.conf \
+"
+FILES_gstreamer1.0-${PN} = "\
+    ${libdir}/gstreamer-1.0/* \
+"
+
+CONFFILES_${PN} = "\
+    ${sysconfdir}/pipewire/pipewire.conf \
+"
Signature · 1 line
2.17.1
#1 lore raw

Just to add to this, I have attached a recipe for pipewire that we used to use (we have not used it for a while so it is not up-to-date). It should hopefully give you some more ideas. E.g., it uses automatic splitting of all the spa and module packages similar to how the GStreamer plugins are automatically split into separate packages.

//Peter

Quoted 107 lines

-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Tom Rini
Sent: den 17 oktober 2019 15:53
To: [email protected]
Cc: George Kiagiadakis <[email protected]>; Jan-Simon Möller <[email protected]>
Subject: [oe] [meta-oe][PATCHv2] pipewire: Initial add of 0.2.7

From: George Kiagiadakis <[email protected]>

Add PACKAGECONFIG options for the currently available features.

[Based on pipewire.inc / pipewire_git.bb from meta-agl-devel/meta- pipewire]

---
 .../pipewire/pipewire_git.bb                  | 65 +++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/pipewire/pipewire_git.bb
meta-oe/recipes-multimedia/pipewire/pipewire_git.bb new file +26 -0
new file mode 100644
index 000000000000..bcb3015f8bdc
@@ -0,0 +1,65 @@
+SUMMARY = "Multimedia processing server for Linux"
+AUTHOR = "Wim Taymans <[email protected]>"
+HOMEPAGE = "https://pipewire.org"
+SECTION = "multimedia"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=d8153c6e65986f862a0550ca74a3ed73 \
+    file://LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
+"
+DEPENDS = "alsa-lib dbus udev"
+SRCREV = "14c11c0fe4d366bad4cfecdee97b6652ff9ed63d"
+PV = "0.2.7"
+
+SRC_URI = "git://github.com/PipeWire/pipewire"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig systemd manpages
+
+PACKAGECONFIG ??= "\
+    ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
+    gstreamer \
+"
+
+PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
+PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-

Dgstreamer=disabled,glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base" +PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxml-parser-perl- native"

meta-oe/recipes-multimedia/pipewire/pipewire_git.bb new file +38 -1
+
+PACKAGES =+ "\
+    ${PN}-spa-plugins \
+    ${PN}-alsa \
+    ${PN}-config \
+    gstreamer1.0-${PN} \
+    lib${PN} \
+    lib${PN}-modules \
+"
+
+RDEPENDS_lib${PN} += "lib${PN}-modules ${PN}-spa-plugins"
+
+FILES_${PN} = "\
+    ${sysconfdir}/pipewire/pipewire.conf \
+    ${bindir}/pipewire* \
+    ${systemd_user_unitdir}/* \
+"
+FILES_lib${PN} = "\
+    ${libdir}/libpipewire-*.so.* \
+"
+FILES_lib${PN}-modules = "\
+    ${libdir}/pipewire-*/* \
+"
+FILES_${PN}-spa-plugins = "\
+    ${bindir}/spa-* \
+    ${libdir}/spa/* \
+"
+FILES_${PN}-alsa = "\
+    ${libdir}/alsa-lib/* \
+    ${datadir}/alsa/alsa.conf.d/50-pipewire.conf \
+"
+FILES_gstreamer1.0-${PN} = "\
+    ${libdir}/gstreamer-1.0/* \
+"
+
+CONFFILES_${PN} = "\
+    ${sysconfdir}/pipewire/pipewire.conf \
+"
--

2.17.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#2 lore raw
Quoted 5 lines · Peter Kjellerstedt

Just to add to this, I have attached a recipe for pipewire that we used to use (we have not used it for a while so it is not up-to-date). It should hopefully give you some more ideas. E.g., it uses automatic splitting of all the spa and module packages similar to how the GStreamer plugins are automatically split into separate packages.

I hesitate on adding stuff like this right now in that with 0.3 (and audio support) a bunch more stuff changes. One of my goals right now is to get pipewire 0.2.7 in such that it meets Andreas' needs and then with 0.3 later being able to confirm his use case still works when updating.

Signature · 1 line
Tom
#3 lore raw
Quoted 9 lines · Tom Rini
Quoted 5 lines · Peter Kjellerstedt

Just to add to this, I have attached a recipe for pipewire that we used to use (we have not used it for a while so it is not up-to-date). It should hopefully give you some more ideas. E.g., it uses automatic splitting of all the spa and module packages similar to how the GStreamer plugins are automatically split into separate packages.

Quoted 5 lines

I hesitate on adding stuff like this right now in that with 0.3 (and audio support) a bunch more stuff changes. One of my goals right now is to get pipewire 0.2.7 in such that it meets Andreas' needs and then with 0.3 later being able to confirm his use case still works when updating.

I think this is a very good start - thank you!

Andreas

#4 lore raw
In reply to Tom Rini
Quoted 17 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: den 17 oktober 2019 16:20
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]; George Kiagiadakis <[email protected]>; Jan-Simon Möller <[email protected]>
Subject: Re: [oe] [meta-oe][PATCHv2] pipewire: Initial add of 0.2.7

Quoted 5 lines · Peter Kjellerstedt

Just to add to this, I have attached a recipe for pipewire that we used to use (we have not used it for a while so it is not up-to-date). It should hopefully give you some more ideas. E.g., it uses automatic splitting of all the spa and module packages similar to how the GStreamer plugins are automatically split into separate packages.

Quoted 8 lines

I hesitate on adding stuff like this right now in that with 0.3 (and audio support) a bunch more stuff changes. One of my goals right now is to get pipewire 0.2.7 in such that it meets Andreas' needs and then with 0.3 later being able to confirm his use case still works when updating.

--
Tom

As I wrote, it was mainly to give you more ideas. Since we were sitting on them, but not using them ourselves, I thought it better to pass them along. Then you, or anyone else, can use them to improve the recipe at a convenient time.

//Peter

author
#5 lore raw
Quoted 23 lines · Peter Kjellerstedt
Quoted 17 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: den 17 oktober 2019 16:20
To: Peter Kjellerstedt <[email protected]>
Cc: [email protected]; George Kiagiadakis <[email protected]>; Jan-Simon Möller <[email protected]>
Subject: Re: [oe] [meta-oe][PATCHv2] pipewire: Initial add of 0.2.7

Quoted 5 lines · Peter Kjellerstedt

Just to add to this, I have attached a recipe for pipewire that we used to use (we have not used it for a while so it is not up-to-date). It should hopefully give you some more ideas. E.g., it uses automatic splitting of all the spa and module packages similar to how the GStreamer plugins are automatically split into separate packages.

Quoted 5 lines

I hesitate on adding stuff like this right now in that with 0.3 (and audio support) a bunch more stuff changes. One of my goals right now is to get pipewire 0.2.7 in such that it meets Andreas' needs and then with 0.3 later being able to confirm his use case still works when updating.

Quoted 4 lines

As I wrote, it was mainly to give you more ideas. Since we were sitting on them, but not using them ourselves, I thought it better to pass them along. Then you, or anyone else, can use them to improve the recipe at a convenient time.

Yes, thanks. I suspect that with 0.3 and later and even more plugins/modules that will be a handy example to reference.

Signature · 1 line
Tom