summaryrefslogtreecommitdiff
blob: 2f444d75e5d6ef3c9e1a5b7e138ffa5086fa2307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

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}
}