summaryrefslogtreecommitdiff
blob: 026354e7fcee4ed5594990e57bde571e3401dc56 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/tuxzap-programs/tuxzap-programs-0.5.4.ebuild,v 1.3 2006/05/28 13:11:18 zzam Exp $

inherit multilib eutils

MY_P=${PN/-/_}-${PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="mpegtools package for manipulation of various MPEG file formats"
HOMEPAGE="http://www.metzlerbros.org/dvb/"
SRC_URI="http://www.metzlerbros.org/dvb/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="gtk"

DEPEND=">=media-libs/libdvb-0.2.1
	media-tv/linuxtv-dvb-headers
	dev-libs/cdk
	gtk? ( =x11-libs/gtk+-1.2* )"

src_unpack() {
	unpack ${A}

	epatch ${FILESDIR}/${P}-gcc-34.diff
}

src_compile() {
	local myconf=""
	# not using X use var because gtk is needed too anyway
	use gtk || myconf="${myconf} --without-x"
	econf \
		--with-dvb-path=/usr/$(get_libdir) \
		--with-dvb-driver-path=/usr/include/libdvb \
		${myconf} || die
	emake || die 'compile failed'
}

src_install() {
	make DESTDIR="${D}" install || die
	dodoc README AUTHORS NEWS ChangeLog
}