1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Tool for removing advertisements from recorded MPEG files"
8 HOMEPAGE="http://ttcut.tritime.org/"
9 SRC_URI="mirror://berlios/${PN}/${P/_/-}.tar.gz"
16 DEPEND="$(qt4_min_version 4.1)
17 >=media-libs/libmpeg2-0.4.0"
29 if ! (built_with_use x11-libs/qt qt3support); then
30 eerror "In order to compile ttmpeg2"
31 eerror "you will need to recompile qt4 with"
32 eerror "qt3support USE flag enabled."
33 die "Recompile qt4 with qt3support USE flag enabled"
36 qmake ttmpeg2.pro -o Makefile.ttmpeg2 || \
37 die "configuring ttpmeg2 failed"
38 make -f Makefile.ttmpeg2 || die "emake ttmpeg2 failed"
41 qmake ttcut.pro -o Makefile.ttcut || \
42 die "configuring ttcut failed"
43 emake -f Makefile.ttcut || die "emake failed"
48 dobin ttmpeg2 || die "Couldn't install ttmpeg2"
49 make_desktop_entry ttmpeg2 Ttmpeg2 "" AudioVideoEditing || \
50 die "Couldn't make ttmpeg2 desktop entry"
53 dobin ttcut || die "Couldn't install ttcut"
54 make_desktop_entry ttcut Ttcut "" AudioVideoEditing || \
55 die "Couldn't make ttcut desktop entry"