blob: 4860f46727cf1cef50ba927255fd10dfb49ea758 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/konverter/konverter-0.93.ebuild,v 1.1 2007/03/14 23:42:43 troll Exp $
inherit qt3 eutils
IUSE=""
DESCRIPTION="A KDE MEncoder frontend for video-conversion."
HOMEPAGE="http://www.kraus.tk/projects/konverter/"
SRC_URI="http://www.kraus.tk/projects/${PN}/sources/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
S="${WORKDIR}/${PN}"
DEPEND="media-libs/xine-lib
media-video/mplayer
kde-base/kdelibs
|| ( kde-base/kdebase-kioslaves
kde-base/kdebase )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
# make sure that sourced binary will not be install
rm ${S}/src/bin/${PN}
epatch ${FILESDIR}/${P}-pro_files.patch
epatch ${FILESDIR}/${PN}-desktop.patch
# icon for desktop file
cp ${S}/media/hi32-app-konverter.png ${S}/media/${PN}.png
}
src_compile() {
qmake ${PN}.pro \
QTDIR=/usr/lib \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE=/usr/bin/qmake \
QMAKE_RPATH= \
|| die "qmake failed"
cd ${S}/src
qmake src.pro \
QTDIR=/usr/lib \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
QMAKE=/usr/bin/qmake \
QMAKE_RPATH= \
|| die "qmake failed"
emake || die "make failed"
}
src_install() {
# for now - useless...
# make INSTALL_ROOT="${D}" install || die "make install failed"
dobin ${S}/bin/${PN}
dodoc ${S}/distfiles/{AUTHORS,ChangeLog,README,TODO}
domenu ${S}/distfiles/${PN}.desktop
doicon ${S}/media/${PN}.png
}
|