2
## 01_ecasoundrc-location-fix.dpatch by Junichi Uekawa <dancer@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Change path for /usr/share/ecasound/ecasound2.2
8
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
12
-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
13
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
15
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
21
diff -ur ecasound2.2-2.3.5/libecasound.orig/Makefile.am ecasound2.2-2.3.5/libecasound/Makefile.am
22
--- ecasound2.2-2.3.5/libecasound.orig/Makefile.am 2004-11-13 11:03:21.000000000 +0900
23
+++ ecasound2.2-2.3.5/libecasound/Makefile.am 2004-11-13 11:32:12.000000000 +0900
25
-I$(top_srcdir)/kvutils \
26
$(ECA_S_EXTRA_CPPFLAGS)
28
+# Add this to CPPFLAGS
29
+CPPFLAGS += "-DPKGDATADIR=\"${pkgdatadir}\""
31
# ----------------------------------------------------------------------
33
# ----------------------------------------------------------------------
34
diff -ur ecasound2.2-2.3.5/libecasound.orig/eca-resources.cpp ecasound2.2-2.3.5/libecasound/eca-resources.cpp
35
--- ecasound2.2-2.3.5/libecasound.orig/eca-resources.cpp 2004-11-13 11:03:21.000000000 +0900
36
+++ ecasound2.2-2.3.5/libecasound/eca-resources.cpp 2004-11-13 11:13:46.000000000 +0900
38
ECA_RESOURCES::ECA_RESOURCES(void)
39
: resources_found_rep(true)
41
- string ecasound_prefix (ECA_PREFIX);
42
- string ecasound_resource_path = ecasound_prefix + "/share/ecasound";
43
+ string ecasound_resource_path (PKGDATADIR);
45
globalrc_repp = new RESOURCE_FILE();
46
globalrc_repp->resource_file(ecasound_resource_path + "/ecasoundrc");
47
--- ecasound2.2-2.3.5/ecasoundrc.in~ 2004-11-13 11:01:49.000000000 +0900
48
+++ ecasound2.2-2.3.5/ecasoundrc.in 2004-11-17 08:09:23.000000000 +0900
50
bmode-defaults-nonrt = 1024,false,50,false,100000,true
51
bmode-defaults-rt = 1024,true,50,true,100000,true
52
bmode-defaults-rtlowlatency = 256,true,50,true,100000,false
53
-resource-directory = @prefix@/share/ecasound
54
+resource-directory = @prefix@/share/ecasound2.2/ecasound
55
resource-file-genosc-envelopes = generic_oscillators
56
resource-file-effect-presets = effect_presets
57
ladspa-plugin-directory = @prefix@/lib/ladspa