blob: 7f4edfe3bc4174e4eb193f3062ddcda93ba67449 (
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
50
51
52
53
54
55
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/nvtv/nvtv-0.4.5.ebuild,v 1.8 2006/03/19 00:29:38 joshuabaergen Exp $
IUSE="X gtk"
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 amd64"
RDEPEND="sys-apps/pciutils
gtk? ( x11-libs/gtk+ )
X? ( || ( ( x11-libs/libXi
x11-libs/libXmu
x11-libs/libXxf86vm )
virtual/x11 ) )"
DEPEND="${RDEPEND}
X? ( || ( x11-proto/xf86vidmodeproto virtual/x11 ) )"
src_compile() {
local myconf
if use gtk
then
myconf="${myconf} --with-gtk"
else
myconf="${myconf} --without-gtk"
fi
use X \
&& myconf="${myconf} --with-x" \
|| myconf="${myconf} --without-x"
econf ${myconf} || die
# The CFLAGS don't seem to make it into the Makefile.
cd src
emake CXFLAGS="${CFLAGS}" || die
}
src_install() {
dobin src/nvtv
dosbin src/nvtvd
dodoc ANNOUNCE BUGS FAQ INSTALL README \
doc/USAGE doc/chips.txt doc/overview.txt \
doc/timing.txt xine/tvxine
exeinto /etc/init.d
newexe ${FILESDIR}/nvtv.start nvtv
}
|