blob: 1aa226a1d6f4cfda02888d214b47ddc5329e535d (
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.1_pre1.ebuild,v 1.4 2006/02/15 15:38:53 flameeyes Exp $
inherit eutils flag-o-matic fixheadtails
MY_P=${PN}_${PV/_pre/_step}
PATCHLEVEL="b1"
DESCRIPTION="Great Video editing/encoding tool"
HOMEPAGE="http://fixounet.free.fr/avidemux/"
SRC_URI="http://download.berlios.de/${PN}/${MY_P}.tar.gz
http://digilander.libero.it/dgp85/gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="a52 aac alsa altivec arts encode mad nls vorbis sdl truetype xvid xv oss"
RDEPEND="
>=x11-libs/gtk+-2.6
>=dev-libs/libxml2-2.6.7
>=dev-lang/spidermonkey-1.5_rc6-r1
a52? ( >=media-libs/a52dec-0.7.4 )
encode? ( >=media-sound/lame-3.93 )
aac? ( >=media-libs/faac-1.23.5
>=media-libs/faad2-2.0-r7 )
mad? ( media-libs/libmad )
xvid? ( >=media-libs/xvid-1.0.0 )
nls? ( virtual/libintl )
vorbis? ( >=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 )
sdl? ( media-libs/libsdl )
|| ( (
xv? ( x11-libs/libXv )
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrender
) virtual/x11 )"
# media-sound/toolame is supported as well
DEPEND="$RDEPEND
|| ( (
x11-base/xorg-server
x11-libs/libXt
x11-proto/xextproto
) virtual/x11 )
dev-util/pkgconfig
nls? ( >=sys-devel/gettext-0.12.1 )
>=sys-devel/autoconf-2.58
>=sys-devel/automake-1.8.3"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
filter-flags "-fno-default-inline"
filter-flags "-funroll-loops"
filter-flags "-funroll-all-loops"
filter-flags "-fforce-addr"
if ! ( use oss || use arts || use alsa ); then
die "You must select at least one between oss, arts and alsa audio output."
fi
}
src_unpack() {
unpack ${A}
cd ${S} || die
EPATCH_EXCLUDE="040_all_linking.patch"
EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patches/
cp ${WORKDIR}/m4/* ${S}/m4 || die "cp m4 failed"
ht_fix_all
gmake -f Makefile.dist || die "autotools failed."
}
src_compile() {
econf \
$(use_enable nls) \
$(use_enable altivec) \
$(use_enable xv) \
$(use_with mad libmad) \
$(use_with arts) \
$(use_with alsa) \
$(use_with oss) \
$(use_with vorbis) \
$(use_with a52 a52dec) \
$(use_with sdl libsdl) \
$(use_with truetype freetype2) \
$(use_with aac faac) $(use_with aac faad2) \
$(use_with xvid) \
$(use_with encode lame) \
--with-newfaad --with-jsapi-include=/usr/include/js \
--disable-warnings --disable-dependency-tracking \
${myconf} || die "configure failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
dodoc AUTHORS ChangeLog History README TODO
insinto /usr/share/icons/hicolor/64x64/apps
newins ${WORKDIR}/avidemux_icon.png avidemux.png
make_desktop_entry avidemux2 "Avidemux2" avidemux
}
pkg_postinst() {
if use ppc && use oss; 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
}
|