summaryrefslogtreecommitdiff
blob: 582767dd9bdb1337280cee2f7dc87242fc25d7a0 (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
48
49
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/nvtv/nvtv-0.4.0.ebuild,v 1.6 2002/10/23 17:41:57 blauwers Exp $

IUSE="X gtk"
S=${WORKDIR}/${PN}
DESCRIPTION="TV-Out for NVidia cards."
HOMEPAGE="http://sourceforge.net/projects/nv-tv-out"
SRC_URI="mirror://sourceforge/nv-tv-out/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND="sys-apps/pciutils
	gtk? ( =x11-libs/gtk+-1.2* )
	X? ( >=x11-base/xfree-4.0 )"
RDEPEND="${DEPEND}"


src_compile() {
	local myconf
	cd src

	use gtk && myconf="${myconf} --with-gtk" || myconf="${myconf} --without-gtk"
	use X && myconf="${myconf} --with-x" || myconf="${myconf} --without-x"

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		${myconf} || die "./configure failed"

	# The CFLAGS don't seem to make it into the Makefile.
	emake CXFLAGS="${CFLAGS}" || die
}

src_install () {
	dobin src/nvtv
	dosbin src/nvtvd

	dodoc ANNOUNCE BUGS FAQ INSTALL README \
		doc/USAGE doc/XFREE doc/chips.txt \
		doc/overview.txt  doc/timing.txt xine/tvxine

	exeinto /etc/init.d
	newexe ${FILESDIR}/nvtv.start nvtv
}