summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-bs2b
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/deadbeef-bs2b')
-rw-r--r--media-plugins/deadbeef-bs2b/Manifest1
-rw-r--r--media-plugins/deadbeef-bs2b/deadbeef-bs2b-20110319.ebuild24
-rw-r--r--media-plugins/deadbeef-bs2b/deadbeef-bs2b-99999999.ebuild20
-rw-r--r--media-plugins/deadbeef-bs2b/files/deadbeef-bs2b.patch57
4 files changed, 102 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-bs2b/Manifest b/media-plugins/deadbeef-bs2b/Manifest
new file mode 100644
index 00000000..c4f96874
--- /dev/null
+++ b/media-plugins/deadbeef-bs2b/Manifest
@@ -0,0 +1 @@
+DIST deadbeef-bs2b-20110319.tar.gz 2516 SHA256 f4ed278edabb84f3e432aa7563a20a8549a0e1dd10b6d7f4bd7310d23bf53684 SHA512 241faec7f35b6ae0c8bd2a31046a7d729c379d66bf011a296b7f516e5d1e436499e2a9c813eced1b7a5ef702d23e1c446e5f63a2be5614eedfaaecc1f10985a8 WHIRLPOOL 45166c31ca91e8e7f92ca67208e81b20f78fe5e34d8121529de05594e78629d255e71b35a2511b48550fd242c6edc8775aaba96ced48b517add1e04c9673d384
diff --git a/media-plugins/deadbeef-bs2b/deadbeef-bs2b-20110319.ebuild b/media-plugins/deadbeef-bs2b/deadbeef-bs2b-20110319.ebuild
new file mode 100644
index 00000000..c7e0d91c
--- /dev/null
+++ b/media-plugins/deadbeef-bs2b/deadbeef-bs2b-20110319.ebuild
@@ -0,0 +1,24 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit deadbeef-plugins
+
+GITORIOUS_COMMIT="a1961cd2f0686a7bdf0915f1fc7d62b5aba369bd"
+
+DESCRIPTION="DeaDBeeF bs2b dsp plugin"
+HOMEPAGE="https://gitorious.org/deadbeef-sm-plugins/bs2b"
+SRC_URI="https://gitorious.org/deadbeef-sm-plugins/bs2b/archive/${GITORIOUS_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~*"
+
+RDEPEND+=" media-libs/libbs2b:0"
+
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/deadbeef-sm-plugins-bs2b"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}.patch"
+}
diff --git a/media-plugins/deadbeef-bs2b/deadbeef-bs2b-99999999.ebuild b/media-plugins/deadbeef-bs2b/deadbeef-bs2b-99999999.ebuild
new file mode 100644
index 00000000..24d185ef
--- /dev/null
+++ b/media-plugins/deadbeef-bs2b/deadbeef-bs2b-99999999.ebuild
@@ -0,0 +1,20 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit deadbeef-plugins git-r3
+
+DESCRIPTION="DeaDBeeF bs2b dsp plugin"
+HOMEPAGE="https://gitorious.org/deadbeef-sm-plugins/bs2b"
+EGIT_REPO_URI="https://gitorious.org/deadbeef-sm-plugins/bs2b.git"
+
+LICENSE="MIT"
+KEYWORDS=""
+
+RDEPEND+=" media-libs/libbs2b:0"
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}.patch"
+}
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);
+ }