blob: 540ebdf68125e72e88f037296e3cfa4a063be1c4 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/xawtv/xawtv-3.73-r1.ebuild,v 1.4 2002/10/05 05:39:17 drobbins Exp $
IUSE="aalib motif alsa"
S=${WORKDIR}/${P}
DESCRIPTION="TV application for the bttv driver"
SRC_URI="http://bytesex.org/xawtv/${PN}_${PV}.tar.gz
mirror://sourceforge/xaw-deinterlace/xaw-deinterlace-0.0.3.diff.bz2"
HOMEPAGE="http://bytesex.org/xawtv/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
DEPEND=">=sys-libs/ncurses-5.1
>=media-libs/jpeg-6b
>=media-libs/libpng-1.0.8
>=x11-base/xfree-4.0.1
alsa? ( media-libs/alsa-lib )
aalib? ( media-libs/aalib )
motif? ( x11-libs/openmotif )"
#quicktime? ( media-libs/quicktime4linux )
src_unpack() {
unpack ${A}
cd ${S}
patch -p1 < ${WORKDIR}/xaw-deinterlace-0.0.3.diff || die
}
src_compile() {
local myconf
use motif \
&& myconf="--enable-motif" \
|| myconf="--disable-motif"
use aalib \
&& myconf="${myconf} --enable-aa" \
|| myconf="${myconf} --disable-aa"
# use quicktime \
# && myconf="${myconf} --enable-quicktime" \
# || myconf="${myconf} --disable-quicktime"
use alsa \
&& myconf="${myconf} --enable-alsa" \
|| myconf="${myconf} --disable-alsa"
touch src/Xawtv.h src/MoTV.h
econf \
--enable-jpeg \
--enable-xfree-ext \
--enable-xvideo \
--with-x ${myconf} || die
# Why disable lirc when some people will have it installed now?
# --disable-lirc \
emake || die
}
src_install() {
fontdir=${D}/usr/X11R6/lib/X11/fonts/misc
einstall \
resdir=${D}/etc/X11 \
fontdir=${fontdir} || die
# remove the bogus fonts.dir so it isn't "owned" by this ebuild
rm -f $fontdir/fonts.dir
dodoc COPYING Changes
dodoc Programming-FAQ README* TODO
dodoc UPDATE_TO_v3.0
insinto /home/httpd/cgi-bin
insopts -m 755
doins webcam/webcam.cgi
}
src_postinst() {
mkfontdir /usr/X11R6/lib/X11/fonts/misc
}
src_postrm() {
mkfontdir /usr/X11R6/lib/X11/fonts/misc
}
|