public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/betagarden:master commit in: media-sound/dermixd/, media-sound/dermixd/files/
@ 2015-06-30 21:37 Sebastian Pipping
  0 siblings, 0 replies; only message in thread
From: Sebastian Pipping @ 2015-06-30 21:37 UTC (permalink / raw
  To: gentoo-commits

commit:     2ad838e68bc250cfb1740d7cf27d9fd7fc94776f
Author:     Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Tue Jun 30 21:25:11 2015 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Tue Jun 30 21:36:15 2015 +0000
URL:        https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=2ad838e6

media-sound/dermixd: 1.6.2

 media-sound/dermixd/dermixd-1.6.2.ebuild           |  47 ++++++++
 .../dermixd/files/dermixd-1.6.2-compile.patch      | 121 +++++++++++++++++++++
 2 files changed, 168 insertions(+)

diff --git a/media-sound/dermixd/dermixd-1.6.2.ebuild b/media-sound/dermixd/dermixd-1.6.2.ebuild
new file mode 100644
index 0000000..09142d7
--- /dev/null
+++ b/media-sound/dermixd/dermixd-1.6.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Multi-stream music player daemon"
+HOMEPAGE="http://thomas.orgis.org/dermixd/i.shtml"
+SRC_URI="http://thomas.orgis.org/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+	dev-lang/perl
+	media-libs/alsa-lib
+	media-libs/libsndfile
+	media-libs/libvorbis
+	media-sound/mpg123
+	sys-devel/gcc[cxx]
+	"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+	epatch "${FILESDIR}"/${P}-compile.patch
+}
+
+src_compile() {
+	emake SNDFILE=yes VORBISFILE=yes gnu-alsa || die
+}
+
+src_install() {
+	# Library
+	insinto /usr/lib/${PN}
+	doins frontend/Param.pm
+	doins -r frontend/DerMixD
+
+	# Commands
+	newbin frontend/simple_player ${PN}-simple-player
+	newbin frontend/shuffle ${PN}-shuffle
+	dobin frontend/${PN}-control
+	dobin ${PN}
+}

diff --git a/media-sound/dermixd/files/dermixd-1.6.2-compile.patch b/media-sound/dermixd/files/dermixd-1.6.2-compile.patch
new file mode 100644
index 0000000..76344aa
--- /dev/null
+++ b/media-sound/dermixd/files/dermixd-1.6.2-compile.patch
@@ -0,0 +1,121 @@
+From f26141183f24c9cea162352cf7aaa982e27b4978 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Tue, 30 Jun 2015 22:58:10 +0200
+Subject: [PATCH] Add missing libc includes
+
+---
+ audio_fifo.cxx    | 1 +
+ in_vorbisfile.cxx | 3 +++
+ input.cxx         | 3 +++
+ mixer.cxx         | 1 +
+ mixer_data.cxx    | 2 ++
+ mixer_tools.cxx   | 2 ++
+ param.cxx         | 1 +
+ tstring.cxx       | 1 +
+ 8 files changed, 14 insertions(+)
+
+diff --git a/audio_fifo.cxx b/audio_fifo.cxx
+index 8a59757..984b287 100644
+--- a/audio_fifo.cxx
++++ b/audio_fifo.cxx
+@@ -40,6 +40,7 @@
+ #include "audio_fifo.hxx"
+ #include "param.hxx"
+ #include "secsleep.hxx"
++#include <cstring>  // memcpy
+ #include <sys/time.h>
+ 
+ void* fifo_reader(void* p)
+diff --git a/in_vorbisfile.cxx b/in_vorbisfile.cxx
+index 376d116..362cda0 100644
+--- a/in_vorbisfile.cxx
++++ b/in_vorbisfile.cxx
+@@ -13,6 +13,9 @@
+ #define ME "vorbisfile_input"
+ #define MEF "vorbis_file"
+ 
++#include <cstdio>  // vsnprintf
++#include <cstring>  // memset
++
+ // Hm, actually we talk about vorbus, ogg is generic... but it is the common file name ending.
+ // Dammit, I should code real file type detection... using libmagic... test access.
+ const string vorbisfile_input::t = "ogg";
+diff --git a/input.cxx b/input.cxx
+index 37355a1..97f7356 100644
+--- a/input.cxx
++++ b/input.cxx
+@@ -25,6 +25,9 @@
+ #ifdef IN_SNDFILE
+ #include "in_sndfile.hxx"
+ #endif
++
++#include <strings.h>  // strcasecmp
++
+ input_device* new_input_device(string type, input_data& data)
+ {
+ 	if(strcasecmp(type.c_str(), mpg123_input::t.c_str()) == 0) return new mpg123_input(&data);
+diff --git a/mixer.cxx b/mixer.cxx
+index 7164fa5..2f739bb 100644
+--- a/mixer.cxx
++++ b/mixer.cxx
+@@ -10,6 +10,7 @@
+ 
+ #include <fcntl.h>
+ #include <signal.h>
++#include <cstring>  // memmove
+ 
+ #include "audio_buffer.hxx"
+ #include "audio_functions.hxx"
+diff --git a/mixer_data.cxx b/mixer_data.cxx
+index 3da6e00..29588e6 100644
+--- a/mixer_data.cxx
++++ b/mixer_data.cxx
+@@ -22,6 +22,8 @@
+ #include "mixer_tools.hxx"
+ #include "communicator_actions.hxx"
+ 
++#include <strings.h>  // strcasecmp
++
+ //#define DEBUG_SCRIPT
+ //#define DEBUG_MIXER2
+ //#define DEBUG_RESET
+diff --git a/mixer_tools.cxx b/mixer_tools.cxx
+index c9f5365..73bc3bc 100644
+--- a/mixer_tools.cxx
++++ b/mixer_tools.cxx
+@@ -19,6 +19,8 @@
+ #include "mixer_data.hxx"
+ #include "mixer_tools.hxx"
+ 
++#include <strings.h>  // strcasecmp
++
+ //#define DEBUG_TOOLS
+ 
+ string stringstatus(signed char status)
+diff --git a/param.cxx b/param.cxx
+index c3eff1f..d19882c 100644
+--- a/param.cxx
++++ b/param.cxx
+@@ -8,6 +8,7 @@
+ //not depending on dermixd's common header, this stuff can easily tranfserred to other projects or into an independent library
+ #include <cstdlib>
+ #include <cstdio>
++#include <strings.h>  // strcasecmp
+ #include <string>
+ #include <vector>
+ using namespace std;
+diff --git a/tstring.cxx b/tstring.cxx
+index 04e91f2..3a6d3cb 100644
+--- a/tstring.cxx
++++ b/tstring.cxx
+@@ -5,6 +5,7 @@
+ 	(c)2008 Thomas Orgis, licensed under GPLv2
+ */
+ #include "tstring.hxx"
++#include <cstdio>  // vsnprintf
+ using namespace std;
+ 
+ // Chunks for increasing the sprintf buffer.
+-- 
+2.4.0
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-30 21:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 21:37 [gentoo-commits] proj/betagarden:master commit in: media-sound/dermixd/, media-sound/dermixd/files/ Sebastian Pipping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox