summaryrefslogtreecommitdiff
blob: 140ad292c2d6664501e4c4fa8210a4b56a42d8b3 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="3"

inherit eutils autotools

DESCRIPTION="Curses CD player based on the interface of a tool shipped with SoundBlaster 16."
HOMEPAGE="http://sbcd.sourceforge.net/"
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PN}%20${PV}/${P}.tar.gz"

LICENSE="|| ( GPL-2 GPL-3 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"

DEPEND="media-libs/libsdl"
RDEPEND="${DEPEND}"

src_prepare() {
	epatch "${FILESDIR}"/${P}-configure.patch
	eautoconf
	eautomake
}

src_configure() {
	econf $(use debug && echo " --enable-freedbdebug")
}

src_install() {
	emake DESTDIR="${D}" install || die
	dodoc BUGS ChangeLog AUTHORS README TODO || die
}