blob: 5f52eb33d7190f4310c32e32d2cf4061592047a6 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/tvtime/tvtime-1.0.2_p20110131.ebuild,v 1.2 2011/06/02 11:41:44 a3li Exp $
EAPI=4
inherit eutils autotools
TVTIME_HGREV="111b28cca42d"
DESCRIPTION="High quality television application for use with video capture cards"
HOMEPAGE="http://tvtime.sourceforge.net/"
SRC_URI="http://www.kernellabs.com/hg/~dheitmueller/tvtime/archive/${TVTIME_HGREV}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="nls xinerama"
RDEPEND="x11-libs/libSM
x11-libs/libICE
x11-libs/libX11
x11-libs/libXext
x11-libs/libXv
x11-libs/libXxf86vm
xinerama? ( x11-libs/libXinerama )
x11-libs/libXtst
x11-libs/libXau
x11-libs/libXdmcp
>=media-libs/freetype-2
>=sys-libs/zlib-1.1.4
>=media-libs/libpng-1.2
>=dev-libs/libxml2-2.5.11
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
dev-util/pkgconfig"
S="${WORKDIR}/${PN}-${TVTIME_HGREV}"
src_prepare() {
# use 'tvtime' for the application icon see bug #66293
sed -i -e "s/tvtime.png/tvtime/" docs/net-tvtime.desktop
# patch to adapt to PIC or __PIC__ for pic support
epatch "${FILESDIR}"/${PN}-pic.patch #74227
epatch "${FILESDIR}/${PN}-1.0.2-xinerama.patch"
# Remove linux headers and patch to build with 2.6.18 headers
rm -f "${S}"/src/{videodev.h,videodev2.h}
epatch "${FILESDIR}/${P}-libsupc++.patch"
epatch "${FILESDIR}/${P}-autotools.patch"
epatch "${FILESDIR}/${P}-gettext.patch"
epatch "${FILESDIR}/${PN}-libpng-1.5.patch"
AT_M4DIR="m4" eautoreconf
}
src_configure() {
econf \
$(use_enable nls) \
$(use_with xinerama) || die "econf failed"
}
src_compile() {
emake || die "compile problem"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dohtml docs/html/*
dodoc ChangeLog AUTHORS NEWS README
}
pkg_postinst() {
elog "A default setup for ${PN} has been saved as"
elog "/etc/tvtime/tvtime.xml. You may need to modify it"
elog "for your needs."
elog
elog "Detailed information on ${PN} setup can be"
elog "found at ${HOMEPAGE}help.html"
echo
}
|