summaryrefslogtreecommitdiff
blob: 72a2f06343af1ed285beaf0c97cd289276142ef3 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/yconsole/yconsole-3.4.3.ebuild,v 1.5 2007/08/24 20:32:14 dertobi123 Exp $

inherit eutils toolchain-funcs

DESCRIPTION="User interface to control and monitor the Y server"
HOMEPAGE="http://wolfpack.twu.net/YIFF"
SRC_URI="ftp://wolfpack.twu.net/users/wolfpack/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""

DEPEND="=x11-libs/gtk+-1*
	media-libs/imlib
	media-libs/yiff"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-Makefile.patch
	epatch "${FILESDIR}"/${P}-implicit-declaration.patch
}

src_compile() {
	cd ${PN}
	emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
		CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "emake failed."
}

src_install() {
	dodoc AUTHORS README

	cd ${PN}
	emake PREFIX="${D}"/usr install || die "emake install failed."
}