blob: 9d0e327253f479146dbe155e4441fefdea16da5b (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.0.34_rc1.ebuild,v 1.1 2004/11/09 19:28:02 zypher Exp $
inherit eutils flag-o-matic
MY_P="${P/_rc/-test}"
DESCRIPTION="Great Video editing/encoding tool"
HOMEPAGE="http://fixounet.free.fr/avidemux/"
SRC_URI="http://download.berlios.de/"${PN}/${MY_P}".tar.gz"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="alsa altivec arts debug nls oggvorbis truetype xvid"
RDEPEND="virtual/x11
media-sound/madplay
>=media-libs/a52dec-0.7.4
>=media-sound/lame-3.93
>=dev-libs/libxml2-2.6.7
>=x11-libs/gtk+-2.4.1
>=media-libs/faac-1.23.5
>=media-libs/faad2-2.0-r2
xvid? ( >=media-libs/xvid-1.0.0 )
x86? ( dev-lang/nasm )
nls? ( >=sys-devel/gettext-0.12.1 )
oggvorbis? ( >=media-libs/libogg-1.0
>=media-libs/libvorbis-1.0.1 )
arts? ( >=kde-base/arts-1.2.3 )
truetype? ( >=media-libs/freetype-2.1.5 )
alsa? ( >=media-libs/alsa-lib-1.0.3b-r2 )"
# media-sound/toolame is supported as well
DEPEND="$RDEPEND >=sys-devel/autoconf-2.58
>=sys-devel/automake-1.8.3"
filter-flags "-fno-default-inline"
filter-flags "-funroll-loops"
filter-flags "-funroll-all-loops"
filter-flags "-fforce-addr"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd ${S} || die
cd ${S}/avidemux/ADM_audiofilter
epatch ${FILESDIR}/avidemux-2.0.34-test1_faac.patch
cd ${S}
}
src_compile() {
local myconf
myconf="--with-gnu-ld --disable-warnings"
# --enable-profile creates profiling infos default=no
# --enable-pch enables precompiled header support
# (currently only KCC) default=no
# --enable-final build size optimized apps
# (experimental - needs lots of memory)
# --disable-closure don't delay template instantiation
use debug && myconf="${myconf} --enable-debug=full"
use nls || myconf="${myconf} --disable-nls"
use altivec && myconf="${myconf} --enable-altivec"
econf ${myconf} || die "configure failed"
make || die "make failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS ChangeLog History README TODO
}
pkg_postinst() {
if use ppc ; then
echo
einfo "OSS sound output may not work on ppc"
einfo "If your hear only static noise, try"
einfo "changing the sound device to ALSA or arts"
fi
}
|