summaryrefslogtreecommitdiff
path: root/audio/alsaequal/lib64fix+EqRename.diff
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2014-02-17 16:13:50 +0700
committerErik Hanson <erik@slackbuilds.org>2014-02-18 14:59:55 -0600
commit74a301c2b23f8d69fd1d793a1864060573f69e78 (patch)
treefb924c0c003d20ccbe3c958921e25936da8a01b9 /audio/alsaequal/lib64fix+EqRename.diff
parent051836e5140ce4e91225c5ee58c6c43730f2a30e (diff)
downloadslackbuilds-74a301c2b23f8d69fd1d793a1864060573f69e78.tar.gz
audio/alsaequal: Updated for new caps Eq name.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/alsaequal/lib64fix+EqRename.diff')
-rw-r--r--audio/alsaequal/lib64fix+EqRename.diff61
1 files changed, 61 insertions, 0 deletions
diff --git a/audio/alsaequal/lib64fix+EqRename.diff b/audio/alsaequal/lib64fix+EqRename.diff
new file mode 100644
index 0000000000..80f42374a8
--- /dev/null
+++ b/audio/alsaequal/lib64fix+EqRename.diff
@@ -0,0 +1,61 @@
+diff -Naur a/Makefile b/Makefile
+--- a/Makefile 2010-03-05 17:30:39.000000000 +0000
++++ b/Makefile 2014-02-12 20:57:50.432081552 +0000
+@@ -45,11 +45,11 @@
+
+ install: all
+ @echo Installing...
+- $(Q)install -m 644 $(SND_PCM_BIN) ${DESTDIR}/usr/lib/alsa-lib/
+- $(Q)install -m 644 $(SND_CTL_BIN) ${DESTDIR}/usr/lib/alsa-lib/
++ $(Q)install -m 644 $(SND_PCM_BIN) ${DESTDIR}/usr/lib@LIBDIRSUFFIX@/alsa-lib/
++ $(Q)install -m 644 $(SND_CTL_BIN) ${DESTDIR}/usr/lib@LIBDIRSUFFIX@/alsa-lib/
+
+ uninstall:
+ @echo Un-installing...
+- $(Q)rm ${DESTDIR}/usr/lib/alsa-lib/$(SND_PCM_BIN)
+- $(Q)rm ${DESTDIR}/usr/lib/alsa-lib/$(SND_CTL_BIN)
++ $(Q)rm ${DESTDIR}/usr/lib@LIBDIRSUFFIX@/alsa-lib/$(SND_PCM_BIN)
++ $(Q)rm ${DESTDIR}/usr/lib@LIBDIRSUFFIX@/alsa-lib/$(SND_CTL_BIN)
+
+diff -Naur a/ctl_equal.c b/ctl_equal.c
+--- a/ctl_equal.c 2009-01-31 22:06:47.000000000 +0000
++++ b/ctl_equal.c 2014-02-12 21:12:08.155101938 +0000
+@@ -166,8 +166,8 @@
+ snd_config_iterator_t it, next;
+ snd_ctl_equal_t *equal;
+ const char *controls = ".alsaequal.bin";
+- const char *library = "/usr/lib/ladspa/caps.so";
+- const char *module = "Eq";
++ const char *library = "/usr/lib@LIBDIRSUFFIX@/ladspa/caps.so";
++ const char *module = "Eq10";
+ long channels = 2;
+ const char *sufix = " Playback Volume";
+ int err, i, index;
+@@ -263,9 +263,10 @@
+ for(i = 0; i < equal->num_input_controls; i++) {
+ if(equal->control_data->control[i].type == LADSPA_CNTRL_INPUT) {
+ index = equal->control_data->control[i].index;
+- if(equal->klass->PortDescriptors[index] !=
+- (LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL)) {
+- SNDERR("Problem with control file %s, %d.", controls, index);
++ //if(equal->klass->PortDescriptors[index] !=
++ // (LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL)) {
++ if((0xf & equal->control_data->control[i].type) != LADSPA_CNTRL_INPUT) {
++ SNDERR("Problem with control file %s, %d.", controls, index);
+ return -1;
+ }
+ equal->control_info[i].min =
+diff -Naur a/pcm_equal.c b/pcm_equal.c
+--- a/pcm_equal.c 2010-02-01 22:55:00.000000000 +0000
++++ b/pcm_equal.c 2014-02-12 20:49:41.297069927 +0000
+@@ -150,8 +150,8 @@
+ snd_pcm_equal_t *equal;
+ snd_config_t *sconf = NULL;
+ const char *controls = ".alsaequal.bin";
+- const char *library = "/usr/lib/ladspa/caps.so";
+- const char *module = "Eq";
++ const char *library = "/usr/lib@LIBDIRSUFFIX@/ladspa/caps.so";
++ const char *module = "Eq10";
+ long channels = 2;
+ int err;
+