summaryrefslogtreecommitdiff
blob: 13b9ab85a7a3259ba33cc8683e4585b24b05eaec (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/xvattr/xvattr-1.3-r1.ebuild,v 1.12 2006/07/09 20:11:40 flameeyes Exp $

inherit eutils autotools

DESCRIPTION="X11 XVideo Querying/Setting Tool from Ogle project"
HOMEPAGE="http://www.dtek.chalmers.se/groups/dvd/"
SRC_URI="http://www.dtek.chalmers.se/groups/dvd/dist/${P}.tar.gz
	mirror://gentoo/${P}-nogtk.patch.bz2"

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

RDEPEND="
	|| ( (
			x11-libs/libX11
			x11-libs/libXv
			x11-libs/libXext
		) <virtual/x11-7 )
	gtk? (
		=x11-libs/gtk+-1.2*
		=dev-libs/glib-1.2* )"

DEPEND="${RDEPEND}
	|| ( x11-libs/libXt <virtual/x11-7 )"

src_unpack() {
	unpack ${A}
	cd ${S}

	epatch "${DISTDIR}/${P}-nogtk.patch.bz2"
	AT_M4DIR="${S}/m4" eautoreconf
}

src_compile() {
	econf $(use_with gtk) || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
	dodoc AUTHORS ChangeLog NEWS README
}