summaryrefslogtreecommitdiff
blob: 02bd927c2d41496f2bae74b7f7ab63c91068898b (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-2005 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.2.3.ebuild,v 1.7 2005/12/08 07:48:44 zzam Exp $

IUSE="gtk"

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="mirror://gentoo/${MY_P}.tar.gz"

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

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

src_compile() {
	MYCONF='--with-dvb-path=/usr/lib'
	# not using X use var because gtk is needed too anyway
	use gtk || MYCONF=${MYCONF}' --without-x'
	econf ${MYCONF} || die "econf failed"

	# still assumes to be in the DVB dir
	sed -i \
		-e s%../../../libdvb%/usr/include/libdvb%g  \
		-e s%../../../include%/usr/include%g \
		${S}/src/Makefile

	emake || die 'compile failed'
}

src_install() {
	make DESTDIR=${D} install || die

	# docs
	dodoc ${S}/README ${S}/AUTHORS ${S}/NEWS ${S}/ChangeLog
}