blob: 0e2ef229fa26259433195c63024b1ab372d4be08 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mp1e/mp1e-0.5.2.20040909.ebuild,v 1.6 2007/11/27 11:56:34 zzam Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
inherit eutils toolchain-funcs autotools
MY_P=rte-09sep04
DESCRIPTION="Stand alone mpeg-encoder mp1e from rte"
HOMEPAGE="http://zapping.sourceforge.net/Zapping/index.html"
SRC_URI="http://www.akool.homepage.t-online.de/analogtv/download/${MY_P}.tar.bz2
mirror://vdrfiles/${PN}/${MY_P}-mp1e-gentoo.patch"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="!<=media-plugins/vdr-analogtv-0.9.37"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}/mp1e
pkg_setup() {
if [ "$(gcc-major-version)" == "4" ]; then
eerror "this mp1e-version requires gcc-3 in order to build correctly"
# Search gcc-3
local MY_GCC=$(ls -1 /usr/bin/gcc-3.* 2>/dev/null|sort -r|head -1)
MY_GCC=${MY_GCC##*/}
if [[ -n ${MY_GCC} ]]; then
eerror "please compile it using:"
eerror "\tCC=${MY_GCC} emerge mp1e"
else
eerror "please install a gcc-3.* and try using it for ${PN}:"
eerror "\temerge =gcc-3*"
fi
die "gcc 4 cannot build this mp1e-version"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
einfo "Applying vdr-analogtv patch:"
epatch ${DISTDIR}/${MY_P}-mp1e-gentoo.patch
AT_M4DIR="macros" eautoreconf
}
src_install() {
doman mp1e.1
dodoc BUGS ChangeLog
dobin mp1e
}
|