diff options
author | Stefan Cristian B. <steven.darklight@gmail.com> | 2015-06-18 18:31:03 +0300 |
---|---|---|
committer | Stefan Cristian B. <steven.darklight@gmail.com> | 2015-06-18 18:31:03 +0300 |
commit | 71c20430bd06d80b663fb54d1df67598d804c219 (patch) | |
tree | 8ed9e8852b128c270f9197edf597532ac3fd8e11 /media-plugins/deadbeef-bs2b/files | |
parent | 35875647a1f4db65a3a7a559479ef8e311acbac2 (diff) | |
parent | 975d01bc65f0f9190808c0d3cddf3131a790a8f6 (diff) |
Merge pull request #52 from crismblog/master
Applications useful and beautiful themes
Diffstat (limited to 'media-plugins/deadbeef-bs2b/files')
-rw-r--r-- | media-plugins/deadbeef-bs2b/files/deadbeef-bs2b.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-bs2b/files/deadbeef-bs2b.patch b/media-plugins/deadbeef-bs2b/files/deadbeef-bs2b.patch new file mode 100644 index 00000000..5d11f486 --- /dev/null +++ b/media-plugins/deadbeef-bs2b/files/deadbeef-bs2b.patch @@ -0,0 +1,57 @@ +diff --git a/Makefile b/Makefile +index cf49b21..5919b68 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,2 +1,21 @@ +-all: +- gcc -I/usr/local/include -std=c99 -shared -O2 -o bs2b.so -lbs2b bs2b.c -fPIC -Wall -march=native ++OUT?=ddb_bs2b.so ++ ++BS2B_LIBS?=-lbs2b ++CFLAGS+=-std=c99 -fPIC -Wall -shared -lm ++#LDFLAGS+= ++ ++SOURCES=bs2b.c ++ ++OBJECTS=$(SOURCES:.c=.o) ++ ++all: $(SOURCES) $(OUT) ++ ++$(OUT): $(OBJECTS) ++ $(CC) $(CFLAGS) $(OBJECTS) -o $@ $(BS2B_LIBS) $(LDFLAGS) ++ ++.c.o: ++ $(CC) $(CFLAGS) $< -c -o $@ ++ ++clean: ++ rm $(OBJECTS) $(OUT) ++ +diff --git a/bs2b.c b/bs2b.c +index bd9f025..ca5a2c2 100644 +--- a/bs2b.c ++++ b/bs2b.c +@@ -132,12 +132,13 @@ static const char ddb_bs2b_dialog[] = + ; + + static DB_dsp_t plugin = { +- DB_PLUGIN_SET_API_VERSION ++ .plugin.api_vmajor = 1, ++ .plugin.api_vminor = 0, + .plugin.version_major = 0, + .plugin.version_minor = 2, + .plugin.type = DB_PLUGIN_DSP, + .plugin.id = "bs2b", +- .plugin.name = "Headphone crossfeed", ++ .plugin.name = "Headphone crossfeed (bs2b)", + .plugin.descr = "Headphone crossfeed plugin using libbs2b by Boris Mikhaylov", + .plugin.copyright = "Copyright (C) 2010-2011 Steven McDonald <steven.mcdonald@libremail.me>", + .plugin.website = "http://gitorious.org/deadbeef-sm-plugins/pages/Home", +@@ -153,7 +154,7 @@ static DB_dsp_t plugin = { + }; + + DB_plugin_t * +-bs2b_load (DB_functions_t *api) { ++ddb_bs2b_load (DB_functions_t *api) { + deadbeef = api; + return DB_PLUGIN (&plugin); + } |