summaryrefslogtreecommitdiff
blob: 9169a992e12c99ce1d39d679e2f847bfe7792f9d (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/gxmms/gxmms-0.3.0.ebuild,v 1.2 2005/10/03 22:18:07 swegener Exp $

inherit gnome2
DESCRIPTION="XMMS applet for Gnome2 panel"

HOMEPAGE="http://www.nongnu.org/gxmms/"

SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~sparc ~ppc"
IUSE="bmp"
USE_DESTDIR="1"

DEPEND=">=gnome-base/gnome-panel-2.0
	bmp? ( >=media-sound/beep-media-player-0.9.7 )
	!bmp? ( >=media-sound/xmms-1.2.7-r23 )"

pkg_setup() {
	if use bmp; then
		einfo "Building gxmms with bmp support."
	else
		einfo "Building gxmms with xmms support."
		einfo "To enable bmp support set bmp useflag!"
	fi
}

src_compile() {
	cd ${WORKDIR}/${P}

	if use bmp; then
		econf `use_with bmp` || die
	else
		econf --with-xmms || die
	fi

	emake || die "make failed"
}