diff options
Diffstat (limited to 'media-plugins/deadbeef-waveform-seekbar')
4 files changed, 83 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-waveform-seekbar/Manifest b/media-plugins/deadbeef-waveform-seekbar/Manifest new file mode 100644 index 00000000..86a218ab --- /dev/null +++ b/media-plugins/deadbeef-waveform-seekbar/Manifest @@ -0,0 +1 @@ +DIST deadbeef-waveform-seekbar-0.5.tar.gz 17765 SHA256 6ecd46267d2be48451fe8bf153b98ec35d6b4274ee45548a6133b891ce0285dd SHA512 710031315df6d807c7b355660664481db15a98d3546e5e34a20867730e0eab0888a796c0ecdc1973b85b90eebcac8819064f7dc2d47d03b2aa30910b58481034 WHIRLPOOL 6fd08f5e40d5e6020f353171d2c356f16f0f60e90268fcdfee2455bb5cd73e91cd54dc5be6c30091c527959ac3840c5d5d51c6f4045a7b1dbfad41d13b8e609f diff --git a/media-plugins/deadbeef-waveform-seekbar/deadbeef-waveform-seekbar-0.5.ebuild b/media-plugins/deadbeef-waveform-seekbar/deadbeef-waveform-seekbar-0.5.ebuild new file mode 100644 index 00000000..9e40dd7c --- /dev/null +++ b/media-plugins/deadbeef-waveform-seekbar/deadbeef-waveform-seekbar-0.5.ebuild @@ -0,0 +1,29 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +DEADBEEF_GUI="yes" + +inherit deadbeef-plugins + +DESCRIPTION="DeaDBeeF waveform seekbar plugin" +HOMEPAGE="https://github.com/cboxdoerfer/ddb_waveform_seekbar" +SRC_URI="https://github.com/cboxdoerfer/ddb_waveform_seekbar/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~*" + +RDEPEND+=" dev-db/sqlite:3" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/ddb_waveform_seekbar-${PV}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-cflags-lm.patch" +} + +src_compile() { + use gtk2 && emake gtk2 + use gtk3 && emake gtk3 +} diff --git a/media-plugins/deadbeef-waveform-seekbar/deadbeef-waveform-seekbar-9999.ebuild b/media-plugins/deadbeef-waveform-seekbar/deadbeef-waveform-seekbar-9999.ebuild new file mode 100644 index 00000000..bbf6fbc3 --- /dev/null +++ b/media-plugins/deadbeef-waveform-seekbar/deadbeef-waveform-seekbar-9999.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 waveform seekbar plugin" +HOMEPAGE="https://github.com/cboxdoerfer/ddb_waveform_seekbar" +EGIT_REPO_URI="https://github.com/cboxdoerfer/ddb_waveform_seekbar.git" + +LICENSE="GPL-2" +KEYWORDS="" + +RDEPEND+=" dev-db/sqlite:3" + +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-cflags-lm.patch" +} + +src_compile() { + use gtk2 && emake gtk2 + use gtk3 && emake gtk3 +} diff --git a/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch b/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch new file mode 100644 index 00000000..7866cce1 --- /dev/null +++ b/media-plugins/deadbeef-waveform-seekbar/files/deadbeef-waveform-seekbar-cflags-lm.patch @@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index e06b20c..a0867f8 100644 +--- a/Makefile ++++ b/Makefile +@@ -36,8 +36,8 @@ GTK3_LIBS?=`pkg-config --libs gtk+-3.0` + SQLITE_LIBS?=-lsqlite3 + + CC?=gcc +-CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE +-LDFLAGS+=-shared ++CFLAGS+=-Wall -fPIC -std=c99 -D_GNU_SOURCE -lm ++LDFLAGS+=-shared -lm + + GTK2_DIR?=gtk2 + GTK3_DIR?=gtk3 +@@ -52,8 +52,8 @@ define compile + endef + + define link +- echo $(CC) $(LDFLAGS) $1 $2 $3 -o $@ +- $(CC) $(LDFLAGS) $1 $2 $3 -o $@ ++ echo $(CC) $(CFLAGS) $(LDFLAGS) $1 $2 $3 -o $@ ++ $(CC) $(CFLAGS) $(LDFLAGS) $1 $2 $3 -o $@ + endef + + # Builds both GTK+2 and GTK+3 versions of the plugin. |