summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-spectrogram
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/deadbeef-spectrogram')
-rw-r--r--media-plugins/deadbeef-spectrogram/Manifest1
-rw-r--r--media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-20150110.ebuild31
-rw-r--r--media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-99999999.ebuild27
-rw-r--r--media-plugins/deadbeef-spectrogram/files/deadbeef-spectrogram-cflags.patch19
4 files changed, 78 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-spectrogram/Manifest b/media-plugins/deadbeef-spectrogram/Manifest
new file mode 100644
index 00000000..1b9801a3
--- /dev/null
+++ b/media-plugins/deadbeef-spectrogram/Manifest
@@ -0,0 +1 @@
+DIST deadbeef-spectrogram-20150110.tar.gz 12503 SHA256 7db6356d994666a10b3f69e2397ee86f56f078ce44eadce63a7e4962e40f11f2 SHA512 cb0a9e8d989f7419c0c6b2547389755ced744611872a0c59c86406f1fc12a77fe86a4231a2552e272939a8d84c5693f788f2de26309fca09cbd04d596fffc2aa WHIRLPOOL 7526e92b1c5e2f7189ea4d7fe653f5e4f84ceb6c13b602e3b0a110aceda30258127b02e2e290b200ed2c3f00c953b42f86b95983ee74bc721e96b57e1ce71464
diff --git a/media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-20150110.ebuild b/media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-20150110.ebuild
new file mode 100644
index 00000000..d8d73d6f
--- /dev/null
+++ b/media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-20150110.ebuild
@@ -0,0 +1,31 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DEADBEEF_GUI="yes"
+
+inherit deadbeef-plugins
+
+GITHUB_COMMIT="8d1b3713f3a3a8a93b4934a4782fb3db7f744fb7"
+
+DESCRIPTION="DeaDBeeF spectrogram plugin"
+HOMEPAGE="https://github.com/cboxdoerfer/ddb_spectrogram"
+SRC_URI="https://github.com/cboxdoerfer/ddb_spectrogram/archive/${GITHUB_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~*"
+
+RDEPEND+=" sci-libs/fftw:3.0="
+
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/ddb_spectrogram-${GITHUB_COMMIT}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-cflags.patch"
+}
+
+src_compile() {
+ use gtk2 && emake gtk2
+ use gtk3 && emake gtk3
+}
diff --git a/media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-99999999.ebuild b/media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-99999999.ebuild
new file mode 100644
index 00000000..12f794ba
--- /dev/null
+++ b/media-plugins/deadbeef-spectrogram/deadbeef-spectrogram-99999999.ebuild
@@ -0,0 +1,27 @@
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DEADBEEF_GUI="yes"
+
+inherit deadbeef-plugins git-r3
+
+DESCRIPTION="DeaDBeeF spectrogram plugin"
+HOMEPAGE="https://github.com/cboxdoerfer/ddb_spectrogram"
+EGIT_REPO_URI="https://github.com/cboxdoerfer/ddb_spectrogram.git"
+
+LICENSE="GPL-2"
+KEYWORDS=""
+
+RDEPEND+=" sci-libs/fftw:3.0="
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-cflags.patch"
+}
+
+src_compile() {
+ use gtk2 && emake gtk2
+ use gtk3 && emake gtk3
+}
diff --git a/media-plugins/deadbeef-spectrogram/files/deadbeef-spectrogram-cflags.patch b/media-plugins/deadbeef-spectrogram/files/deadbeef-spectrogram-cflags.patch
new file mode 100644
index 00000000..95b11fb4
--- /dev/null
+++ b/media-plugins/deadbeef-spectrogram/files/deadbeef-spectrogram-cflags.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile b/Makefile
+index 9c894c7..86bb61b 100644
+--- a/Makefile
++++ b/Makefile
+@@ -43,11 +43,13 @@ OBJ_GTK2?=$(patsubst %.c, $(GTK2_DIR)/%.o, $(SOURCES))
+ OBJ_GTK3?=$(patsubst %.c, $(GTK3_DIR)/%.o, $(SOURCES))
+
+ define compile
++ echo $(CC) $(CFLAGS) $1 $2 $< -c -o $@
+ $(CC) $(CFLAGS) $1 $2 $< -c -o $@
+ endef
+
+ define link
+- $(CC) $(LDFLAGS) $1 $2 $3 -o $@
++ echo $(CC) $(LDFLAGS) $1 $2 $3 -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) $1 $2 $3 -o $@
+ endef
+
+ # Builds both GTK+2 and GTK+3 versions of the plugin.