[gnome-build-meta/abderrahim/sync-fdsdk: 5/6] sdk: add pipewire libjack compatibility library




commit 33d88c1e31dea97c53e71491d80f7a96461a7c40
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Tue Sep 22 13:43:22 2020 +0100

    sdk: add pipewire libjack compatibility library
    
    Fixes #327

 elements/sdk-platform.bst         |  1 +
 elements/sdk/pipewire-libjack.bst | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)
---
diff --git a/elements/sdk-platform.bst b/elements/sdk-platform.bst
index 0e3d1d44..0b011cd9 100644
--- a/elements/sdk-platform.bst
+++ b/elements/sdk-platform.bst
@@ -44,6 +44,7 @@ depends:
 - sdk/pango.bst
 - sdk/pinentry.bst
 - sdk/pipewire.bst
+- sdk/pipewire-libjack.bst
 - sdk/pygobject.bst
 - sdk/tracker.bst
 - sdk/woff2.bst
diff --git a/elements/sdk/pipewire-libjack.bst b/elements/sdk/pipewire-libjack.bst
new file mode 100644
index 00000000..a626f193
--- /dev/null
+++ b/elements/sdk/pipewire-libjack.bst
@@ -0,0 +1,24 @@
+kind: filter
+
+build-depends:
+- freedesktop-sdk.bst:components/pipewire-libjack.bst
+
+runtime-depends:
+- sdk/pipewire.bst
+
+public:
+  bst:
+    split-rules:
+      devel:
+        (>):
+        - '%{libdir}/pipewire-0.3/jack/libjack.so'
+        - '%{libdir}/pipewire-0.3/jack/libjacknet.so'
+        - '%{libdir}/pipewire-0.3/jack/libjackserver.so'
+
+    integration-commands:
+    - rm -f "%{libdir}"/libjack.so*
+    - rm -f "%{libdir}"/libjacknet.so*
+    - rm -f "%{libdir}"/libjackserver.so*
+    - ln -sf pipewire-0.3/jack/libjack.so.0 "%{libdir}/libjack.so.0"
+    - ln -sf pipewire-0.3/jack/libjackserver.so.0 "%{libdir}/libjackserver.so.0"
+    - ln -sf pipewire-0.3/jack/libjacknet.so.0 "%{libdir}/libjacknet.so.0"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]