blob: 44f0df9170e4f48a215b6c059008da65aef17240 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/qvamps/qvamps-0.96.ebuild,v 1.2 2006/04/02 22:09:11 flameeyes Exp $
inherit eutils toolchain-funcs multilib
DESCRIPTION="Qt frontend for vamps"
HOMEPAGE="http://vamps.sourceforge.net/"
SRC_URI="mirror://sourceforge/vamps/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-lang/swig
dev-lang/perl
dev-perl/PerlQt
>=media-libs/libdvdread-0.9.4"
RDEPEND="${DEPEND}
>=media-video/dvdauthor-0.6.11
>=media-video/mjpegtools-1.8.0
>=media-video/vamps-0.99.1"
src_unpack() {
unpack ${A}
cd "${S}"
# set correct libdir
sed -i -e "s:/lib/qvamps/:/$(get_libdir)/qvamps/:g" Makefile qvamps
# replace predefined CFLAGS with ours
sed -i -e "s:-pipe -O2 -fomit-frame-pointer:\$(MYCFLAGS):g" Makefile
epatch "${FILESDIR}/${P}-dvdread.patch"
}
src_compile() {
# Need to fake out Qt or we'll get sandbox problems
export REALHOME="${HOME}" HOME="${T}/fakehome"
addwrite "${QTDIR}/etc/settings"
mkdir -p "${HOME}/".{kde,qt}
emake PREFIX="/usr" CC="$(tc-getCC)" MYCFLAGS="${CFLAGS}" || die "emake failed"
}
src_install() {
dodir /usr/bin
make PREFIX="${D}usr" install || die "make install failed"
dodoc ChangeLog README TODO INSTALL
}
|