diff options
Diffstat (limited to 'media-plugins/deadbeef-musical-spectrum')
4 files changed, 78 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-musical-spectrum/Manifest b/media-plugins/deadbeef-musical-spectrum/Manifest new file mode 100644 index 00000000..2415bc75 --- /dev/null +++ b/media-plugins/deadbeef-musical-spectrum/Manifest @@ -0,0 +1 @@ +DIST deadbeef-musical-spectrum-20150124.tar.gz 19521 SHA256 4c31ea5fac346fae6aec2a1b8fbb996f20ab015f0a7385841113e39961efb180 SHA512 d90904b9197a122c137c2fc247a5e9760d6c6de96b7c615fc8eccc76b22a5df35fb52a653a89df188a88dced3a6b3485341949c10506652c1b044d57a7081214 WHIRLPOOL 6109deabc84a60efd74b97b15e93f9ce6432d4c0aa374708cf5af400716c76c85dffacbb94595ac8b12c10fd64c8698869a403973774dab00db12b8b47782bd8 diff --git a/media-plugins/deadbeef-musical-spectrum/deadbeef-musical-spectrum-20150124.ebuild b/media-plugins/deadbeef-musical-spectrum/deadbeef-musical-spectrum-20150124.ebuild new file mode 100644 index 00000000..e3b6e6f1 --- /dev/null +++ b/media-plugins/deadbeef-musical-spectrum/deadbeef-musical-spectrum-20150124.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="ce0f4daaf295186d9d89787870997bbd8e93c674" + +DESCRIPTION="DeaDBeeF musical spectrum plugin" +HOMEPAGE="https://github.com/cboxdoerfer/ddb_musical_spectrum" +SRC_URI="https://github.com/cboxdoerfer/ddb_musical_spectrum/archive/${GITHUB_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~*" + +RDEPEND+=" sci-libs/fftw:3.0=" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/ddb_musical_spectrum-${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-musical-spectrum/deadbeef-musical-spectrum-99999999.ebuild b/media-plugins/deadbeef-musical-spectrum/deadbeef-musical-spectrum-99999999.ebuild new file mode 100644 index 00000000..4a4ffd92 --- /dev/null +++ b/media-plugins/deadbeef-musical-spectrum/deadbeef-musical-spectrum-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 musical spectrum plugin" +HOMEPAGE="https://github.com/cboxdoerfer/ddb_musical_spectrum" +EGIT_REPO_URI="https://github.com/cboxdoerfer/ddb_musical_spectrum.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-musical-spectrum/files/deadbeef-musical-spectrum-cflags.patch b/media-plugins/deadbeef-musical-spectrum/files/deadbeef-musical-spectrum-cflags.patch new file mode 100644 index 00000000..95b11fb4 --- /dev/null +++ b/media-plugins/deadbeef-musical-spectrum/files/deadbeef-musical-spectrum-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. |