[packages/Carla] add /usr/share/soundfonts to default search paths

jajcus jajcus at pld-linux.org
Sat Feb 3 23:08:24 CET 2018


commit bd1288e5789ac91ae455f9e1e49620937adae8c5
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Feb 3 23:00:04 2018 +0100

    add /usr/share/soundfonts to default search paths

 Carla.spec            |  2 ++
 soundfonts_path.patch | 15 +++++++++++++++
 2 files changed, 17 insertions(+)
---
diff --git a/Carla.spec b/Carla.spec
index 3cbb22a..72186ae 100644
--- a/Carla.spec
+++ b/Carla.spec
@@ -12,6 +12,7 @@ Group:		Applications
 Source0:	https://github.com/falkTX/Carla/archive/%{tag}/%{name}-%{tag}.tar.gz
 # Source0-md5:	279acb33716327c82516d6edb8ff6d13
 Patch0:		pypkgdir.patch
+Patch1:		soundfonts_path.patch
 URL:		http://kxstudio.linuxaudio.org/Applications:Carla
 BuildRequires:	Mesa-libGL-devel
 BuildRequires:	Qt5Core-devel
@@ -60,6 +61,7 @@ Pliki nagłówkowe biblioteki %{name}.
 %setup -q -n %{name}-%{tag}
 
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} -j1 \
diff --git a/soundfonts_path.patch b/soundfonts_path.patch
new file mode 100644
index 0000000..d11d8ae
--- /dev/null
+++ b/soundfonts_path.patch
@@ -0,0 +1,15 @@
+diff -dur -x '*~' Carla-1.9.8.orig/source/carla_shared.py Carla-1.9.8/source/carla_shared.py
+--- Carla-1.9.8.orig/source/carla_shared.py	2018-01-22 22:05:35.000000000 +0100
++++ Carla-1.9.8/source/carla_shared.py	2018-02-03 22:59:15.581089609 +0100
+@@ -425,9 +425,11 @@
+     DEFAULT_GIG_PATH    += ":/usr/share/sounds/gig"
+ 
+     DEFAULT_SF2_PATH     = HOME + "/.sounds/sf2"
++    DEFAULT_SF2_PATH    += ":/usr/share/soundfonts"
+     DEFAULT_SF2_PATH    += ":/usr/share/sounds/sf2"
+ 
+     DEFAULT_SFZ_PATH     = HOME + "/.sounds/sfz"
++    DEFAULT_SFZ_PATH    += ":/usr/share/soundfonts"
+     DEFAULT_SFZ_PATH    += ":/usr/share/sounds/sfz"
+ 
+ if not WINDOWS:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Carla.git/commitdiff/bd1288e5789ac91ae455f9e1e49620937adae8c5



More information about the pld-cvs-commit mailing list